Cdnbye class
Constructors
- Cdnbye()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaultSegmentIdGenerator ↔ SegmentIdGenerator
-
getter/setter pair
-
platformVersion
→ Future<
String> -
The version of SDK.
SDK的版本号
no setter
Static Methods
-
getPeerId(
) → Future< String> - Get the peer ID of p2p engine. 获取P2P Engine的peer ID
-
init(
dynamic token, {required P2pConfig config, CdnByeInfoListener? infoListener, SegmentIdGenerator? segmentIdGenerator, bool bufferedDurationGeneratorEnable = false}) → Future< int> - Create a new instance with token and the specified config.
-
isConnected(
) → Future< bool> - Get the connection state of p2p engine. 获取P2P Engine的连接状态
-
parseStreamURL(
String sourceUrl, {String? videoId, Duration bufferedDurationGenerator()?}) → Future< String?> - Get parsed local stream url by passing the original stream url(m3u8) to CBP2pEngine instance.
-
restartP2p(
) → Future< void> - Restart p2p engine.
-
stopP2p(
) → Future< void> - Stop p2p and free used resources.