提交 e1e1f046 编写于 作者: B bbcallen

ios: demo: fix build

上级 7daaee40
......@@ -8,6 +8,8 @@
#import <UIKit/UIKit.h>
@protocol IJKMediaPlayback;
@interface IJKMediaControl : UIControl
- (void)showNoFade;
......
......@@ -7,6 +7,7 @@
//
#import "IJKMediaControl.h"
#import "IJKMediaPlayer/IJKMediaPlayer.h"
@implementation IJKMediaControl
......
......@@ -12,6 +12,4 @@
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import "IJKMediaPlayer/IJKMediaPlayer.h"
#endif
\ No newline at end of file
......@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
#import <IJKMediaPlayer/IJKMediaPlayer.h>
@class IJKMediaControl;
@interface IJKVideoViewController : UIViewController
......
......@@ -9,6 +9,7 @@
#import "IJKMoviePlayerViewController.h"
#import "IJKMediaControl.h"
#import "IJKCommon.h"
#import "IJKMediaPlayer/IJKMediaPlayer.h"
@implementation IJKVideoViewController
......@@ -40,10 +41,10 @@
// NSURL *theMovieURL = [NSURL URLWithString:@"rtsp://l.m.cztv.com:554/hdmi/hntv1hd.stream"];
// NSURL *theMovieURL = [NSURL URLWithString:@"http://edge.v.iask.com/115151121.hlv?KID=sina,viask&Expires=1380297600&ssig=SjfwCmaiLe"];
NSURL *theMovieURL = [NSURL URLWithString:@"http://edge.v.iask.com/115279108.hlv?KID=sina,viask&Expires=1380297600&ssig=KpcdjFjrhW"];
// NSURL *theMovieURL = [NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"];
// NSURL *theMovieURL = [NSURL URLWithString:@"http://edge.v.iask.com/115279108.hlv?KID=sina,viask&Expires=1380297600&ssig=KpcdjFjrhW"];
NSURL *theMovieURL = [NSURL URLWithString:@"http://devimages.apple.com/iphone/samples/bipbop/gear1/prog_index.m3u8"];
self.player = [[IJKFFMoviePlayerController alloc] initWithContentURL:theMovieURL];
self.player = [[IJKFFMoviePlayerController alloc] initWithContentURL:theMovieURL withOptions:nil];
self.player.view.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
self.player.view.frame = self.view.bounds;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册