Open jpatreal opened 3 years ago
I get this error and followed github documentation how to correctly implement VLC. Here is the error
E/VLC ( 9151): [e071a270/23e6] libvlc tls client: cannot resolve media.w3.org port 443: No address associated with hostname E/VLC ( 9151): [e0713210/23e6] libvlc stream: HTTP connection failure D/skia ( 9151): Shader compilation error
Here is the code
`import 'package:flutter/material.dart'; import 'package:flutter_vlc_player/flutter_vlc_player.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( visualDensity: VisualDensity.adaptivePlatformDensity, ), home: MyHomePage(), ); } } class MyHomePage extends StatefulWidget { MyHomePage({key}) : super(key: key); @override _MyHomePageState createState() => _MyHomePageState(); } class _MyHomePageState extends State<MyHomePage> { late VlcPlayerController _videoPlayerController; @override void initState() { super.initState(); _videoPlayerController = VlcPlayerController.network( 'https://local.clift.mdu1.net/3ABN/index.m3u8', hwAcc: HwAcc.FULL, autoPlay: false, options: VlcPlayerOptions(), ); } @override void dispose() async { super.dispose(); await _videoPlayerController.stopRendererScanning(); await _videoPlayerController.dispose(); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(), body: Center( child: VlcPlayer( controller: _videoPlayerController, aspectRatio: 16 / 9, placeholder: Center(child: CircularProgressIndicator()), ), ), ); } }`
What version of your vlcPlayer?
on newer versions, you need to set "autoPlay: false" to "autoPlay: true"
flutter_vlc_player: ^6.0.4
This is the version of my vlc flutter.
@JuniorFlorentino
I get this error and followed github documentation how to correctly implement VLC. Here is the error
E/VLC ( 9151): [e071a270/23e6] libvlc tls client: cannot resolve media.w3.org port 443: No address associated with hostname E/VLC ( 9151): [e0713210/23e6] libvlc stream: HTTP connection failure D/skia ( 9151): Shader compilation error
Here is the code