YouTube iFrame does not count views - ios

I've embedded a video on my site using YouTube's new iFrame embed code, but sadly whenever I test-watch the video on my site, the view count doesn't get increased on YouTube. My video is not on autoplay and it doesn't have 300+ views (it has less than that) so that's not the problem.
I've also tried using the old embed code from YouTube and that works, the view counts increase everytime I test-watch the video from the site.
I'm asking this cause I can't use the old embed code since it's not supported by Apple. So my question is, is it normal that the iFrame code can't count views? What else can I do? Any help at all would be well-appreciated!
Thanks!

Hi having the same issue, please let me know i you find out.
https://stackoverflow.com/questions/26929539/youtube-iframe-does-not-trigger-counter-but-old-method-works

Related

MobileVLCKit video full screen

I want to play video streaming using MobileVLCKit in fullscreen mode.
How can I do this?
Please share code if possible (swift)..
I just saw that my previous answer on the old thread was massively downvoted back then. It's still true though. MVK renders in a simple UIView, so it is the obligation of the client app to implement the view handling, be it a tiny one or one filling the screen.
Note that there is sample code available on how to integrate MVK here: https://code.videolan.org/videolan/VLCKit/

"Unauthorized" overlay on Android YouTube player supported?

I am looking at the Android PlutoTV app and trying to get a similar effect.
Now, just to prove that this video is indeed from YouTube, see the next screenshot:
I would very much appreciate if someone could explain how this overlay effect is obtained notwithstanding youtube's player restrictions.
Kindly help!
Cheers
There are two ways to overlay the Youtube Player:
Using an ActionBar, as described in one of the samples
Using a Dialog or DialogFragment. In this case your view(s) overlaying the player aren't part of the view hierarchy and can't be detected by the youtube player.
EDIT: About 1 vs 2
The first solution is the "official" way to overlay controls/whatever over the Youtube Player. It was difficult for me to use because it simply didn't work after days of trying.
That's why I'm using the second solution, which is technically against the ToS.
But I've just got a small semi-transparent bar at the bottom of the player which disappears after 2 seconds, so I don't think I will have any problem anyway.

Make YouTube to Count my "Autoplay" Clicks as Views

So I have used java to load only a thumbnail of a youtube video. When the thumb is clicked, the image div is replaced completely with an embed of the video on "autoplay." Everything was working as I wanted BUT
On YouTube when I look at the Analytics/traffic sources the "Unknown — embedded player" views dropped 90%+ to almost nothing as seen on the picture at the above URL. This is apparently because "autoplay" views are not recognized by YouTube as legitimate views which i confirmed on stackoverflow and elsewhere.
So... I want the best of both worlds. I want the fast load speed that comes with loading only the thumb at first AND I want to avoid autoplay so the views actually count on YouTube when the thumb is clicked. My temporary solution is to set autoplay=0 which forces the user to essentially click the same thumb twice, though I would prefer to avoid the redundant click.
Here is a example page from my site that has 4 embedded videos.
Use waiting/loading image instead of video thumbnail. Then use jquery to replace that waiting image by youtube embeded code few seconds after page loaded.

How do I make a youtube embedded video responsive

I am using bootstrap 2.3 and I have embedded some youtube videos. But when I check the responsiveness of the site, the video doesn't seem to get resized accordingly. Any help is greatly appreciated.
There is a good article about reponsive video, checkout:
http://avexdesigns.com/responsive-youtube-embed/
more variants here:
http://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php

How to remove video controls from YouTube videos?

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.

Resources