VodMethodChannel class

Per-player MethodChannel wrapper.

Each TXVodPlayerController holds one and playerId is injected automatically.

Usage:

final mc = VodMethodChannel(_playerId);
await mc.invoke<bool>('startVodPlay', {'value': url});

Constructors

VodMethodChannel(int playerId)

Properties

hashCode int
The hash code for this object.
no setterinherited
playerId int
Player instance id, assigned by native in createPlayer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

invoke<T>(String method, [Map<String, dynamic>? args]) Future<T?>
Invoke a native method with playerId auto-injected.
invokeList(String method, [Map<String, dynamic>? args]) Future<List?>
Convenience helper when the return type is List.
invokeMap(String method, [Map<String, dynamic>? args]) Future<Map?>
Convenience helper when the return type is Map.
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