Questions tagged [ytplayer]

Youtube Player code.google.com/p/ytplayer/‎

Youtube player reference: https://developers.google.com/youtube/js_api_reference

38 questions
6
votes
5 answers

How to Open YouTube app with YouTube id on a button click in iOS

I am building an app in which i will be having a UIButton named Watch Video on clicking the button the YouTube app/web should be opened with the respective youtube ID. I saw code to embed YouTube videos in iOS but i did not find anything of this…
Manju Basha
  • 665
  • 1
  • 9
  • 29
5
votes
1 answer

Uncaught ReferenceError: ytcfg is not defined even though I won't use that as I am using yt player

I have been using the YouTube IFrame Player API without problem for months and started to see this exception recently when the player loads: Uncaught ReferenceError: ytcfg is not defined when I see the console. Also by this error my app…
VIKAS KOHLI
  • 8,164
  • 4
  • 50
  • 61
4
votes
4 answers

Failed to execute 'postMessage' on 'DOMWindow': target/origin mismatch http vs https

I apologize up front as I'm very confused by my problem. I'm really in a bind because this is causing a problem on my production site. I have a javascript player on my site which plays through song lists which can be hosted on youtube, soundcloud or…
wuliwong
  • 4,238
  • 9
  • 41
  • 69
3
votes
0 answers

How to Change the title of done button of ytplayer in objective c

I'm beginner so I'm working on video app and using YTPlayer for playing YouTube videos in Objective-C. project is working good but there is little thing about done button its shows PLAYBACK_CONTROLS_VIEW_CONTROllER_DONE instead DONE.
3
votes
0 answers

iOS YTPlayerview doesn't load embed video while Android Player API does

I am currently working on an iOS application that is displaying video highlights for football matches. Some of our embedded videos are working successfully, however some videos display this error message. Error Message Image The same videos that are…
3
votes
2 answers

Slowly Decrease YouTube Video Volume on Page Load

I'm using this template to produce a fullscreen background video for my project. I need the sound to slowly decrease from 100% to 0% over 10 seconds. How would I achieve this? bootsnipp example HTML
Joel D'Arnot
  • 45
  • 1
  • 7
3
votes
1 answer

YouTube Player API Fullscreen event

I want to add a class (e.g. yt-fullscreen) to the element when the player goes fullscreen. Is there a way to get when the player goes in the fullscreen mode? In the docs I didn't find any relevant event for that. Maybe is there a way to check…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
3
votes
1 answer

YouTube fullscreen background autoplay not working in YTplayer

I am using YTplayer plugin for fullscreen youtube player in this-website Get inspired tab! I have provided code below with usefull links! I think the code is correct! Player is working if we click on the play control on hover at bottom of…
Suresh Karia
  • 17,550
  • 18
  • 67
  • 85
3
votes
1 answer

YTPlayer Video Quality in Chrome

I'm looking at a site with a fullscreen video background on the home page. Now I'm using YTPlayer which pulls in a video from YouTube so they can do all the heavy lifting when it comes to buffering etc. The problem I'm having is the video quality in…
SpaceBeers
  • 13,617
  • 6
  • 47
  • 61
2
votes
1 answer

Why does the youtube ytplayer object not update when navigating between youtube videos?

I'm working on a chrome extension that uses the ytplayer object from a youtube page in my contentscript.js file. In the past the ytplayer object updates every time you navigate to a new youtube video. As of now, i don't see it updating any more.…
2
votes
3 answers

Add autoplay to ytplayer

How do I add autoplay to the code below? The HTML and JavaScript code below shows a simple example that inserts a YouTube player into the page element that has an id value of ytplayer. The onYouTubePlayerAPIReady() function specified here is called…
user7583366
  • 21
  • 1
  • 2
1
vote
1 answer

Multiple instances of YouTube player inside loop

I have the following code, which works - but the part I can't figure out is how to grab the index in the onReady event. The result is 2,2 instead of 0,1 which I would expect - why? Codepen var tag = document.createElement('script'); tag.src =…
JCraine
  • 1,159
  • 2
  • 20
  • 38
1
vote
0 answers

Create a local playlist based on array of IDs for YTPlayerView YTPlayer

currently we're using on YTPlayerView: open func load(withVideoId videoId: String) -> Bool to load single videos. However in some cases we have a series of videos which need to play one after the other. Is it possible to create and load an array of…
Gaurav Sharma
  • 2,680
  • 3
  • 26
  • 36
1
vote
2 answers

YTPlayerView: Remove Share Button in top right corner

I'm using YTPlayerView from the youtube-ios-player-helper library for video playback, but want to hide the share button in the top right corner that comes with it - anyone have a solution? I've circled what I'm talking about here:
rigdonmr
  • 2,662
  • 3
  • 26
  • 40
1
vote
0 answers

fixing transparent youtube control icons with existing links

Something happened few weeks ago that i was unable to tackle myself. There is no information regarding my problem so i have to ask for help. We have a simple youtube videos embed in our site. However the control icons refuse to show except the one…
Papa Zhi
  • 45
  • 1
  • 11
1
2 3