alexmercerind / dart_vlc

Flutter bindings to libVLC.
GNU Lesser General Public License v2.1
513 stars 137 forks source link

Can't play video on macOs #160

Closed tuantiensiu closed 3 years ago

tuantiensiu commented 3 years ago

Steps to Reproduce

`HtmlWidget` configuration ```dart import 'package:dart_vlc/dart_vlc.dart'; import 'package:flutter/material.dart'; class PlayVideoScreen extends StatefulWidget { PlayVideoScreen({Key? key}) : super(key: key); @override _PlayVideoScreenState createState() => _PlayVideoScreenState(); } class _PlayVideoScreenState extends State { Player player = new Player(id: 69420); String fullPath = 'http://api.talkschool-cambodia.com/video/1627925251.mp4'; @override void initState() { super.initState(); } @override Widget build(BuildContext context) { player.open(Media.network(fullPath)); return MaterialApp( home: Scaffold( appBar: AppBar( title: const Text('Test dart vlc'), centerTitle: true, ), body: ListView( shrinkWrap: true, padding: EdgeInsets.all(4.0), children: [ Row( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [ Card( clipBehavior: Clip.antiAlias, elevation: 2.0, child: Video( player: player, width: 640, height: 480, volumeThumbColor: Colors.blue, volumeActiveColor: Colors.blue, ), ), ], ), ], ), ), ); } @override void dispose() { // TODO: implement dispose super.dispose(); player.dispose(); } } ```
Tesing environment ``` cmake version 3.21.2 Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.2.3, on Mac OS X 10.15.7 19H524 darwin-x64, locale en) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] VS Code (version 1.60.0) [✓] Connected device (2 available) ```

Debug Console

Launching lib/main.dart on macOS in debug mode...
lib/main.dart:1
install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/mac/Documents/Projects/test_flutter/macos/Pods/VLCKit/VLCKit.framework/VLCKit (for architecture x86_64)
install_name_tool: warning: changes being made to the file will invalidate the code signature in: /Users/mac/Documents/Projects/test_flutter/macos/Pods/VLCKit/VLCKit.framework/VLCKit (for architecture arm64)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Connecting to VM Service at ws://127.0.0.1:61429/9oQ-nfbEJVE=/ws
Reloaded 2 of 602 libraries in 707ms.
Reloaded 0 libraries in 98ms.

Actual results

A test image

alexmercerind commented 3 years ago

@tuantiensiu I apologise for no replies. I really hope your issue was fixed, unfortunately I don't own a mac & neither I made its implementation.

Thanks.

3215466800 commented 3 years ago

do you have fix this problem? i have same question now...