mpmovieplayercontroller

how to run “3gp, FLV, avi” video format in AVPLAYER or MPMoviePlayerViewController in iOS?

僤鯓⒐⒋嵵緔 提交于 2021-01-28 23:51:01
问题 I need to play 3gp, FLV, avi Video file format in my application. I had searched lot about it. Got some library like "FFmpeg" Library. But could not find any sample code for it. Any other ways for it are also appreciated. Does any body have done it before? I am even not sure that if it is possible or not in iOS. Please give me solution for it. UPDATE : I tried one 3gp Video in my AVquePlaye but it is not play in my code, While i use same Video in WhatsApp in my iPhone , Surprisingly video is

How to play RTMP video streaming in ios app?

本小妞迷上赌 提交于 2021-01-28 04:22:10
问题 HI I'm developing Broadcast App for that I'm using Videocore library now how can i play that streaming video in ios app i tried with the MpMoviePlayer but it won't support the rtmp stream. so is there any third party libraries available for RTMP supported Players please help me 回答1: If you already have the RTMP live stream ready and playing as HLS then you can simply add .m3u8 after the stream name and make RTMP link to http . For example you have RTMP link like this: rtmp://XY.Y.ZX.Z/hls

Reducing the initial delay when playing remote video content

蓝咒 提交于 2020-01-29 09:49:49
问题 Hi using MPMoviePlayerController to stream video into the app. However, it takes a long time to load and I want to be able to pre-buffer the video. Any suggestions? 回答1: Use [MPMoviePlayerControllerInstance prepareToPlay] as soon as you know that the user might start playback of a movie. You might also want set MPMoviePlayeController.autoPlay to something that fits best, depending on your application. From Apple's Documentation; This method is called automatically when you call the play

Reducing the initial delay when playing remote video content

折月煮酒 提交于 2020-01-29 09:47:45
问题 Hi using MPMoviePlayerController to stream video into the app. However, it takes a long time to load and I want to be able to pre-buffer the video. Any suggestions? 回答1: Use [MPMoviePlayerControllerInstance prepareToPlay] as soon as you know that the user might start playback of a movie. You might also want set MPMoviePlayeController.autoPlay to something that fits best, depending on your application. From Apple's Documentation; This method is called automatically when you call the play

Convert GIF to MP4 on device

落爺英雄遲暮 提交于 2020-01-23 00:31:11
问题 Is it possible to take a remote (but I can download it first if needed) GIF sequence and make a MPMoviePlayerViewController playable mp4 on the device? I have tried using http://api.online-convert.com/, but the API doesn't suit and the free version is too restricted for our needs. Imagemagick for iOS also doesn't seem to include GIF support. 回答1: This wasn't so easy. There is a gist snippet here with the solution. 回答2: Swift 3.0 version. https://gist.github.com/powhu

iPhone App :How to play Youtube video in app using MPMoviePlayerController

戏子无情 提交于 2020-01-22 12:58:05
问题 iPhone App :How to play Youtube video in app using MPMoviePlayerController for that i write the code: NSString *urlAddress = @"http://www.youtube.com/xyz"; NSLog(@"URL ADDress : %@",urlAddress); //Create a URL object. NSURL *url = [NSURL URLWithString:urlAddress]; movie = [[MPMoviePlayerController alloc] initWithContentURL:url]; movie.scalingMode=MPMovieScalingModeAspectFill; movie.view.frame = CGRectMake(0.0, 0.0, 320.0, 460.0); [self.view addSubview:movie.view]; [movie play]; if i pass the

Forcing landscape orientation on fullscreen MPMoviePlayerController prevents correct rotation when exiting fullscreen

邮差的信 提交于 2020-01-19 05:24:27
问题 I have an iPhone application (iOS6+) that supports all interface orientations. However, only landscape orientation should be supported when an MPMoviePlayerController is playing a video fullscreen. I found the following solution on Stack Overflow and it works. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayerWillEnterFullscreenNotification:) name:MPMoviePlayerWillEnterFullscreenNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self

MPMoviePlayerViewController done button is not removing the player

 ̄綄美尐妖づ 提交于 2020-01-16 19:08:09
问题 My app has to be work in Ios5 and later Versions. I am adding MPMoviePlayerViewController to mainWindow When clicking on a button.the Done button of moviePlayerController is not removing the moviePlayerController from window. My code is NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"001 ATSW" ofType:@"m4v"]]; self.player = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector

Empty (white) line under UITableView after close MPMoviewPlayer from fullscreen mode

有些话、适合烂在心里 提交于 2020-01-16 18:26:40
问题 I have simple application with list of movies in UITableView. When I select some row, I open modal view controller what present MPMoviePlayerController. [self.navigationController presentModalViewController:playerController animated:YES]; Also I set observer to catch message when player is finish playing. When playing is finished, I make [self dismisModalViewControllerAnimated:YES]; If I click "Done" in player control, all work great. But if it's finish playing self in fullscreen mode I get

Empty (white) line under UITableView after close MPMoviewPlayer from fullscreen mode

主宰稳场 提交于 2020-01-16 18:26:10
问题 I have simple application with list of movies in UITableView. When I select some row, I open modal view controller what present MPMoviePlayerController. [self.navigationController presentModalViewController:playerController animated:YES]; Also I set observer to catch message when player is finish playing. When playing is finished, I make [self dismisModalViewControllerAnimated:YES]; If I click "Done" in player control, all work great. But if it's finish playing self in fullscreen mode I get