如何使用默认视频播放器实现动态更改Flutter ' https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4 ' 中的视频?
void initState() {
// Create and store the VideoPlayerController. The VideoPlayerController
// offers several different constructors to play videos from assets, files,
// or the internet.
_controller = VideoPlayerController.network(
'https://flutter.github.io/assets-for-api-docs/assets/videos/butterfly.mp4',
);
// Initialize the controller and store the Future for later use.
_initializeVideoPlayerFuture = _controller.initialize();
// Use the controller to loop the video.
_controller.setLooping(true);
super.initState();
}
Run Code Online (Sandbox Code Playgroud) 我将 Google Cast 集成到了我的 Android 应用程序中。我的所有内容都是通过带有通知的服务播放的。当我使用 Google Cast 播放媒体时,它会添加自己的通知。是否可以禁用默认的谷歌强制转换通知并仅使用自己的通知?谢谢。