FlutterP2pEnginePlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- FlutterP2pEnginePlatform
- Implementers
Constructors
- FlutterP2pEnginePlatform()
- Constructs a P2pEnginePlatform.
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
-
disableP2p(
) → Future< void> -
enableP2p(
) → Future< void> -
getPeerId(
) → Future< String> - Get the peer ID of p2p engine
-
getSDKVersion(
) → Future< String> -
init(
dynamic token, {required P2pConfig config, void infoListener(Map< String, dynamic> )?, 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.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyPlaybackStalled(
) → Future< void> -
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.
-
setHttpHeadersForDash(
Map< String, String> ? headers) → Future<void> -
setHttpHeadersForHls(
Map< String, String> ? headers) → Future<void> -
shutdown(
) → Future< void> -
stopP2p(
) → Future< void> - Stop p2p and free used resources.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterP2pEnginePlatform
-
The default instance of
P2pEnginePlatform
to use.getter/setter pair