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/
Related
When I share a link to any Youtube video the video is not loaded to the chronicle and only the link appears in the post as shown in the first link hereafter. In comparison links to vimeo video work well as shown in the second link hereafter. Could you tell why this happens with the links to Youtube video?
https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-prn2/602987_10200981706798791_1321606490_n.jpg
https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-frc1/998556_10200981706998796_1641522632_n.jpg
Refresh your page, or restart the browser. Sometimes it deosn't show the preview.
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
I am noob with iPhone programming. I want to ask question regarding the Video and Facebook link.
I create list of page and when user clicks page, the view will show description of video and a button to play the video.
1.Is it possible to play facebook and youtube video in media player when user clicks Button?
because each page has different video, and i only get embedded link of a youtube video (not video file format and the video identifier).
2.How to send parameter to IBAction? Because when user click button it depends on the video link on selected page.
What my apps look like will be similar with SBS News Australia apps in section part where user can click play button and go to media player.
Thank You!
Unfortunately you can't play YouTube (or Facebook) videos with MPMoviePlayerController. You can open and play a YouTube video with UIWebView, but you can't play any other flash video (like Facebook videos).
I'm developing a site for mobile devices (such as iPhones and Androids). And I would like to have a scenario when user clicks a button and hears a sound from audio-file (.wav for example). Is it possible to achive it somehow?
Thank you for your help!
You should be able to just add in a link or embed the file into the html for your site. Here is some info on it:
http://www.boutell.com/newfaq/creating/iphoneaudio.html
I am developing an app that use UIWebView to display a list of videos from youtube.
For playing the videos I use the youtube embed feature and it open the youtube application when the user clicks the video thumbnail - works great.
I want the same functionality to be executed when I click a "Watch Now" button that will be located near the youtube thumbnail on my web view but when I try to use "href" to the youtube video it opens the "youtube play page" and not the youtube iPhone application like in the embed way...
Any ideas?
Netanel.
I've created a test project with following code executed:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"http://www.youtube.com/watch?v=5ra01Bqef7A"]];
Running the project in Simulator allowed to reproduced the issue you've stumbled upon: test app launched Safari and it simply opened the Youtube video's page. But when I ran the same project on an iPhone the result was different: it launched the Youtube app and it started lading/playing the video in the URL right away.
The reason why the same code behaves itself differently is that there's no Youtube app in Simulator, so the only URL handler available in its environment is Safari. So everything's working as it should, you can continue developing your app.
BTW here's a really nice official blog post from Youtube about integrating it with iPhone apps: YouTube APIs + iPhone = Cool mobile apps