pili-engineering / plplayerkit Goto Github PK
View Code? Open in Web Editor NEWPLPlayerKit 是七牛推出的一款免费的适用于 iOS 平台的播放器 SDK,采用全自研的跨平台播放内核,拥有丰富的功能和优异的性能,可高度定制化和二次开发。
Home Page: https://developer.qiniu.com/pili/sdk/1211/ios-playback-end-the-sdk
PLPlayerKit 是七牛推出的一款免费的适用于 iOS 平台的播放器 SDK,采用全自研的跨平台播放内核,拥有丰富的功能和优异的性能,可高度定制化和二次开发。
Home Page: https://developer.qiniu.com/pili/sdk/1211/ios-playback-end-the-sdk
这里应该提供两种可选方案:
1、进入后台后都停止;
2、进入后台后,只播放声音,但画面停止,回到前台后继续播放画面;
测试地址:http://nasatv-lh.akamaihd.net/i/NASA_102@319272/master.m3u8
Application received signal SIGSEGV
Application received signal SIGPIPE
当hls不稳定时会引起崩溃
代理不回调的。经测试,怎么都不回调。什么情况下才会回调呢?
PLPlayerKit可以取消缓存吗,比如:暂停,然后继续播放,会从暂停的地方继续播放.现在应该是这样的吧
在Github下载PLPlayerKit demo,然后设置自己摄像头的rtmp地址,播放就崩溃;
收到反馈:”
我觉得的正常流程可能是这样的:
用户跳到某个时间点,播放器画面停止,状态为“caching”,等cache的差不多了,在开始播放画面
现在的流程是:
用户跳到某个时间点,播放器画面继续播放原来时间点的内容,状态“playing”->”caching”->”playing”->”caching”->”playing”(这个过程很快), 然后过了2~3秒画面跳到指定时间点播放
“
接收语音时断时续,经常安静几秒之后又有声音,很不稳定。
看了一下日志,有很多的 Error: AudioQueueEnqueueBuffer failed (-66686)
但安卓没有问题。
设备A进行直播推流,设备B观看直播,这时直播设备A停止推流(直播流未删除),设备B大约等了1分钟40秒player才收到回调(PLPlayerStateEnded)。
希望当设备A停止推流(直播流未删除),设备B可以马上收到回调。谢谢。
您好,plplayerKit已升级至1.2.20。build之后出现好多的warning:warning: Could not resolve external type c:objc(cs)NSArray。请问如何解决?
URL 现在是在建立 player 的时候指定的,那若是中途想要切换 URL (例如从普通画质切换到高清),该怎么做呢?
我现在的做法是把 player 设为 nil,然后再重新生成一个新的 player,有没有更好的作法呢?
这个问题需要复查一下,看看是否是内部库的属性设置错误
如题,希望咱们的纯音频播放器可以支持后台播放流。需求迫切希望能够尽快提供,谢谢
1.推送端停止后,没有回调产生
2.推送端再次推流时,产生错误回调。
如果能监听流的状态,比如有推流时,就自动收听最好了
载了新的demo运行后,也发现几个问题:
1.不知道如何将直播画面,按照正常的比例显示;我这边已经设置了playerView的坐标以及playerView.contentMode 模式,都不能按照正常比例显示,
希望能demo中告知如何设置画面正常比例显示;
2.在播放和停止播放切换时,还是会有崩溃的问题;
When pausing a live stream and then resume, the stream delay grows. Ability to skip frames and sync to real time as close as possible would be nice.
RT,1.1.2版本还没有回调,没办法获取到视频的播放状态
优化内容
希望提供接口,可以手动设置播放器填充模式,等比缩放,压缩,拉伸
It seems that it cannot play any rtmp video very well, I ran your example project with XCode 6.4, iOS 8.1.3 The video won't play and timeout, but if it can play, the audio enqueue error therefore no sounds coming out. Here's the log of XCode:
2015-11-16 13:58:50.105 PLPlayerKit[26455:5232814] PLPlayerStatusPreparing
2015-11-16 13:58:50.190 PLPlayerKit[26455:5232814] Success setup GL programm
2015-11-16 13:58:50.191 PLPlayerKit[26455:5232814] Success setup GL
2015-11-16 13:58:50.191 PLPlayerKit[26455:5232831] PLPlayerStatusReady
2015-11-16 13:58:50.191 PLPlayerKit[26455:5232814] PLPlayerStatusPlaying
2015-11-16 13:58:50.193 PLPlayerKit[26455:5232814] Success setup GL framebuffer 320:568
and it stops here, should I upgrade my os to iOS9?
如题, 求教
现在默认似乎只能是宽屏幕的播放方式,也就是上下会有两条黑色
我设置宽高的代码如下:
self.videoPlayerController.playerView.frame = CGRectMake(0, -40, screen.applicationFrame.size.width, screen.applicationFrame.size.height);
self.videoPlayerController.playerView.center = CGPointMake(CGRectGetMidX(screen.bounds), CGRectGetMidY(screen.bounds));
盼答复,感谢
error:linker command failed with exit code 1 (use -v to see invocation)
比如,由于网络原因如果拉取失败,可以再次拉取
视频流打不开会弹出alertview,这个错误处理能不能交给app处理
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
这句话好像不行啊
2015-05-18 16:55:18.805 AGVideo[4425:1760805] -[KxMovieController setDelegate:]: unrecognized selector sent to instance 0x1741699c0
2015-05-18 16:55:18.807 AGVideo[4425:1760805] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[KxMovieController setDelegate:]: unrecognized selector sent to instance 0x1741699c0'
*** First throw call stack:
(0x184cfc2d8 0x1964d00e4 0x184d033a4 0x184d00154 0x184c02ccc 0x1002c67c0 0x1002c6688 0x100113bd0 0x101e2cfd4 0x101e2cf94 0x101e3ab54 0x101e3c248 0x196d0122c 0x196d00ef0)
libc++abi.dylib: terminating with uncaught exception of type NSException
现在用到工程里,会增加整个APP约8mb左右的大小~
here is log:
-[KxVideoFrameRGB luma]: unrecognized selector sent to instance 0x1702852d0
libc++abi.dylib: terminate_handler unexpectedly threw an exception
should I release it after stop and create a new PLVideoPlayerController when I need to play again?
正常播放RTMP视频流的时候,有时候音频会播放不出来;可能引起的原因有弹出键盘、旋转横竖屏、进入后台等等。
播放器能否支持断流恢复后重新播放?
0 AGVideo av_strstart
1 AGVideo rtp_probe
2 AGVideo av_probe_input_format3
3 AGVideo av_probe_input_format2
4 AGVideo avformat_open_input
5 AGVideo -[KxMovieDecoder openInput:] [KxMovieDecoder.m line 782]
6 AGVideo -[KxMovieDecoder openFile:error:] [KxMovieDecoder.m line 735]
7 CoreFoundation
8 CoreFoundation
9 Foundation
10 UIKit
11 libdispatch.dylib
12 libdispatch.dylib
13 libdispatch.dylib
14 libdispatch.dylib
15 CoreFoundation
16 CoreFoundation
17 CoreFoundation
18 GraphicsServices
19 UIKit
20 AGVideo main [main.m line 14]
21 libdyld.dylib
carrierView
,我用 auto layout 配置它playerView
的 auto resizing 设为 UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight
,并且 playerView.frame = carrierView.bounds
[carrierView addSubview:playerView]
把它加到 carrierView请问有可能是什么原因
1.运行demo,视频播放不流畅
2.运行demo,播放过程中出现log:Error: AudioQueueEnqueueBuffer failed (-66686)
3.运行demo,停止客户端推流,过一段时间播放器端log出现:ERROR: RTMP_ReadPacket, failed to read RTMP packet header
4.运行demo,偶尔会出现Received memory warning.
上述Error均未在代理PLPlayerDelegate中捕获。
1.ContentMode设置无效
使用播放器配置(见下)进行设置,无效
parameters[PLVideoParameterFrameViewContentMode] = @(UIViewContentModeScaleAspectFill);
直接设置播放视图的ContentMode(见下),无效too
[self.videoPlayerController.playerView setContentMode:UIViewContentModeScaleAspectFill];
播放时始终保持UIViewContentModeScaleAspectFit
模式进行(见下图),左边两边的黑边为self.videoPlayerController.playerView产生,非视图背景色(该视图背景色为灰色)
2.测试视频,格式mp4,本地显示视频时长为13秒
调试打印的视频长度为12.56秒,但最终播放到11.53秒停止,播放进度为91%(见下图打印信息)。后经测试所有视频均播放到90+%就停止播放。上两图分别为模拟器使用PLPlayerKit和使用osx系统预览播放到最后停止的画面。
3.无论是直播还是非直播都不执行播放结束。个人猜测,非直播视频无法通知结束是由问题2所引起的,播放进度无法达到100%,故PLPlayerKit不通知视频播放结束。另外直播也不会通知播放结束,具体直播是怎么判断结束的我也不懂,但本人非常希望有此功能。
调试环境:osx 10.10.4,Xcode 6.4,模拟器iOS 7.1 4S
祝好。
如题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.