Embedding YouTube Video in Trigger.io for iOS - youtube-api

Our html app occasionally embeds YouTube videos in the UI. We use a simple iframe to embed them.
When we put the app on our phones (iOS / iOS Simulator) the video opens in mobile Safari.
What's the right way to get the embedded YouTube videos to play within the app, and not launch Safari?

Since YouTube redirects you to its https:// protocol site, you need to whitelist https://youtube.com -- just whitelisting http://youtube.com is not enough.

Related

Deep linking into YouTube Upload from another iOS App

I make an app for video editing and would like to deep link from the save screen into places like YouTube and Instagram's upload screens.
Is there a way to deep-link into YouTube or YouTube Short's upload screen on the iOS app? I'm having trouble finding any deep-link URL schemes for YouTube (though I see Instagram does have some).
No such deep-link exists for youtube.

YouTube link not opening App (iOS/Chrome)

I have created a basic web page that links to a few YouTube accounts. Each account has a custom URL as allocated by Google via Google+:
http://www.youtube.com/c/*channelName
The links work fine in iOS Safari and offers to open the YouTube app, which is the behaviour that I want, but when I click the links in iOS Chrome it simply sends me to the mobile YouTube website.
Anyone know why Chrome doesn't launch the YouTube app? Normally if you click a YouTube link in Chrome it does it by default, but I can't get it to work with this particular URL format.
Try this:
Open settings in iOS Chrome
Google Apps
Turn on YouTube
YouTube was off by default on my iPhone.

Open Youtube App and go back to my App

For my project, I would like to watch some Youtube video. However, when I embed Youtube's Player in a UIWebView, the quality is really low. So, I decide to play the videos on the Youtube App if she's on the phone.
My problem is that my user can't go back to my app once the video is finish.
I know there's a URL Scheme for Google Maps App that add a button to go back to your app, but I didn't find anythings for the Youtube App.
Any idea ?
There isn't any public URL Scheme for the YouTube iOS App like Google Maps has for callbacks.
You can use this SDK for embedding Youtube videos into your app: https://developers.google.com/youtube/v3/guides/ios_youtube_helper
Check out the Youtube Developer Site: https://www.youtube.com/yt/dev/hu/api-resources.html, if they will enable an URL Scheme with callbacks, it will be available here.

Embed Youtube videos in Metro style application

I am writing application to show youtube videos.
In WPF on windows 7 I use WebBrowser control and it works fine. But when I use WinRT WebView control to show swf file from youtube - it doesn't work. Only clear white screen.
I use approach like that : http://blog.tedd.no/2010/06/27/embedding-youtube-in-wpf-webbrowser-control/
What shall I do to have an oppotunity to show videos in Metro Style Application?
Thank you
try this one from the mytoolkit library: http://mytoolkit.codeplex.com/wikipage?title=YouTube
The default youtube video player (unless the user has opted into the HTML5 preview) is a Flash video control. Flash is not supported in the Windows Application Store ("Metro") shell version of IE, or in the WebView control.
But what you can do is request youtube to use the HTML5 video player (HTML5 video is supported by the App Store version of IE and WebView). For example, this video does play properly for me:
<WebView Source="http://www.youtube.com/watch?v=cTl3U6aSd2w&html5=True" />
So you should be able to embed a video using a webview, you just have to force the webview to use the HTML5 viewer. This can also be done as a parameter to the embed URL: see Force HTML5 youtube video
However, this setting only says to prefer the HTML5 player. Youtube may still attempt to use the flash player on some videos, which will not work in all cases.
You can alternatively also play the video through "mediaelement" to play youtube video, though you'd have to parse the youtube video stream first. See my W8 app "RedditTV"

do pre-roll ads appear on embedded youtube videos on iOS?

We are contemplating using youtube to store and encode our videos for our iOS app. If we do so, will the pre-roll ads that appear on youtube via the web also appear on mobile?
As far as I know, no form of ad appears on the mobile or HTML5 versions of YouTube. Embedded ads only appear in the Flash Player driven version of the page, available in desktop browsers.

Resources