Flutter:从IOS设备上传视频时,Chewie视频播放器视频可见,但视频的声音不起作用

时间:2020-07-31 13:38:34

标签: ios flutter audio video-player

从iOS设备上传视频时出现颤振问题,视频可见,但没有声音,但在Android设备上工作正常。下面的代码,我用于视频播放器。

代码:

Center(
              child: controller.value.initialized
                  ? Chewie(
                      controller: ChewieController(
                        videoPlayerController: controller,
                        autoPlay: false,
                        aspectRatio: controller.value.aspectRatio,
                        looping: false,
                        showControls: true,
                        // Try playing around with some of these other options:
                        placeholder: Container(
                          child: Center(
                              child: Image.asset("assets/img/mw.png")),
                        ),
                      ),
                    )
                  : new Center(
                      child: new Container(
                      child: new CircularProgressIndicator(),
                    )),
            ),

0 个答案:

没有答案