@@ -137,24 +144,24 @@ class _TXVodPlayerPageState extends State<ShortVideoPageWidget> {
...
@@ -137,24 +144,24 @@ class _TXVodPlayerPageState extends State<ShortVideoPageWidget> {
)));
)));
}
}
_pause(){
_pause()async{
LogUtils.i(TAG,"[_pause]");
LogUtils.i(TAG,"[_pause]");
widget._controller.pause();
await_controller.pause();
setState((){
setState((){
_isVideoPlaying=false;
_isVideoPlaying=false;
});
});
}
}
_resume(){
_resume()async{
LogUtils.i(TAG,"[_resume]");
LogUtils.i(TAG,"[_resume]");
widget._controller.resume();
await_controller.resume();
setState((){
setState((){
_isVideoPlaying=true;
_isVideoPlaying=true;
});
});
}
}
_stopLastAndPlayCurrent(StopAndResumeEventevent){
_stopLastAndPlayCurrent(StopAndResumeEventevent){
LogUtils.i(TAG," [received at not current outside] ${widget.position.toString()}${this.hashCode.toString()}${widget.hashCode.toString()}${widget._controller.hashCode.toString()}");
LogUtils.i(TAG," [received at not current outside] ${widget.position.toString()}${this.hashCode.toString()}${widget.hashCode.toString()}${_controller.hashCode.toString()}");