two questions really, but hopefully you will allow.
I am trying to embed a YouTube channel using the google widget, which is working apart from two problems:
1/ The full screen icon does not seem to work
2/ When the video plays full screen (by selecting 'Play on YouTube')it is not HD by default
Here is the channel embedded on our site :
Embedded Channel Example
Hope you can help
Related
I'm trying to embed my youtube video with full screen.
but there's a problem: the video has BLACK SIDES on right and left.
here is an example: https://www.youtube.com/embed/vXy1G2JeJo0?autoplay=1&modestbranding=1&controls=0&showinfo=0&rel=0&enablejsapi=1&allowfullscreen=true&wmode=transparent&iv_load_policy=3&html5=1
there's a right and left bands on screen.
I just want to make it like here: http://acwistanbul.com/
please, just help me.
i couldn't find any solution.
Perhaps this resource may help you http://embedresponsively.com
Explanation
On said resource enter your youtube video link and click embed. This
will generate code for a fullscreen'd responsive embedded youtube
video.
I'm trying to create an app and have embedded YouTube videos, but I need to remove the on-screen controls from the player (play/back/forward/volume, etc.). Does anyone have any suggestions on how to do this? Is it possible to have my own custom buttons instead (for example, "forward 60 seconds") I've looked at MPMoviePlayerController but research has me under the impression this is not what is called when UIWebView fires up a YouTube video.
I've also looked at the YouTube API but can't seem to find any good tutorials or examples on how to actually use it for iOS development.
Can someone point me in the right direction? I've been trying to figure this out for a couple of days and I just seem to be spinning my wheels.
Any help would be greatly appreciated!
you have multiple options
1. use youtube data api. you can edit the video controls if you use it.
2. you can use 3 rd party frame work youtubekit visit https://github.com/rinov/YoutubeKit
if you want to watch a tutorial got to youtube there is a channel called "codewithchris". here is the link https://www.youtube.com/playlist?list=PLMRqhzcHGw1aLoz4pM_Mg2TewmJcMg9ua
UIWebView is very limited. You cannot put video controls there. Because what UIWebView do is just shows another website as a frame. If there must be some controls, that controls should be in the website. So you cannot add any further controls.
If you want to use control buttons for your videos, instead of youtube, put the video in webpage with control buttons as like. Then put it in UIWebView. Or you can use the media player.
I want to open youtube videos after the user hits an image, that is generated dynamically. The user searches for a videos, and it appears 10 images previews on the scree (that part is done), know I want to detect the tap on that views and open a youtube video that correspond to that preview.
Do you know how I do it?
Thanks a lot!
You can use the tag of image followed by its url.
Ive got this very strange problem related to google maps and youtube. I have embedded a youtube video in an iframe. and i have embed that iframe in an info window. Now the problem is that when i run it on firefox, the video shows up black. on chrome, its distorted. but when i open that iframe in separate tab. the video is just fine!
Anyone else having this problem?
I have tried the same in Google Maps v2 and its working good!
Okay so I have been following this issue for a very long time now. Using the HTML 5 option of embedding a Youtube video and putting wmode=opaque and autoplay=1 and using the latest browsers from FF, IE, Safari and Chrome everything works fine / great. Problem is, intermittently, in FF a video shows up with audio only. This happens say 1 out of 10 times (meaning in 9 cases Youtube video + audio, in 1 case Youtube audio only). Clicking on the dark region brings full screen where video is visible ! I am yet to find out a pattern to diagnose this problem. Else, things are much better now. I am doing like what you are. Clicking on a marker on Maps V3 opens up an iframe. Inside that iframe i call a Youtube video using the iframe embed option. Maps V2, no problem !!!
This is an open issue at Google Maps v3 !
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3160
I am using HTML5 video tags in a UIWebview on the iPad, and positioning them as needed using CSS. The key part of these videos is that they are designed to take up part, but not all, of the visible area on the page. When I'm doing this in the "normal" mode of displaying content only to the primary UIScreen, everything works great.
However, when an external VGA projector is hooked up as a second UIScreen, the video tag content immediately becomes FULL SCREEN. This seems to also happen in Safari when looking at, for example, YouTube videos. In searching the docs, there seems to be no way to stop / control this behavior.
Is there any way to stop a video tag from forcing its content to go to full screen when a second display is connected?
Unfortunately, using a UIWebView iOS 3.2 doesn't offer any way to do this. Video in a UIWebView always plays fullscreen on an external display using the TV out feature.
However, the good news is that iOS 4 does offer a solution. UIWebView has a couple of new properties:
allowsInlineMediaPlayback
http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006950-CH3-SW32
mediaPlaybackRequiresUserAction
http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006950-CH3-SW33
The former will allow the videos to remain 'inline' as opposed to using the full-screen player.