MethodChannelRtmpPlayer class

An implementation of RtmpPlayerPlatform that uses method channels.

Inheritance

Constructors

MethodChannelRtmpPlayer(int viewId)

Properties

eventChannel EventChannel?
事件通信
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel?
方法通信
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewId int
final

Methods

getCurrentPosition() Future
获取播放的当前时长
override
getDuration() Future
获取视频的总时长
override
getPlatformVersion() Future<String?>
override
isPlaying() Future
是否播放中
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future
暂停播放
override
play() Future
播放
override
seekTo(int msec) Future
指定开始播放时间
override
setDataSource(String playUrl, bool isLoop) Future
设置播放路径,默认会初始化成功后播放
override
setLoop(bool isLoop) Future
设置是否循环播放
override
stop() Future
停止播放
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

eventChannelName → const String
事件名字
methodChannelName → const String
方法名字