WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.91k stars 972 forks source link

JPlayer Picture in Picture playback on Android #7897

Open GreenDragonTavern opened 1 year ago

GreenDragonTavern commented 1 year ago

Not sure what licensing is involved with this feature request and hopefully mobile friendliness is a priority with AVideo...so with that said. Not sure about iOS but there's documented support for Android. AVideo would be no different than YouTube on Android phones which allows video PiP while using other apps on phone. The cats' meow would be once AVideo is backgrounded while playing a video it invokes PiP automatically just like YouTube.

DanielnetoDotCom commented 1 year ago

Awesome idea, try this update

GreenDragonTavern commented 1 year ago

Cool! Had to turn phone landscape to get PiP button to show but worked like a champ. What would it take for AVideo to do this automatically depending on focus, ie. automatically invoke PiP when AVideo loses focus?

DanielnetoDotCom commented 1 year ago

It suppose to go to pip automatically if the video is playing and loose focus

GreenDragonTavern commented 1 year ago

Negative, tried Edge and Chrome browsers on my Samsung phone and it stopped playing video as soon as it lost focus.

GreenDragonTavern commented 1 year ago

On Windows 11, my laptop, it did invoke PiP upon losing focus. There is an issue though...if I jump back to AVideo tab it disabled PiP and video was back to normal embed, which is perfect but when I selected another open tab it did not invoke PiP a second time.

DanielnetoDotCom commented 1 year ago

on mobile, you must go fullscreen to get the pip when you lose focus

GreenDragonTavern commented 1 year ago

Is there a specific reason full screen is necessary on mobile? Landscape is cumbersome on mobile since portrait is the norm and jumping around on phone for the most part involves notifications and addressing them. I listen to YouTube all the time on phone and it's a notification I'm responding to that makes their app so awesome. Get an email, read it and never miss a beat on what's playing on YouTube at the time. I'd personally create custom playlists in AVideo if it did the same and never use YouTube again except to upload to AVideo 😁

DanielnetoDotCom commented 1 year ago

Is there a specific reason full screen is necessary on mobile?

not really, I guess this is a browser limitation. youtube is different, they treat themself differently.

GreenDragonTavern commented 1 year ago

My guess would be the difference between Web JPlayer and Android/iOS JPlayer. They're probably different in not only how they're displayed on device but how JPlayer API interacts or doesn't.

DanielnetoDotCom commented 1 year ago

do you mean jplayer can go to the pip in mobile without fullscreen?

try to pause and unpause the video before lose focus

GreenDragonTavern commented 1 year ago

Nope, fullscreen on phone is only way to invoke PiP. The most functional method I've found on phone so far is to go fullscreen, manually press PiP and then shift phone back to portrait. Otherwise letting PiP invoke itself is spotty, at least on my Samsung.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.