Is there a way to open a YoutTube Link on a mobile website (iPhone) without opening the YouTube App - iphone

I think the answer to this is probably no, as I have been searching for days and have not run across the answer. I have a mobile site that has links to youtube videos in http://www.youtube.com/watch?v=XXXXXXXXX format. The links open in the iPhone Youtube app which takes the user out of Safari and is a suboptimal experience, as the user then has to re-open safari. Is there any type of parameter to pass that would allow these video links to open in the same view that say an embedded video opens in, or a direct MP4 would open in(which allows the user to simply click done, and boom they are back on Safari)? It sucks that only iframe or embedded videos seem to allow this functionality and not links.

From messing around with the mobile Youtube site itself, it looks like you can link to the mobile page for a particular video with this URL format: http://m.youtube.com/#/watch?v=XXXXXXXXX. Visiting that URL will show the video page in Safari without launching the Youtube app.

For me this solution is pretty simple but elegant and it did work perfectly
https://github.com/hellozimi/HCYoutubeParser

Related

Include own App to share sheet options of other Apps (e.g. Safari) using SwiftUI

I want to share the URL of the current Safari page with my app from within Safari.
Unfortunately, somehow all SO posts or tutorials deal with how to share URLS, texts, ... from your own app to other apps and not the other way around.
Can anyone give me some keywords/WebSite/Documentations/... on how to display my own app in the share sheet options of other apps (e.g. Safari).
Thanks
For those who are also just starting with iOS development and are asking the same question:
https://developer.apple.com/documentation/foundation/app_extension_support/supporting_suggestions_in_your_app_s_share_extension
You have to add a share extension to your project. There you can make all the other settings, such as the number and type of objects you can receive (image, text, link, ...) and the view that is displayed when you call your own app.

Share YouTube video on Facebook via API

This is probably not possible, but I'm throwing it out here for anyone with crazy awesome ideas or if they happened to come across some morsel of information about it.
I have an embedded YouTube player (iFrame) using the API, with a custom JS control bar. All that works great.
I want to have a share option, however, since the videos on my site will often appear as overlays, it's not ideal to have the page be shared, but rather the video itself. Is there a way to have a user share the YouTube link directly from my page, rather than just a link to my site?
I already realize the fallback is to create a URL on my site that takes a video id parameter and redirects to the proper youtube page.
Doesn't the embed video from YouTube include all YouTube features by default?
(Thumbs up, share, full screen, etc…)

Embedded Youtube Videos not playing when web app is added to homescreen

I've made an app for a client that uploads a vide to youtube and then emails them a link to a page that, when opened on Safari, displays the video and then prompts them to add the page to their homescreen as a web app.
For some reason, when the app is played in Safari the video plays fine but when it is played from homescreen it doesn't play sound through the speakers, only through the headphones. Anyone know of a reason this could be happening?
EDIT: Fixed it myself and posted to another answer
http://www.shockoe.com/blog/embedded-youtube-videos-wont-play-sound-through-speakers-when-played-from-web-apps-added-to-homescreen-fix/
Answered my own question! Need to use Object embed not iframe
http://www.shockoe.com/blog/embedded-youtube-videos-wont-play-sound-through-speakers-when-played-from-web-apps-added-to-homescreen-fix/

HOW to open photo in iphone fb app from other app using fb:// url

I'm trying to set a QR code link that showing me a photo uploaded into a new album in Facebook by a remote script.
I saw this page: AKOSMA
I then added fb://photo/id to my qrcode generator script
On Android, the URL works!
on iPhone it loads the Facebook app and loads a white page with no photos.
What URL am I supposed to use?
I tried some other URLs that I read about in the link above, but it doesn't work.
Unfortunately it doesn't seem it's possible. I tried in may ways!
At the moment I am linking to the photo in mobile Safari: #"http://www.facebook.com/photo.php?fbid=%#"

Embedding open graph video doesn't use video player

I've been in, around, and through a good chunk of the internets looking for an answer to this:
I'm trying to embed a video in Facebook using the og:video tag, but despite the fact that the facebook linter keeps showing 'status: Video embedding on Facebook enabled', when it shows up in my feed, clicking on it always opens a new window instead of showing it in the video player. It does show a little play icon, but it acts like a link rather than a video.
I've tried it with an swf url that works when i hit it, i've tried it with an mp4 video, I've tried https, http, etc. My og tags are pretty much exactly like this example I see at http://ahrengot.com/playground/circular-scrubbing/ (theres a good tutorial at http://ahrengot.com/tutorials/custom-video-player-on-facebook/).
Do I need to associate it with an app (have tried that and just using my user id in fb:admins), and if so, what kind of settings do I need to set to make it show up in a video player? Do I need to set up a canvas url?
I'm using flowplayer.
Thanks for any help.
Edit: it seemed to spontaneously start working after trying for 8 hrs. Does facebook do some kind of testing/caching of the target before it allows the embed?
yes, I'm not sure on how often..but to update facebook's cache of a specific URL, run it through the debugger (formerly URL linter) # http://developers.facebook.com/tools/debug
Might also be SSL related. If you have secure browsing enabled on FB it will launch your video in a new window. The link of the video you are embedding with og:video is using "http" and not "https".