flutter_vlc_player
flutter_vlc_player copied to clipboard
Cannot play video on iOS
Hello!
When I try to play a video on iOS using the link https://data-big.ru/v1/file/y6845e4k4pb49ccsgdu3kmc6ydeuyqxo9zedszkohnkoqkwuq3, I get following messages:
creating player instance using shared library
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x107808200] stream 0, offset 0x32: partial file
But video is not playing
My code:
import 'package:flutter/material.dart';
import 'package:flutter_vlc_player/flutter_vlc_player.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({
Key? key,
}) : super(key: key);
@override
_MyAppState createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
late VlcPlayerController _videoPlayerController;
@override
void initState() {
_videoPlayerController = VlcPlayerController.network(
'https://data-big.ru/v1/file/y6845e4k4pb49ccsgdu3kmc6ydeuyqxo9zedszkohnkoqkwuq3',
hwAcc: HwAcc.full,
autoPlay: true,
options: VlcPlayerOptions(),
);
super.initState();
}
@override
void dispose() {
_videoPlayerController.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: VlcPlayer(
controller: _videoPlayerController,
aspectRatio: 16 / 9,
placeholder: const Center(
child: CircularProgressIndicator(),
),
),
),
),
);
}
}
Did you try plugging that url in the Example app code in the project repo?
@mitchross yes, I did. It’s not working
@mitchross yes, I did. It’s not working
It doesnt play in the offical macOS VLC Desktop player. You may need to open a bug report directly with VLC. https://code.videolan.org/videolan/vlc/-/issues
Everything was working fine and suddenly it stopped working.
it just shows creating a player instance using shared library in the log.
Has anyone found work around for this?