twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

Twitch Player not playing on iOS hybrid apps :Ionic #276

Open nayyargaurav-aristocrat opened 3 years ago

nayyargaurav-aristocrat commented 3 years ago

Brief description I am trying to play twitch video via iframe but not able to do the same on iOS device's but the android device is working fine. How to reproduce Put this under a hybrid app

Expected behavior Should play the video

Screenshots image image

Additional context or questions

BarryCarlyon commented 3 years ago

Your declared parent of localhost doesn't match the "domain" of the page being rendered.

A solution for mobile was suggested https://discuss.dev.twitch.tv/t/how-will-twitch-embed-updates-affect-mobile-app-embeds/26008/43 see if you can apply this.

This isn't a bug I believe.

nayyargaurav-aristocrat commented 3 years ago

@BarryCarlyon it's working fine when I run the same in android. So why it's failing with iOS? Anything else you can add to this. or suggest I can try.

BarryCarlyon commented 3 years ago

it's working fine when I run the same in android. So why it's failing with iOS?

They are different operating systems that operate in different ways

nayyargaurav-aristocrat commented 3 years ago

it's working fine when I run the same in android. So why it's failing with iOS?

They are different operating systems that operate in different ways

anything else you can suggest to check on ?

BarryCarlyon commented 3 years ago

https://discuss.dev.twitch.tv/t/how-will-twitch-embed-updates-affect-mobile-app-embeds/26008/43

Is Jon's tested/working example for iOS

nayyargaurav-aristocrat commented 3 years ago

https://discuss.dev.twitch.tv/t/how-will-twitch-embed-updates-affect-mobile-app-embeds/26008/43

Is Jon's tested/working example for iOS

Is this works with Native/ Hybrid Apps? @jbulava @BarryCarlyon ?

jbulava commented 3 years ago

@nayyargaurav-aristocrat The example on that link was built for native iOS and Android apps and I assume the same approach could be used for hybrid apps.

The key difference between the code in the original post above and the example is that the latter is actually embedding a URL on a domain I own rather than the Twitch embed directly. I place the Twitch embed on a site – let's say I've placed the iframe code on mywebsite.com/embed – and then I add a web view in the mobile app for mywebsite.com/embed.

nayyargaurav-aristocrat commented 3 years ago

@jbulava No luck with the above suggestion. If possible we can connect on this to discuss the same.? Please suggest some time it's possible.

My time zone is IST.