WTNStream class
@brief Public stream class
- Inheritance
-
- Object
- PackClass
- IWTNStream
- WTNStream
Properties
- $instance → dynamic
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$createInstance(
List args) → dynamic -
Factory method for creating instances
override
-
$destroy(
) → void -
inherited
-
$init(
List args) → void -
inherited
-
android_setWTNStreamEventHandler(
IWTNStreamEventHandler handler) → Future< int?> -
@platform android
@detail api
@valid since 3.60.
@author hanchenchen
@brief Set the WTN event handler.
@param handler See IWTNStreamEventHandler{@link #IWTNStreamEventHandler}.
@order 5
inherited
-
findOverrideIndices(
List args, List< List< indicesList) → List<int> >int> -
查找重载参数下标列表
@desc android 构造函数存在重载
此方法通过实际传入参数与构造函数参数列表集合的比对,来获取当前实际的需要使用的参数列表
inherited
-
fn2AndroidClass(
Function callback, dynamic nativeClass(), String methodName) → dynamic -
与 ts runtime 中的 fn2AndroidClass 功能一致
将 Dart 函数转换为 Android 回调类实例供 Android 侧使用
inherited
-
ios_setWTNStreamDelegate(
id< ByteRTCWTNStreamDelegate> delegate) → Future -
@platform ios
@detail api
@valid since 3.60.
@author hanchenchen
@brief Set the WTN event handler.
@param delegate See ByteRTCWTNStreamDelegate{@link #ByteRTCWTNStreamDelegate}.
@order 5
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setWTNRemoteAudioPlaybackVolume(
string streamId, int volume) → Future< int?> -
@detail api
@valid since 3.60. Since version 3.60, this interface replaces
setPublicStreamAudioPlaybackVolumefor the following function. If you have upgraded to version 3.60 or above and are still using this method, please migrate to this interface. @author hanchenchen @brief Set the audio playback volume of the WTN stream. @param streamId ID of the WTN stream. @param volume Ratio(%) of the audio playback volume to the original volume, in the range[0, 400], with overflow protection. The default volume is 100.
To ensure the audio quality, the recommended range is[0, 100]. @return - 0: Success. - -2: Wrong parameter. @order 4inherited -
setWTNRemoteVideoCanvas(
string streamId, VideoCanvas canvas) → Future< int?> -
@author hanchenchen
@detail api
@valid since 3.60. Since version 3.60, this interface replaces
setPublicStreamVideoCanvasfor the following function. If you have upgraded to version 3.60 or above and are still using this method, please migrate to this interface. @brief Assign a internal render view to the WTN stream @param streamId ID of the WTN stream @param canvas Internal render view. If you want to unbind the video, setvideoCanvasto null. Refer to VideoCanvas{@link #VideoCanvas} for more details. @return - 0: Success - !0: Failure @order 2inherited -
setWTNStreamEventHandler(
IWTNStreamEventHandler handler) → Future< int> - @brief Set WTN public stream event callback
-
subscribeWTNAudioStream(
string streamId, bool subscribe) → Future< int?> -
@detail api
@valid since 3.60. Since version 3.60, this interface replaces the
startPlayPublicStreamandstopPlayPublicStreammethods for subscribing to and unsubscribing from WTN audio streams. If you are using these methods, please migrate to this interface. @author hanchenchen @brief Subscribe/unsubscribe the WTN audio stream
A user can call this method to subscribe a WTN stream whether he/she has joined the room or not. @param streamId ID of the WTN stream. If the stream has not been published then, the local client will receive the WTN stream once it starts publishing. @param subscribe Whether to subscribe to the WTN stream.
- true: Subscribe - false: Unsubscribe @return - 0: Success. You will also be informed by onWTNAudioSubscribeStateChanged{@link #IWTNStreamEventHandler#onWTNAudioSubscribeStateChanged}. - !0: Failure because of invalid parameter or empty parameters. @note - A client can play up to 5 WTN streams simultaneously. Please call subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}/subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} in time to cancel the subscription to WTN streams to avoid exceeding the limit of subscribed WTN streams. - We recommend to bind a view for the WTN stream before calling this API to subscribe a WTN stream. - Internal renderer: By calling setWTNRemoteVideoCanvas{@link #IWTNStream#setWTNRemoteVideoCanvas} or - Custom renderer: By calling setWTNRemoteVideoSink{@link #IWTNStream#setWTNRemoteVideoSink} - After calling this API, you will be informed once the first frame has been decoded successfully by onWTNFirstRemoteAudioFrame{@link #IWTNStreamEventHandler#onWTNFirstRemoteAudioFrame}. - If the WTN stream contains SEI information, you will be informed by onWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived}. @order 1inherited -
subscribeWTNVideoStream(
string streamId, bool subscribe) → Future< int?> -
@detail api
@valid since 3.60. Since version 3.60, this interface replaces the
startPlayPublicStreamandstopPlayPublicStreammethods for subscribing to and unsubscribing from WTN video streams. If you are using these methods, please migrate to this interface. @author hanchenchen @brief Subscribe/ unsubscribe WTN video stream
A user can call this method to subscribe or unsubscribe a WTN stream whether he/she has joined the room or not. @param streamId ID of the WTN stream. If the stream has not been published then, the local client will receive the WTN stream once it starts publishing. @param subscribe Whether to subscribe to the WTN stream.
- true: Subscribe - false: Unsubscribe @return - 0: Success. You will also be informed by onWTNVideoSubscribeStateChanged{@link #IWTNStreamEventHandler#onWTNVideoSubscribeStateChanged}. - !0: Failure because of invalid parameter or empty parameters. @note - A client can play up to 5 WTN streams simultaneously. Please call subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}/subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} in time to cancel the subscription to WTN streams to avoid exceeding the limit of subscribed WTN streams. - We recommend to bind a view for the WTN stream before calling this API to subscribe a WTN stream. - Internal renderer: By calling setWTNRemoteVideoCanvas{@link #IWTNStream#setWTNRemoteVideoCanvas} or - Custom renderer: By calling setWTNRemoteVideoSink{@link #IWTNStream#setWTNRemoteVideoSink} - After calling this API, you will be informed once the first frame has been decoded successfully by onWTNFirstRemoteVideoFrameDecoded{@link #IWTNStreamEventHandler#onWTNFirstRemoteVideoFrameDecoded}. - If the WTN stream contains SEI information, you will be informed by oonWTNSEIMessageReceived{@link #IWTNStreamEventHandler#onWTNSEIMessageReceived}. @order 0inherited -
toString(
) → String -
A string representation of this object.
inherited
-
transformToPlatformConstructorArgs(
List args, List< int> indices, Map<String, dynamic> typeMap, Map<String, dynamic> enumMap, Map<String, dynamic> classMap, String platformVar) → List -
实例化参数处理
将 pack 过后的 enum / class 转成 android / ios 平台侧的 enum / class
inherited
-
updateInstance(
dynamic instance) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited