iphone-inline-video icon indicating copy to clipboard operation
iphone-inline-video copied to clipboard

HLS Live Streaming video not working

Open wieshka opened this issue 9 years ago • 9 comments

Tried with HLS Live video feed: got, I guess I-Frame as still image & audio playback on background. Any plans to have HLS support for this?

wieshka avatar Apr 01 '16 19:04 wieshka

The way it can display videos is by seeking frame by frame, but that doesn't work on streaming videos. When you have time to post a demo I'll see if there's any alternative way to have the

Edit: Alternatives

http://jsmpeg.com/ https://github.com/mbebenita/Broadway https://github.com/brion/ogv.js/

fregante avatar Apr 02 '16 03:04 fregante

Update: the video I tested with had broken seeking capabilities which caused obviously playback issues. Now, with seek supported video, it simply has low FPS, few frames per second.

Hopefully I will be able to provide demo videos soon.

wieshka avatar Apr 04 '16 11:04 wieshka

I should probably outline that the fps of the video is limited by the fps of the page. That means that if you're running expensive calculations or other animations, the framerate could drop below 60fps or even the 25/30fps necessary for the video.

This applies to all situations. I can only update the video as often as the browser calls requestAnimationFrame

fregante avatar Apr 04 '16 11:04 fregante

Hi, I have tested your player with this HLS live stream: http://vevoplaylist-live.hls.adaptive.level3.net/vevo/ch1/appleman.m3u8

Have same issues as @wieshka. Audio stream is playing perfect, but video has very bad fps (about 1/2fps). requestAnimationFrame calls ~60 times per second. I also tried to limit it to 25fps by rewriting requestAnimationFrame method but it didn't help.

window.requestAnimationFrame = function( callback ){
    window.setTimeout(callback, 1000 / 25);
};

I also noticed that player continues updating frames for few seconds after I press pause button.

olegIvani4 avatar May 12 '16 13:05 olegIvani4

I haven't had time to test this and something tells me that there isn't much I can do.

requestAnimationFrame calls ~60 times per second.

To avoid sync issues with videos' framerates, I use the highest available framerate and let the browser figure out if the video needs updating after I set the currentTime

I also noticed that player continues updating frames for few seconds after I press pause button.

Can you try the latest version? If that doesn't fix it, would you mind opening a new issue with more details and perhaps a link to the page with the issue?

fregante avatar May 17 '16 10:05 fregante

Anyone make any progress on this? I need it to get http://www.sprawly.co working properly methinks.

neuman avatar Aug 25 '16 19:08 neuman

in IOS 10 you can just add playsinline parameter to

olegIvani4 avatar Aug 25 '16 20:08 olegIvani4

Sure, but for everything else?

On Thu, Aug 25, 2016, 1:41 PM Oleg [email protected] wrote:

in IOS 10 you can just add playsinline parameter to tag and it will not switch to full-screen anymore

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bfred-it/iphone-inline-video/issues/4#issuecomment-242532766, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1dO2Bu8SPMz8CwY1dEj1hKSR6GkAqdks5qjf4FgaJpZM4H9-yi .

neuman avatar Aug 25 '16 20:08 neuman

No progress, unfortunately. Live video doesn't quite lend itself to this workaround

fregante avatar Aug 26 '16 00:08 fregante