mpmovieplayercontroller

MPMoviePlayerController end of play my screen change to audio streaming controller

让人想犯罪 __ 提交于 2019-12-11 06:18:37
问题 I'm using MPMoviePlayerController with streaming with m3u8. I Have big problem that the end of playing my screen change to such as audio controller. Here are my screenshots. After playing change to My m3u8 file is.. #EXTM3U #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1148390 http://ex.com:1935/vod/mp4:1306651297327_3302.mp4/playlist.m3u8?wowzasessionid=65455083 and follow http://ex.com...playlist.m3u8?wowzasessionid=65455083 #EXTM3U #EXT-X-TARGETDURATION:10 #EXT-X-MEDIA-SEQUENCE:1 #EXTINF:10,

Why does my time UILabels skip 2 seconds when it resumes play from a pause state?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 05:55:31
问题 I'm having a weird issue using MPMoviePlayerController . I have a currentTimeLabel representing the current playback time and an endTimeLabel representing the remaining playback time. The function to update the labels is fired off every 1 second using an NSTimer . This coincides with a UISlider that increments every second as the video plays. However, the problem is, as the video is playing, and I tap the Pause button, when I tap the play button again, my currentTimeLabel and endTimeLabel

How to get video player to NOT auto play while using MPMoviePlayerController

假如想象 提交于 2019-12-11 05:28:22
问题 I'm trying to code a video into my iPhone app and the code below works perfectly but the only thing is that I rather the video not automatically start playing when the user opens the page. I want them to be able to push the play button. The code below is located in my viewcontroller.m file. (void)viewDidLoad { NSString *url = [[NSBundle mainBundle] pathForResource:@"77860_00_01_MM02_welcome" ofType:@"mov"]; player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath

MPMoviePlayerController tutorial needed

最后都变了- 提交于 2019-12-11 05:09:03
问题 Can anyone please recommend a tutorial for MPMoviePlayerController. I need to play a video with the help of UIButton. 回答1: Although this is not a tutorial, it shows some code to play video using MPMoviePlayerController: Play Video with MPMoviePlayerController in iOS 3.0 and 3.2/4.0 来源: https://stackoverflow.com/questions/4941803/mpmovieplayercontroller-tutorial-needed

Portrait-mode app, return to portrait mode after landscape fullscreen movieplayer

给你一囗甜甜゛ 提交于 2019-12-11 04:55:52
问题 So I have an application only in Portrait mode. If I launch a movie player in fullscreen and rotate it to landscape mode, and then I press on the Done button, the status bar is in landscape mode, and the view is in portrait layout but in landscape mode so showing just on part of the scree. If i rotate the device myself, the views are reset properly, but i need a way to do this programmatically. I tried this: shouldAutorotateToDeviceOrientation returns true for portrait mode only [

Http live streaming: Forcing MPMoviePlayerController to pack headers in the http requests

会有一股神秘感。 提交于 2019-12-11 04:46:55
问题 I am streaming video from a server to iPhone using Http Live Streaming. I need to set certain headers in the http packets that the phone sends to the server. For regular packets, the following code would suffice: NSMutableURLRequest* request = [[[NSMutableURLRequest alloc] initWithURL:url] autorelease]; [request setValue:VALUE forHTTPHeaderField:@"Field You Want To Set"]; Unfortunately, I did not find a similar API for MPMoviePlayerController . In other words, how do I force

iPhone Prevent application to automatically change orientation to portrait when a video stop

删除回忆录丶 提交于 2019-12-11 04:13:43
问题 My application is in landscape mode and I use MPMoviePlayerController to play an sample video. It works fine but when I stop the video with the OK button (or if I wait until the movie ends), the orientation automatically changes to portrait. Is it possible to keep application in landscape mode when the OK button is pushed ? I use the followwing code in my main view controller to force landscape mode : -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

MPMoviePlayerController doesn't work after upgrading to iOS 5

拟墨画扇 提交于 2019-12-11 04:06:51
问题 This code works perfectly on iPad 4.3 Simulator: NSString *source = [mediaObject objectForKey:@"source"]; NSString *videoPath = [NSString stringWithFormat:@"%@/%@", path, source]; NSURL *videoUrl = [NSURL fileURLWithPath:videoPath]; MPMoviePlayerController *videoPlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoUrl]; videoPlayer.shouldAutoplay = NO; videoPlayer.view.frame = CGRectMake(xPos, yPos, width, height); [backgroundImageView addSubview:videoPlayer.view]; [

Do not get the AudioListenerInterruptionEnd trigger

混江龙づ霸主 提交于 2019-12-11 03:41:18
问题 I have a problem with the combination of OpenAl and the MPMoviePlayerController. I registered the AudioInterruptionLister in my OpenAl Setup process. When I start a video the listener receives the AudioListenerInterruptionStarts, but when the movie ends I do not receive the AudioListenerInterruptionEnd trigger. // Register callback for audio interrupts AudioSessionInitialize(NULL, NULL, &OpenALInterruptionListener, this); The listener void OpenALInterruptionListener(void *inClientData, UInt32

MPMoviePlayerController H.264 and Multiple Audio Streams

不想你离开。 提交于 2019-12-11 03:34:07
问题 I am trying to find some information on how to support multiple audio streams from a single H.264/MPEG4 video file. So far I have found very little information when googling, I was wondering if anybody has any information that may shed some light. I would like to display the video then have a choice of which audio stream to play from the H.264 format. Anybody? 回答1: MPMoviePlayer cannot be used to play a movie with multiple audio streams. 来源: https://stackoverflow.com/questions/15138380