Sha256: 6e40c8cdbb87fc7fb2e26bae3d12a692f9b7becd1f5da67ff93208eca0c37bff
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'tencent_cloud' require 'tencent_cloud/trtc/v20190722/trtc_client' # replace secret_id secret_key secret_id = ENV['TENCENT_SECRET_ID'] secret_key = ENV['TENCENT_SECRET_KEY'] credential = TencentCloud::Common::Credential.new(secret_id, secret_key) payload = { # replace SdkAppId "SdkAppId": 'SDKAPPID', "RoomId": 1, "OutputParams": { "StreamId": 's12' }, "EncodeParams": { "VideoWidth": 1280, "VideoHeight": 720, "VideoBitrate": 1560, "VideoFramerate": 2, "VideoGop": 2, "BackgroundColor": 0, "AudioSampleRate": 48_000, "AudioBitrate": 64, "AudioChannels": 2 }, "LayoutParams": { "Template": 0 } } resp = TencentCloud::TrtcClient.new(credential, 'ap-guangzhou').start_mcu_mix_transcode(payload) pp JSON.parse(resp.body)
Version data entries
3 entries across 3 versions & 1 rubygems