DirectCdnStreamingMediaOptions
主播端的媒体选项。
Dart
class DirectCdnStreamingMediaOptions {
const DirectCdnStreamingMediaOptions(
{this.publishCameraTrack,
this.publishMicrophoneTrack,
this.publishCustomAudioTrack,
this.publishCustomVideoTrack,
this.publishMediaPlayerAudioTrack,
this.publishMediaPlayerId,
this.customVideoTrackId});
(name: 'publishCameraTrack')
final bool? publishCameraTrack;
(name: 'publishMicrophoneTrack')
final bool? publishMicrophoneTrack;
(name: 'publishCustomAudioTrack')
final bool? publishCustomAudioTrack;
(name: 'publishCustomVideoTrack')
final bool? publishCustomVideoTrack;
(name: 'publishMediaPlayerAudioTrack')
final bool? publishMediaPlayerAudioTrack;
(name: 'publishMediaPlayerId')
final int? publishMediaPlayerId;
(name: 'customVideoTrackId')
final int? customVideoTrackId;
factory DirectCdnStreamingMediaOptions.fromJson(Map<String, dynamic> json) =>
_$DirectCdnStreamingMediaOptionsFromJson(json);
Map<String, dynamic> toJson() => _$DirectCdnStreamingMediaOptionsToJson(this);
}
publishCameraTrack
设置是否发布摄像头采集的视频。
true
: 发布摄像头采集的视频。false
:(默认)不发布摄像头采集的视频。
publishMicrophoneTrack
设置是否发布麦克风采集的音频。
true
: 发布麦克风采集的音频。false
:(默认)不发布麦克风采集的音频。
publishCustomAudioTrack
设置是否发布自定义采集的音频。
true
: 发布自定义采集的音频。false
:(默认)不发布自定义采集的音频。
publishCustomVideoTrack
设置是否发布自定义采集的视频。
true
: 发布自定义采集的视频。false
:(默认)不发布自定义采集的视频。
customVideoTrackId
调用 createCustomVideoTrack 方法返回的视频轨道 ID。默认值为 0。