Open Bilalgamal96 opened 9 months ago
same issue
Add in index.html as that has been writtent in documentaion.
Add in index.html as that has been writtent in documentaion.
Is like a trap. Everybody falling there. Myself too hehe.
Anyway, that instruction maybe has to be updated because I don't see this on my index.html
:
<script src="main.dart.js" type="application/javascript"></script>
The closest thing I see is this:
<script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function(engineInitializer) {
engineInitializer.initializeEngine().then(function(appRunner) {
appRunner.runApp();
});
}
});
});
</script>
I am trying to initialize the VideoPlayerController in Flutter Web but everytime I load the screen it ends up with this error TypeError: Cannot read properties of undefined (reading 'isSupported').
Note: I tried different browsers and I got the same error in all of them.
Packages I use in Pubspec.yaml file: video_player: ^2.7.1 video_player_web_hls: ^1.1.0
Here is how I initialize the controller:
Actual Result:
Flutter Doctor Output: