carverauto / flutter

🚨 ChaseApp opensource mobile app - follow live police chases 🚔
https://chaseapp.tv
MIT License
3 stars 0 forks source link

Video - add support for FOXLA embedded player #152

Open mfreeman451 opened 2 years ago

mfreeman451 commented 2 years ago

FOXLA has a link on their video to embed in your own site, so they are basically inviting us to do so. We've tested this and done it on the web it was quite easy, not sure how it would go with Flutter.

<iframe scrolling="no" frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen allow="autoplay; fullscreen" src="https://w3.mp.lura.live/player/prod/v3/anvload.html?key=eyJtIjoiS1RUViIsInYiOiJhZHN0YWdWR01ESnFaTnlYIiwiYW52YWNrIjoiYm1RdjhuWE1hbENPb2JCaHZocG85ZU1URTFPek40bEQiLCJzaGFyZUxpbmsiOiJodHRwczovL3d3dy5mb3hsYS5jb20vbGl2ZXN0cmVhbSIsInBsdWdpbnMiOnsiY3VzdG9tQ29tc2NvcmVQbHVnaW4iOnsiYzMiOiJGT1ggMTEgTG9zIEFuZ2VsZXMiLCJjNiI6ImZ0cyIsInNjcmlwdCI6Imh0dHBzOi8vc3RhdGljLmZveHR2LmNvbS9zdGF0aWMvb3Jpb24vc2NyaXB0cy9jb3JlL3V0aWxzL2NvbXNjb3JlL0N1c3RvbUNvbXNjb3JlUGx1Z2luLmpzIiwic2RrIjoiaHR0cHM6Ly9zdGF0aWMuZm94dHYuY29tL3N0YXRpYy9vcmlvbi9zY3JpcHRzL2NvcmUvdXRpbHMvY29tc2NvcmUvY29tc2NvcmUuanMiLCJjbGllbnRJZCI6IjYwNDI5MDEiLCJuc19zdF9zdCI6IktUVFYiLCJ0aXRsZSI6IiIsIm5zX3N0X2NpIjoiIn0sImN1c3RvbVNlZ21lbnRQbHVnaW4iOnsic2NyaXB0IjoiaHR0cDovL3N0YXRpYy5mb3h0di5jb20vc3RhdGljL29yaW9uL3NjcmlwdHMvY29yZS91dGlscy9DdXN0b21TZWdtZW50UGx1Z2luLmpzIiwicHJpbWFyeV9idXNpbmVzc191bml0IjoiZnRzIiwic2Vjb25kYXJ5X2J1c2luZXNzX3VuaXQiOiJrdHR2IiwiYXBwX25hbWUiOiJmb3hsYS5jb20iLCJhcHBfcGxhdGZvcm0iOiJ3ZWIiLCJhcHBfdmVyc2lvbiI6IjEuMC4wIiwic2VnbWVudElkIjoiQzJzZVdsRWxWUkNGaEtYd29GRTNvWFk5N3NjZko1QnciLCJwbGF5ZXJVbmlxdWVJZCI6InBsYXllci1hYWQ4ZGM1ZS05ODg1LTQxYjMtOTZmYi0yZGVhMTllNzlkNGIiLCJ2aWRlb19pZCI6ImFkc3RhZ1ZHTURKcVpOeVgifSwiZGZwIjp7ImNsaWVudFNpZGUiOnsiYWRUYWdVcmwiOm51bGwsImtleVZhbHVlcyI6eyJwdHlwZSI6InZpZGVvLWxpdmUiLCJ1c19wcml2YWN5IjoiMS0tLSJ9fSwic2VydmVyU2lkZSI6eyJ1c19wcml2YWN5IjoiMS0tLSJ9LCJsaWJyYXJ5UmVxdWVzdGVkIjp0cnVlfX0sImh0bWw1Ijp0cnVlLCJ0b2tlbiI6ImJ3UDlzNXBINUVSSnpqdUw2Um9fal9aREpCbFJEVTdyVldKcFRFNEw4Ujh%2BTW40d2ZnIn0%3D"  width ="640" height="360"></iframe>

That is the iframe, maybe we can look into this player and try and figure out what to do next.

If we can't figure this out, then we will have to figure out how to rip their stream and re-encode it / broadcast it, which we have plans to do anyways ..

If this is easy, we should do it sooner than later, because the aforementioned project is not trivial.

mfreeman451 commented 2 years ago

Is there a way to bring in a webkit html player/viewer into flutter and just run this all through that perhaps?

mfreeman451 commented 2 years ago

https://w3.mp.lura.live/player/prod/v3/anvload.html this is the 'anvato' player

mfreeman451 commented 2 years ago

https://anvato-intent-player.en.uptodown.com/android

mfreeman451 commented 2 years ago

Having trouble finding the iOS SDK or player or any info about it, but I know it exists..

https://42matters.com/sdks/ios/anvato

mfreeman451 commented 2 years ago

anvato.com redirecting to google

mfreeman451 commented 2 years ago

ABC:

<iframe width="476" height="267" src="https://abc7.com/video/embed/?pid=11616299" frameborder="0" allowfullscreen></iframe>
rutvik110 commented 2 years ago

Is there a way to bring in a webkit html player/viewer into flutter and just run this all through that perhaps?

yah, flutter supports adding some web elements through webview. WE should be able to do it.

mfreeman451 commented 2 years ago

KTLA supports embedding as well

rutvik110 commented 2 years ago

Will check it out once I get back to it.