flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Cannot play video on iOS

Open mtrfnvwork opened this issue 3 years ago • 4 comments

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(),
            ),
          ),
        ),
      ),
    );
  }
}

mtrfnvwork avatar Feb 25 '22 02:02 mtrfnvwork

Did you try plugging that url in the Example app code in the project repo?

mitchross avatar Mar 18 '22 19:03 mitchross

@mitchross yes, I did. It’s not working

mtrfnvwork avatar Mar 18 '22 22:03 mtrfnvwork

@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

mitchross avatar Mar 25 '22 16:03 mitchross

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?

kartik1225 avatar Aug 05 '22 15:08 kartik1225