提交 393292ea authored 作者: kongdywang's avatar kongdywang

fix shortVideo ios rotated issue

上级 781ac0e2
...@@ -17,7 +17,6 @@ class ShortVideoPageWidget extends StatefulWidget { ...@@ -17,7 +17,6 @@ class ShortVideoPageWidget extends StatefulWidget {
class _TXVodPlayerPageState extends State<ShortVideoPageWidget> { class _TXVodPlayerPageState extends State<ShortVideoPageWidget> {
static const TAG = "ShortVideo::TXVodPlayerPageState"; static const TAG = "ShortVideo::TXVodPlayerPageState";
late TXPlayerVideo _txPlayerVideo;
bool _isVideoPrepared = false; bool _isVideoPrepared = false;
bool _isVideoPlaying = true; bool _isVideoPlaying = true;
GlobalKey<VideoSliderViewState> _progressSliderKey = GlobalKey(); GlobalKey<VideoSliderViewState> _progressSliderKey = GlobalKey();
...@@ -26,9 +25,7 @@ class _TXVodPlayerPageState extends State<ShortVideoPageWidget> { ...@@ -26,9 +25,7 @@ class _TXVodPlayerPageState extends State<ShortVideoPageWidget> {
TXVodPlayerController _controller; TXVodPlayerController _controller;
_TXVodPlayerPageState() : _controller = TXVodPlayerController() { _TXVodPlayerPageState() : _controller = TXVodPlayerController();
_txPlayerVideo = new TXPlayerVideo(controller: _controller);
}
@override @override
void initState() { void initState() {
...@@ -79,7 +76,7 @@ class _TXVodPlayerPageState extends State<ShortVideoPageWidget> { ...@@ -79,7 +76,7 @@ class _TXVodPlayerPageState extends State<ShortVideoPageWidget> {
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Container( Container(
child: _txPlayerVideo, child: TXPlayerVideo(controller: _controller),
), ),
_getPauseView() _getPauseView()
], ],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论