iOS YouTube和类似Safari的电影播放器(iOS YouTube and Safari

编程入门 行业动态 更新时间:2024-10-28 13:24:44
iOS YouTube和类似Safari的电影播放器(iOS YouTube and Safari-like movie player)

这可能是一个愚蠢的帖子,但我现在用Google搜索了大约一个小时,在任何地方找不到任何关于它...我想知道我怎么能有一个类似于呈现的小电影“方形”在Safari中播放Quicktime电影或YouTube电影。

我在说那个:)。 这是Apple私有API还是我们可以使用API​​?

谢谢!

This is probably a dumb post but I've Googled it for about an hour now and can't find anything about it anywhere... I'd like to know how I can have a little movie "square" similar to the ones presented in Safari to play Quicktime Movies or YouTube movies.

I'm talking about that :). Is that an Apple private API or can we use the API?

Thanks!

最满意答案

这可能被认为有点涉及,但完美地创建了您描述的场景:

- 在屏幕上创建所需大小的UIWebview。

- 禁用缩放和滚动。

- 加载自定义HTML,显示引用项目包(或视频所在的任何位置)的嵌入式视频。

UIWebview会自动将嵌入的视频解释为“电影广场”,并提供与任何人期望的完全相同的功能。

如果你理解我的描述,请告诉我。

This might be considered a bit involved, but perfectly creates the scenario you are describing:

-Create a UIWebview in the size you desire on screen.

-Disable zooming and scrolling.

-Load custom HTML presenting an embedded video referencing your project bundle (or wherever your video is).

The UIWebview will automatically interpret the embedded video as the "movie square" and will provide exactly the same functionality as anyone would expect.

Please let me know if you understood what I described.

更多推荐

本文发布于:2023-07-30 08:23:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336680.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:播放器   类似   电影   iOS   YouTube

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!