solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
518 stars 253 forks source link

Playing streaming performance #299

Open Mocteyy opened 2 years ago

Mocteyy commented 2 years ago

I am using this library to create an IP TV app but package's performance is not very good, it plays the video kind of slow

devahmad commented 2 years ago

Hi, I have the same problem Please provide a solution

ZoubairDaddow commented 2 years ago

Same issue

mitchross commented 2 years ago

https://github.com/solid-software/flutter_vlc_player/issues/277

mitchross commented 2 years ago

https://github.com/solid-software/flutter_vlc_player/pull/303

ZoubairDaddow commented 2 years ago

This issue still appear also in flutter_vlc_player 7.1.0 The performance is better but not perfect , there is slow in streaming you can clearly notice it.

mitchross commented 2 years ago

This issue still appear also in flutter_vlc_player 7.1.0 The performance is better but not perfect , there is slow in streaming you can clearly notice it.

Are you running ios or android? Are you running in debug or performance? Are you casting or running native in the app? Can you provide a sample URL for me to test and device info? Very hard to point in right direction without a little bit of debug info.

ZoubairDaddow commented 2 years ago

Hello, I tested on android device in release mode and debug mode. The device is TX3 mini device android 8.1 RAM 2.]

and this is Flutter doctor

[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19042.1266], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.11.8)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.65.2)
[√] Connected device (4 available)
[√] HTTP Host Availability

and please note when I try dart_vlc for desktop this issue didn't appear with no any additional configuration . In addition I used internal UDP stream URL and this stream is doing well using dart_vlc for desktop and better_player for android

mitchross commented 2 years ago

Hello, I tested on android device in release mode and debug mode. The device is TX3 mini device android 8.1 RAM 2.]

and this is Flutter doctor

[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19042.1266], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.11.8)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.65.2)
[√] Connected device (4 available)
[√] HTTP Host Availability

and please note when I try dart_vlc for desktop this issue didn't appear with no any additional configuration . In addition I used internal UDP stream URL and this stream is doing well using dart_vlc for desktop and better_player for android

What happens if you run the provided example app and run it on your device? Are you still seeing performance issues?

lidalao commented 2 years ago

Same problem. Drop frames with flutter version of vlc, but ok with android version. edit: I have already upgrade to v7.1.0, the problem is still exists.

mitchross commented 2 years ago

Same problem. Drop frames with flutter version of vlc, but ok with android version. edit: I have already upgrade to v7.1.0, the problem is still exists.

What device?

ZoubairDaddow commented 2 years ago

Hello, I tested on android device in release mode and debug mode. The device is TX3 mini device android 8.1 RAM 2.] and this is Flutter doctor

[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19042.1266], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2019 16.11.8)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.65.2)
[√] Connected device (4 available)
[√] HTTP Host Availability

and please note when I try dart_vlc for desktop this issue didn't appear with no any additional configuration . In addition I used internal UDP stream URL and this stream is doing well using dart_vlc for desktop and better_player for android

What happens if you run the provided example app and run it on your device? Are you still seeing performance issues?

No it works fine. the issue appears just when using UDP stream .

ZoubairDaddow commented 2 years ago

Any recommended vlc options to fix this issue ??

mitchross commented 2 years ago

Any recommended vlc options to fix this issue ??

Try https://github.com/solid-software/flutter_vlc_player/pull/314

lidalao commented 2 years ago

Thanks. A suggestion is the flutter_vlc_player_platform_interface project should be move out of the flutter_vlc_player project, Or merge two projects into one. As you know, Currently the flutter_vlc_player project will refer flutter_vlc_player_platform_interface from pub.dev

@mitchross

ZoubairDaddow commented 2 years ago

Any recommended vlc options to fix this issue ??

Try #314

The performance improved a bit , but still not satisfactory

lidalao commented 2 years ago

Any recommended vlc options to fix this issue ??

Try #314

The performance improved a bit , but still not satisfactory

yes. After serval tests, There're some findings,

  1. Use PlatformViewLink or AndroidView -- lag exists
  2. Play streaming in native but control by Flutter.(In this scenario, flutter_vlc_player project is not included) -- lag still exists
  3. Play and control streaming in new native activity. (In this scenario, flutter_vlc_player project is not included) -- ok
ZoubairDaddow commented 2 years ago

Any recommended vlc options to fix this issue ??

Try #314

The performance improved a bit , but still not satisfactory

yes. After serval tests, There're some findings,

  1. Use PlatformViewLink or AndroidView -- lag exists
  2. Play streaming in native but control by Flutter.(In this scenario, flutter_vlc_player project is not included) -- lag still exists
  3. Play and control streaming in new native activity. (In this scenario, flutter_vlc_player project is not included) -- ok

Can you help me how can I do that

ZoubairDaddow commented 2 years ago

The issue still appear also on 7.1.2

razfazz commented 2 years ago

same issue. performance is not practical.

mitchross commented 2 years ago

@smedasn what device are you using?

razfazz commented 2 years ago

It works kind of smooth on my new mobile phone but very laggy on firestick devices. but the native vlc player performs well there.
is this plugin using platform views?

ZoubairDaddow commented 2 years ago

It works kind of smooth on my new mobile phone but very laggy on firestick devices. but the native vlc player performs well there. is this plugin using platform views?

I think this issue related to rebuild the texture in every second or the widget involved in loop of build function

AALAMILLO commented 1 year ago

Hi! Any comments about that? Have the same problem. It had tested in a firestick and the result is lag and slow performance