/// Jump to the specified PDT time point of the video stream, which can realize video fast forward, fast rewind, progress bar jump and other functions.
@@ -466,6 +508,16 @@ abstract class TXFlutterVodPlayerApi {
...
@@ -466,6 +508,16 @@ abstract class TXFlutterVodPlayerApi {
/// progress 要定位的视频时间,单位 秒 The video playback time to be located, in seconds
/// progress 要定位的视频时间,单位 秒 The video playback time to be located, in seconds
voidseek(DoublePlayerMsgprogress);
voidseek(DoublePlayerMsgprogress);
/// 跳转到视频流指定PDT时间点, 可实现视频快进,快退,进度条跳转等功能
/// 单位毫秒(ms)
/// 播放器高级版 11.6 版本开始支持
///
/// Jump to the specified PDT time point of the video stream, which can realize video fast forward, fast rewind, progress bar jump and other functions.
/// Unit millisecond (ms)
/// Player Premium version 11.6 starts to support
voidseekToPdtTime(IntPlayerMsgpdtTimeMs);
/// 设置播放速率,默认速率 1
/// 设置播放速率,默认速率 1
///
///
/// Set the playback speed, with a default speed of 1.
/// Set the playback speed, with a default speed of 1.
...
@@ -578,6 +630,18 @@ abstract class TXFlutterVodPlayerApi {
...
@@ -578,6 +630,18 @@ abstract class TXFlutterVodPlayerApi {
@@ -674,6 +750,115 @@ class TXVodDownloadMediaInfo {
...
@@ -674,6 +750,115 @@ class TXVodDownloadMediaInfo {
}
}
}
}
/// Track details
/// 轨道的详细信息
classTXTrackInfo{
/// Unknown
/// 未知
staticconstTX_VOD_MEDIA_TRACK_TYPE_UNKNOW=0;
/// Video track
/// 视频轨
staticconstTX_VOD_MEDIA_TRACK_TYPE_VIDEO=1;
/// Audio track
/// 音频轨
staticconstTX_VOD_MEDIA_TRACK_TYPE_AUDIO=2;
/// Subtitle track
/// 字幕轨
staticconstTX_VOD_MEDIA_TRACK_TYPE_SUBTITLE=3;
/// track type
/// track类型
inttrackType;
/// Track index
/// 轨道index
inttrackIndex;
/// Track name
/// 轨道名字
Stringname;
/// Whether the current track is selected
/// 当前轨道是否被选中
boolisSelected=false;
/// If it is true, only one track of this type can be selected at each time. If it is false, multiple tracks of this type can be selected at the same time.
/// This interface is only supported by the premium version of the player (Player_Premium),
/// and you need to purchase the premium version of the player mobile license.
/// Jump to the specified PDT time point of the video stream, which can realize video fast forward, fast rewind, progress bar jump and other functions.
/// Player Premium version 11.6 starts to support
/// @param pdtTimeMs video stream PDT time point, unit millisecond (ms)
Future<void>seekToPdtTime(intpdtTimeMs)async{
if(_isNeedDisposed)return;
await_initPlayer.future;
await_vodPlayerApi.seekToPdtTime(IntPlayerMsg()
..value=pdtTimeMs
..playerId=_playerId);
}
/// Set the playback speed, with a default speed of 1.
/// Set the playback speed, with a default speed of 1.
///
///
/// 设置播放速率,默认速率 1
/// 设置播放速率,默认速率 1
...
@@ -578,6 +602,108 @@ class TXVodPlayerController extends ChangeNotifier implements ValueListenable<TX
...
@@ -578,6 +602,108 @@ class TXVodPlayerController extends ChangeNotifier implements ValueListenable<TX
/// This interface is only supported by the premium version of the player (Player_Premium),
/// and you need to purchase the premium version of the player mobile license.
/// Add external subtitles
/// @param url subtitle address
/// @param name The name of the subtitle. If you add multiple subtitles, please set the subtitle name to a different name to distinguish it from other added subtitles, otherwise it may lead to incorrect subtitle selection.
/// @param mimeType subtitle type, only supports VVT and SRT formats [VOD_PLAY_MIMETYPE_TEXT_SRT] [VOD_PLAY_MIMETYPE_TEXT_VTT]
/// Later, you can get the corresponding name through the name in the result returned by [getSubtitleTrackInfo]