We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79ec194 commit 7ad9c80Copy full SHA for 7ad9c80
packages/flutter_html_audio/lib/flutter_html_audio.dart
@@ -60,8 +60,8 @@ class _AudioWidgetState extends State<AudioWidget> {
60
];
61
62
if (sources.isNotEmpty && sources.first != null) {
63
- audioController = VideoPlayerController.network(
64
- sources.first ?? "",
+ audioController = VideoPlayerController.networkUrl(
+ Uri.parse(sources.first ?? ""),
65
);
66
chewieAudioController = ChewieAudioController(
67
videoPlayerController: audioController!,
packages/flutter_html_video/lib/flutter_html_video.dart
@@ -84,7 +84,7 @@ class _VideoWidgetState extends State<VideoWidget> {
84
break;
85
default:
86
_videoController =
87
- VideoPlayerController.network(sourceUri.toString());
+ VideoPlayerController.networkUrl(sourceUri);
88
89
}
90
_chewieController = ChewieController(
0 commit comments