简体   繁体   English

像在“照片”应用中一样,将滚动播放控件添加到AVPlayer

[英]Add scroll playback controls to AVPlayer like in Photos app

I'm creating AVPlayer view to watch the stream from CCTV. 我正在创建AVPlayer视图以观看来自CCTV的流。 And I want to make playback controls in a video like in Photos app at iPhone(open Photos, play some video, at the bottom, it will be UIScrollView with some screenshots of your video) like at image below. 我想对视频进行播放控制,例如在iPhone的“照片”应用中(打开“照片”,播放一些视频,在底部,它将是UIScrollView,其中包含您的视频的某些屏幕截图),如下图所示。 May I ask you some help on how to create something like this? 请问您如何创建类似内容的帮助吗? And this is my first question here, so sorry if something wrong. 这是我在这里的第一个问题,对不起,如果有问题。 =) =)

ScrollView playback ScrollView播放

在此处输入图片说明

AVPlayer cannot do this for streaming. AVPlayer无法执行此操作以进行流式传输。 The suggestion made on snapshots would also not be close to your want of getting the same behaviour as on local preview of videos in the Photos App on iOS. 关于快照的建议也不会接近您想要与在iOS上的“照片”应用程序中对视频进行本地预览时相同的行为。

If you are looking for this kind of experience I would recommend heading over to movi.ai to get your hands on our cross platform solution with this ready out of the box. 如果您正在寻找这种体验,我建议您直接访问movi.ai ,立即使用我们的跨平台解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM