All Projects → shibiao → Sbplayer_ios

shibiao / Sbplayer_ios

基于AVPlayer封装的轻量级播放器,可播放本地及网络视频,易于定制

Projects that are alternatives of or similar to Sbplayer ios

Swift Radio Pro
Professional Radio Station App for iOS!
Stars: ✭ 2,644 (+1873.13%)
Mutual labels:  audio, avplayer
Aural Player
An audio player for macOS, inspired by Winamp for Windows.
Stars: ✭ 256 (+91.04%)
Mutual labels:  audio, avfoundation
AVPlayerItemHomeOutput
Coordinate the output of content associated with your HomeKit lightbulbs. #Ambilight
Stars: ✭ 38 (-71.64%)
Mutual labels:  avfoundation, avplayer
Avfoundationrecorder
Swift audio recorder using AVFoundation
Stars: ✭ 174 (+29.85%)
Mutual labels:  audio, avfoundation
Timelapsebuilder Swift
Build a movie from jpeg images in Swift using AVFoundation
Stars: ✭ 72 (-46.27%)
Mutual labels:  movie, avfoundation
Modernavplayer
ModernAVPlayer is a persistence AVPlayer wrapper
Stars: ✭ 179 (+33.58%)
Mutual labels:  audio, avplayer
iphonepip
PiP (Picture in Picture) prototype for iPhone
Stars: ✭ 15 (-88.81%)
Mutual labels:  avfoundation, avplayer
AutoVideoPlayer
Easily Play/Pause videos in any UIView subclass especially UITableViewCell subclass
Stars: ✭ 88 (-34.33%)
Mutual labels:  avfoundation, avplayer
Cabbage
A video composition framework build on top of AVFoundation. It's simple to use and easy to extend.
Stars: ✭ 1,030 (+668.66%)
Mutual labels:  audio, avfoundation
Audioplayer
AudioPlayer is syntax and feature sugar over AVPlayer. It plays your audio files (local & remote).
Stars: ✭ 614 (+358.21%)
Mutual labels:  audio, avplayer
Nextlevelsessionexporter
🔄 Export and transcode media in Swift
Stars: ✭ 170 (+26.87%)
Mutual labels:  audio, avfoundation
Abmediaview
Media view which subclasses UIImageView, and can display & load images, videos, GIFs, and audio and from the web, and has functionality to minimize from fullscreen, as well as show GIF previews for videos.
Stars: ✭ 79 (-41.04%)
Mutual labels:  audio, avplayer
Swiftaudio
Audio player for iOS
Stars: ✭ 160 (+19.4%)
Mutual labels:  audio, avplayer
Fradioplayer
A simple radio player framework for iOS, macOS, tvOS.
Stars: ✭ 183 (+36.57%)
Mutual labels:  audio, avplayer
Avdemo
Demo projects for iOS Audio & Video development.
Stars: ✭ 136 (+1.49%)
Mutual labels:  audio, avfoundation
Fwplayer
A video player SDK for iOS, it is based on AVPlayer. https://se.linkedin.com/in/foks-huiwang, https://fokswang.wixsite.com/home
Stars: ✭ 321 (+139.55%)
Mutual labels:  audio, avplayer
Soundable
Soundable allows you to play sounds, single and in sequence, in a very easy way
Stars: ✭ 78 (-41.79%)
Mutual labels:  audio, avfoundation
Arplayer
Playback videos using ARKit and AVFoundation.
Stars: ✭ 117 (-12.69%)
Mutual labels:  avplayer, avfoundation
Kinopoiskpy
Python API to kinopoisk.ru
Stars: ✭ 126 (-5.97%)
Mutual labels:  movie
Neural Style Audio Torch
Torch implementation for audio neural style.
Stars: ✭ 130 (-2.99%)
Mutual labels:  audio

SBPlayer_iOS

基于AVPlayer封装的轻量级播放器,可以播放本地网络视频,易于定制

SBPlayer结构简单,可以横屏竖屏,支持M3u8、mp4等格式视频本地播放或者网络播放,通过masonry约束,适配各种尺寸iPhone。

3


使用方法:

拖拽SBPlayer文件夹到项目中,并添加Masonry约束第三方库,然后导入SBPlayer.h即可
导入#import "SBPlayer",用xib更简单,使用如下:
//纯代码请用此种方法
    //http://ivi.bupt.edu.cn/hls/cctv1hd.m3u8 直播网址
    //初始化播放器
    self.player = [[SBPlayer alloc]initWithUrl:[NSURL URLWithString:@"http://download.3g.joy.cn/video/236/60236937/1451280942752_hd.mp4"]];
    //设置标题
    [self.player setTitle:@"这是一个标题"];
    //设置播放器背景颜色
    self.player.backgroundColor = [UIColor blackColor];
    //设置播放器填充模式 默认SBLayerVideoGravityResizeAspectFill,可以不添加此语句
    self.player.mode = SBLayerVideoGravityResizeAspectFill;
    //添加播放器到视图
    [self.view addSubview:self.player];
    //约束,也可以使用Frame
    [self.player mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.right.left.mas_equalTo(self.view);
        make.height.mas_equalTo(@250);
    }];
    
    /**
     使用xib请用第二种方法
     [self.player assetWithURL:[NSURL URLWithString:@"http://download.3g.joy.cn/video/236/60236937/1451280942752_hd.mp4"]];
     [self.player setTitle:@"这是一个标题"];
     */

SBPlayer macOS版 : http://www.jianshu.com/p/1ad52c702190

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].