[英]Total time and time elapsed in JWPlayer - objective C
I need 我需要
total duration of the video 视频总时长
number of seconds played till now 到现在为止播放的秒数
I think I can get the second part using jwplayer - how do I get video duration before playback? 我想我可以使用jwplayer获得第二部分-如何获得播放前的视频时长?
Can someone please help me with the first part? 有人可以在第一部分帮助我吗?
You can get the these information from JWPlayer API reference itself. 您可以从JWPlayer API参考本身获取这些信息。
Usage: 用法:
double duration = [jwPlayer duration];
NSNumber *time = [jwPlayer playbackPosition];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.