[翻译] DraggableYoutubeFloatingVideo

简介:

DraggableYoutubeFloatingVideo

 

 

DraggableYoutubeFloatingVideo allows you to play videos on a floating mini window at the bottom of your screen from sites like YouTube, Vimeo & Facebook or custom video url , yes you have to specify URL for that.

DraggableYoutubeFloatingVideo允许你在一个浮窗上面播放视频,就像Youtube、Vimeo、或者是Facebook的自定义视频窗口一样。

 

Usage

Initialize from a storyboard id programmatically. Set the video URL , then you're pretty much good to go! Check out the demo app to see how it can be used.

从storyboard初始化,设置一个视频的链接地址,然后你就可以使用了,你可以在demo演示中查看用法。

 

How it works

This demo app will animate the view just like Youtube mobile app, while tapping on video a UIView pops up from right corner of the screen and the view can be dragged to right corner through Pan Gesture and more features are there as Youtube iOS app

这个demo中的动画效果就像Youtube的app一样,可以通过手的滑动来改变视频播放界面的大小。

目录
相关文章
|
存储 自然语言处理 前端开发
从零写一个Recoil(翻译)
Rewriting Recoil from scratchrecoil是facebook编写的一个库,它之所以诞生是因为人体工程学、context的性能问题和useState。这是一个非常聪明的库,几乎每个人都会找到它的用途——如果你想了解更多,请查看这段解释视频。刚开始我被图论和recoil惊到了,但渐渐的理解后,感觉也没那么特别了。也许我也可以实现一个类似的东西。我自己实现的版本和recoil
198 0
从零写一个Recoil(翻译)
|
iOS开发 Android开发 开发工具
|
缓存 API iOS开发
|
iOS开发 Perl
|
内存技术 Perl
|
存储 Swift iOS开发