|
//
// ALMoviePlayerController.h
// ALMoviePlayerController
//
// Created by Anthony Lobianco on 10/8/13.
// Copyright (c) 2013 Anthony Lobianco. All rights reserved.
//
#import <MediaPlayer/MPMoviePlayerController.h>
#import "ALMoviePlayerControls.h"
static NSString * const ALMoviePlayerContentURLDidChangeNotification = @"ALMoviePlayerContentURLDidChangeNotification";
@protocol ALMoviePlayerControllerDelegate <NSObject>
@optional
- (void)movieTimedOut;
@required
- (void)moviePlayerWillMoveFromWindow;
- (void)enterFullScreen:(BOOL)isEnter;
- (void)closeHandler;
@end
@interface ALMoviePlayerController : MPMoviePlayerController
- (void)setFrame:(CGRect)frame;
- (id)initWithFrame:(CGRect)frame;
- (BOOL)videoIsLiving; //视频正在直播
@property (nonatomic, weak) id<ALMoviePlayerControllerDelegate> delegate;
@property (nonatomic, strong) ALMoviePlayerControls *controls;
@property (nonatomic, readwrite) BOOL movieFullscreen; //used to manipulate default fullscreen property
@end
|