这可能是一个愚蠢的帖子,但我现在用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.
更多推荐
发布评论