Hello and thank you for your help. I am attempting to build an ionic hybrid app which is similar to http://www.musicdrop.tv. The idea is a place to build playlists of youtube music. In order to play youtube content I use the YouTube iframe api (the same that’s used in musicdrop). When I run my ionic app in the browser locally, it works as expected…the videos play. After I deploy using Ionic View when I play some videos I get “This video contains content from UMG. It is restricted from playback on certain sites.” This does not occur when testing on localhost.
Obviously it’s restricted from being played on the Ionic View app, and the only difference I can think of is the application origin. When I run it locally on my dev machine I believe it is sending the origin as “http://localhost:3000” or something to that effect so I suspect that “localhost” is an acceptable source. But when run in Ionic View it is failing so I suspect that it is sending “file://” as the source (this would correspond with the information I had to dig into to learn about CORS). That’s my best guess at least…it could certainly be something else.
Any suggestions?
Thank you.