"Unauthorized" overlay on Android YouTube player supported? - android-youtube-api

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.

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/

Can I make a docked playlist in vlc NOT dominate the window?

I'd like to be able to view my playlist in vlc in a manner where it is non-obtrusive. Currently it looks something like this:
My desire is kind of the opposite - have the actual video playing take up the majority of the screen and have the playlist unobtrusively off to the side (actually in reality I would probably be happy with an undocked playlist except for this bug.
I'm aware there is a hidden resizer between the video and the media sources thing, but in the image shown I cannot resize the video portion any larger than that.
I know this is a late response, but if anyone else is looking for an answer to this problem like I was, I'd like to spare them the headache of searching any further than necessary for it.
Juidging by this post on VideoLAN's forum made by the site administrator (Jean-Baptiste Kempf), this seems to be working as intended.
Yes, there is no way to have that mode. Either it's two windows, or you just have the preview instead of the thumbnail.
(my emphasis)
This is, in my opinion, a silly limitation/feature to have.
EDIT 2019:
It seems to now be possible to achieve what the OP wants. Just drag the top part of the video up and the navigation will get hidden, you'll see a vertical resize icon replacing the pointer icon when you hover over the line between the navigation and the video. This at least works on my version of VLC (Version 3.0.7.1) on Windows 10
I don't know when this was implemented but I'd feel very silly if I didn't try this before originally posting this answer.

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.

Adding custom button to MPMoviePlayerController (fullscreen)

I have a MPMoviePlayerController instance in my iOS app, that plays a local file in fullscreen mode. This all works fine, but now I want to add a custom button to the window for changing the playback speed. We support both iPhone and iPad in all orientations.
I know how to set the playback speed from code (using setCurrentPlaybackRate), but I need to let the user do it while watching the video, which means adding some kind of button to the playback screen next to the existing buttons, e.g. next to "play", "pause", or in the top bar.
By looking on StackOverflow I have found various replies for questions similar but not quite the same, some saying it cannot be done in fullscreen, some saying it can be done (but is very complex) by creating some kind of overlay, effectively replacing the entire overlay with a custom one.
Although, I have yet to find any code examples (apart from a few snippets without context), getting-started style tutorial or similar for this, so any pointers to example code would be greatly appreciated.
maybe this Apple example could help you
https://developer.apple.com/library/ios/samplecode/MoviePlayer_iPhone/Introduction/Intro.html

How to create overlay video like has YouTube application in ios

I'm developing video app and as i see youtube app have feature of this.
I think overlay use by window view but not sure scaling uiview technique. Please guide web or text for me
help me
Yes, I mean like JSA986
I think the question is asking how to imitate the funcionality of YouTubes app, ie dragging the video playing window to the bottom corner of the screen – JSA986

Resources