iPhone video control and dual video playback

I need a way of controlling video non-fullscreen in my application. I've played around with both MPMoviePlayerController and a solution using UIWebViews.

I have found one solution using MPMoviePlayerController where I can prevent the video from going full screen (by grabbing the key window and set a transform on the UIWindow object). However, the MPMoviePlayerController doesn't seem to provide a method for pausing and resuming the playback. If I use the stop method, the video will hide (as specified in the api). Also, I need to be able to set the playback position during playback (manual seeking etc). I have seen apps that does this in the app store, but I'm not sure if they were deployed before Apple banned private method calls.

Does anyone have any tips or tricks related to this? (keep in mind that my app need to be accepted for the app store)

I'm not interested in FFMpeg solutions, due to licensing restrictions.

I'd also like to have playback of two videos at the same time, and would like some tips on this as well (however, I consider it not possible at the moment as MPMoviePlayerController will only play one video at the time).

Answers


In iOS 3.2 and greater you can create in-line video players. Just add the MPMoviePlayerController's view property as a subview to your content view, set the frame and the URL source (local/remote) and voila. You have a non-fullscreen video player. Check out the documentation for MPMoviePlayerController for more details. (http://developer.apple.com/iphone/library/documentation/mediaplayer/reference/MPMoviePlayerController_Class/MPMoviePlayerController/MPMoviePlayerController.html)


Need Your Help

ng-repeat vs ng-options which is best for me

javascript json angularjs angularjs-ng-repeat angularjs-ng-options

i have to display the JSON data in drop down list ,for that i have two options one of the options is By using ng-repeat and other one is ng-options.

Identifying subnet mask of the computer in Delphi

delphi mask subnet identify

I am looking for a way to be able to retrieve IP Subnet mask of the computer I am currently

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.