avplayer

Mixed Video Type Content queued in an AVQueuePlayer on iPhone

余生长醉 提交于 2019-12-12 05:35:36
问题 I'd like to start of by apologizing for this ridiculously long post, but I tried to provide as much code and data as possible for you to refer to. I am working on a video project where I will need the flexibility of the AVQueuePlayer (foremost the ability to scale and layout the video layer freely, as well as creating my customized controls). Problem is, I need to be able to mix video content of different types (in this case progressive download .mp4 and http streaming .m3u8). Here's where

Does AVPlayer support DVB Bitmap subtitles?

て烟熏妆下的殇ゞ 提交于 2019-12-12 04:05:33
问题 I currently work at a cable TV provider in Brazil which requires DVB Bitmap for some of its assets. I've searched quite alot on Google and Stackoverflow and haven't found any denial or confirmation about this. Does AVPlayer support DVB Bitmap subtitles? If not, which subtitle types does it support? 来源: https://stackoverflow.com/questions/46077711/does-avplayer-support-dvb-bitmap-subtitles

How to make volume slider for AVPlayer in xcode for mac

强颜欢笑 提交于 2019-12-12 03:53:16
问题 so i have my simple code of my radio app: -(IBAction)europaPlus:(id)sender{ NSLog(@"EuropaPlus work"); if (clicked == 0) { clicked = 1; NSString *urlAddress = @"http://cast.europaplus.ua/europaplus.aac"; NSURL *urlStream = [NSURL URLWithString:urlAddress]; radioPlus = [[AVPlayer alloc] initWithURL:urlStream]; [radioPlus play];} else { NSLog(@"EuropaPlus not work"); [radioPlus release]; clicked = 0; } } Also i used AVPLAYER only for URL connect but how make volume control for AVPlayer in MAC

AVPlayer & video from documents directory

耗尽温柔 提交于 2019-12-12 03:45:43
问题 I've been working on a small project that involves downloading a video file from a web server, copying said file to the documents directory and then playing it via AVPlayer. Downloading the file to the documents directory hasn't been an issue. I'm able to download the file and save it without issue. However, when it comes to loading the file into AVPlayer, and in doing that I'm playing it in an instance of AVPlayerViewController, the vide controller pops up as it should, but video doesn't

AVPlayer streaming works and yet it doesn't

淺唱寂寞╮ 提交于 2019-12-12 03:22:07
问题 Running Xcode 7.1.1 under El Capitan 10.11.2 an IOS 9.2 app Trying to understand the minimum code I need to implement playback for a Video stream, and crafted this very simply piece here ... don't need the Observer strictly speaking, but it crept in so I left it. static const NSString *ItemStatusContext; // a class static self.avPlayer = [AVPlayer playerWithURL:[NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]]; [self.avPlayer addObserver:self forKeyPath

iPod Library path to NSData

喜欢而已 提交于 2019-12-12 02:53:20
问题 How to convert the iPod library to NSData. The url is: ipod-library://item/item.mp3?id=1258203422631791096 Getting error but, I can play the song by using AVPlayer. NSURL *url = [curItem valueForProperty: MPMediaItemPropertyAssetURL]; NSError *error = nil; NSData *data = [NSData dataWithContentsOfFile:[url absoluteString] options:NSDataReadingMappedAlways error:&error]; NSLog(@"Error : %@",error); The curItem is a MPMediaItem Error Domain=NSCocoaErrorDomain Code=260 "The file “item.mp3?id

Detect user skipping to end of AVPlayer video

ε祈祈猫儿з 提交于 2019-12-12 02:40:06
问题 I've written a Xamarin.Forms iOS app Page that users an AVPlayer to play a video via a custom page renderer. When the video finishes, or when the user scrubs to the end of the video (using controls created by AVPlayerViewController ), they should be sent to the next ContentPage in the app. I can track when the video 'naturally' finishes by observing the AVPlayerItem.DidPlayToEndTimeNotification on the AVPlayerItem _playerItem , like so: videoEndNotificationToken = NSNotificationCenter

AVPlayer does not show video

非 Y 不嫁゛ 提交于 2019-12-12 01:47:39
问题 I am trying to play a movie at the beginning of my game. I am using AVPlayer to do this. My problem is, when I register a KVO to check the status of my AVPlayer, my game proceeds as usual without waiting for the video to load and finish. As a result, I can only hear the audio from my .mov file and can't see any video (since my game has already started). I would like the video to load and finish before proceeding with the game. Here's the code: @interface RMVideoView : NSView { NSURL*

Get ID3 tags from stream on iPhone

只谈情不闲聊 提交于 2019-12-11 19:16:56
问题 I can not get title of song and name of composer on iPhone from HTTP Live Stream (using m3u, m3u8 playlist files). I've tried get it from this site tempomix radio. this is link to streaming - http://stream21.group-network.net:9012 I'm trying use next code: AVPlayerItem *playerItem = [AVPlayerItem playerItemWithURL:url]; _player = [[AVPlayer playerWithPlayerItem:playerItem] retain]; _player.actionAtItemEnd = AVPlayerActionAtItemEndNone; [_player addObserver:self forKeyPath:@"status" options

Serving a .mp4 file with Flask and playing it on an Objective-C app causes Broken pipe and no play

我与影子孤独终老i 提交于 2019-12-11 17:34:37
问题 I'm trying to play a video that is served by a Flask web application on my iOS application. While I can play any video served with a "conventional" web server (like Apache), I can't play the video served by Flask. Here is the relevant code: Objective-C NSURL *videoURL = [NSURL URLWithString:[NSString stringWithFormat:@"%@",videourltemp]]; AVPlayer *player = [AVPlayer playerWithURL:videoURL]; playerViewController.player = player; [self.view addSubview:playerViewController.view]; [self