solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
527 stars 255 forks source link

live stream crashes but recorded file plays (PR #7 Test) #27

Open moeiscool opened 4 years ago

moeiscool commented 4 years ago

after testing #7 I found that attempting to open a live stream results in the app crashing. No error is shown in the flutter console.

Recorded files play fine. I just need to figure out how to manage video controls in the UI.

iOS 13.1.3, iPhone XS Max

Let me know if any other information is required, thanks!

NBTX commented 4 years ago

@moeiscool are you able to provide a link to the (or a similar) stream for testing?

Also I'm a fair amount through implementing an API for player controls.

moeiscool commented 4 years ago

here is one https://demo.shinobi.video/cm4xw2M9dhf1GCuFv8nPtGCfcJI3hN/hls/600DkI2RA7/lYT4FBlLhr/s.m3u8

It is an HLS stream, it used to work before (not this exact one but on another Shinobi machine it did). It is a static video put on a loop to simulate a live stream

moeiscool commented 4 years ago

I know nothing about how this works but from a little reading of the java file in the diff. I think maybe this https://github.com/solid-software/flutter_vlc_player/pull/7/files#diff-f9535fc3b5aef8b1d12450338710f9ebR159 or some buffering code might be causing it.

The reason I think that is because before it just crashed it would just show the placeholder, seemingly loading forever. Since its a live stream it would never finish loading

maybe an option like liveStream : true in the controller to disable some of the fancy stuff and operate "barebones" to some extent, similar to how it was before.