AVPlayer

下面是来客网 jb51.cc 通过网络收集整理的代码片段。

来客网小编现在分享给大家,也给大家做个参考。

//
//  EasyAVPlayer.h
//  EasyAVPlayer
//
//  Created by Tommy on 15/8/25.
//  Copyright (c) 2015年 Tommy. All rights reserved.
//
//                          _oo8oo_
//                         o8888888o
//                         88" . "88
//                         (| -_- |)
//                         0  =  /0
//                       ___/'==='___
//                     .' |     |// '.
//                    / |||  :  |||// 
//                   / _||||| -:- |||||_ 
//                  |   |   -  /// |   |
//                  | _|  ''---/''  |_/ |
//                    .-__  '-'  __/-.  /
//                ___'. .'  /--.--  '. .'___
//             ."" '<  '.____<|>_/___.'  >' "".
//            | | :  `- `.:` _ /`:.`/ -`  : | |
//               `-.   _ __ /__ _/   .-` /  /
//        =====`-.____`.___ _____/ ___.`____.-`=====
//                          `=---=`
//
//                  佛祖保佑            永无bug
//                          ___  _____         ___
//          /  /   |  | |       |     /   |   |
//    /   /  /--  |  | |  _    |    /__  |   |
//   /   /  /     |  | |___|   |   /     |___|
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface EasyAVPlayer : UIView

@property(strong,nonatomic)UIView *container;//播放器容器
@property(nonatomic,assign)BOOL isStart;//默认一开始是不播放视频的
@property(nonatomic,strong)AVPlayer *player;//播放器对象
@property(strong,nonatomic)UIButton *playOrPause;//播放/暂停按钮
@property(nonatomic,strong)AVPlayerLayer *playerLayer;
@property (nonatomic,strong)NSTimer *timer;
@property (nonatomic,strong)NSString *movieUrl;//视频播放的链接


/*
 *Description:静态创建一个视频播放器对象
 *
 *@param:
 *
 *@return:
 *
 */
+(id)easyAVPlayerWithUrl:(NSString *)urlstr;

@end

以上是来客网(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。

以上是来客网为你收集整理的AVPlayer全部内容,希望文章能够帮你解决AVPlayer所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。