flutter_vlc_player icon indicating copy to clipboard operation
flutter_vlc_player copied to clipboard

Playing streaming performance

Open Mocteyy opened this issue 3 years ago • 23 comments

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

Mocteyy avatar Feb 08 '22 03:02 Mocteyy

Hi, I have the same problem Please provide a solution

devahmad avatar Feb 25 '22 00:02 devahmad

Same issue

ZoubairDaddow avatar Mar 15 '22 10:03 ZoubairDaddow

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

mitchross avatar Mar 18 '22 19:03 mitchross

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

mitchross avatar Mar 20 '22 01:03 mitchross

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.

ZoubairDaddow avatar Mar 22 '22 08:03 ZoubairDaddow

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.

mitchross avatar Mar 22 '22 16:03 mitchross

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

ZoubairDaddow avatar Mar 23 '22 08:03 ZoubairDaddow

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?

mitchross avatar Mar 24 '22 17:03 mitchross

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.

lidalao avatar Mar 25 '22 02:03 lidalao

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?

mitchross avatar Mar 25 '22 15:03 mitchross

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 avatar Mar 25 '22 21:03 ZoubairDaddow

Any recommended vlc options to fix this issue ??

ZoubairDaddow avatar Apr 26 '22 08:04 ZoubairDaddow

Any recommended vlc options to fix this issue ??

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

mitchross avatar Apr 27 '22 02:04 mitchross

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

lidalao avatar Apr 27 '22 02:04 lidalao

Any recommended vlc options to fix this issue ??

Try #314

The performance improved a bit , but still not satisfactory

ZoubairDaddow avatar Apr 27 '22 10:04 ZoubairDaddow

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

lidalao avatar Apr 28 '22 03:04 lidalao

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 avatar Apr 28 '22 05:04 ZoubairDaddow

The issue still appear also on 7.1.2

ZoubairDaddow avatar May 11 '22 06:05 ZoubairDaddow

same issue. performance is not practical.

razfazz avatar May 11 '22 18:05 razfazz

@smedasn what device are you using?

mitchross avatar May 11 '22 19:05 mitchross

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?

razfazz avatar May 12 '22 19:05 razfazz

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

ZoubairDaddow avatar May 16 '22 06:05 ZoubairDaddow

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

AALAMILLO avatar Aug 03 '23 07:08 AALAMILLO