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
Related
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/
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.
I'm new to the community =)
My question...
Is it possible to have an overlay screen of the front camera while having a full screen video background. Sorry if it sounds a bit confusing, it might be easier if you see the mock-up at this link.
Mock-up: Mock-up Link
Building for the iPhone using either Obj C or Xcode.
Any reference or guidance would be much appreciated.
Thanks
Robert
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
I'm in the process of updating an older app I've developed to new iphone 5 screen dimensions. I have a page that I was able to stretch vertically but I have a weird issue.
Problem
Currently the page looks like this:
Everything is stretching as normal. As you can notice, at the top I have a button that links to a video. When you press this button, the default iOS "videoView" we'll call it, comes up and plays my video like normal. When I press the "done" button to exit the video, here is what my page looks like when I return.
You can see the view gets stretched horizontally and vertically. Springs and struts for this view are as follows:
Any idea what might be going on here?
EDIT
Here is the view hierarchy. It's custom.
Not sure if it is the exact same problem, but I think there is a WWDC 2012 video showing a problem with the evolution of ViewControllers, perhaps it is the same problem you are facing.
The video is : Session 236 - The Evolution of View Controller on iOS
and also the sampling code of this video can be usefull.
To get the video go to you apple developer account and videos are freely downloadable through iTunes.
Link to WWDC 2012
Hope it will help you
EDIT
I went quickly through the video and I am not sure it is the same problem as you. However this video explains new iOS6 features in the layout and hierarchy of the view controllers which I hope will help you.