热更新demo

TPMovieContent.h 1.4KB

    // // TPMovieContent.h // ThePaperBase // // Created by zhousan on 16/1/5. // Copyright © 2016年 scar1900. All rights reserved. // #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> @protocol TPMovieContentDelegate <NSObject> @optional - (void)movieTimedOut; - (void)captureVideoPhoto; @required - (void)moviePlayerWillMoveFromWindow; - (void)enterFullScreen:(BOOL)isEnter; - (void)closeHandler; - (void)turnToright; - (void)playFinish; @end @interface TPMovieContent : UIViewController - (id)initWithFrame:(CGRect)frame contentUrlDic:(NSMutableDictionary *)contentUrlDic; - (BOOL)videoIsLiving; //视频正在直播 @property (nonatomic, weak) id<TPMovieContentDelegate> delegate; @property (nonatomic, readwrite) BOOL movieFullscreen; //used to manipulate default fullscreen property @property (nonatomic, strong) UIView *movieBackgroundView; @property (nonatomic, strong) NSURL *contentURL; @property (nonatomic, strong) AVPlayer *player; @property (nonatomic, strong) AVPlayerItem *playerItem; @property (nonatomic, assign) CGRect originRect; @property (nonatomic, assign) BOOL isEmbedded; @property(nonatomic, strong) NSMutableDictionary *contentUrlDic; - (void)relayoutSubViewForScreen:(CGRect)rect fullScreen:(BOOL)fullScreen; - (void)selfDealloc; - (void)showEmbeddedVideo; - (void)dismissEmbeddedVideo; @end