不以全屏模式播放视频 [英] Play video not in full screen mode

查看:119
本文介绍了不以全屏模式播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,请原谅我的英语:)

First, excuse my english :)

我在苹果开发者网站上看到,框架提供的视频播放仅支持全屏模式。

I've read on apple developer website that video playback provides by the framework supports only full screen mode.

我需要开发一个可以在缩小屏幕模式下播放视频的应用程序。我看到橙色电视制作的东西看起来像我需要做的。

I will need to develop an application where video can be played in reduce screen mode. I've see that Orange TV make something which looks like what i need to do.

http://img218.imageshack.us/img218/1228/tvplayerorange.jpg
http://img218.imageshack.us/img218/1228/tvplayerorange.jpg http://img218.imageshack.us/img218/1228/tvplayerorange .jpg

该应用程序在应用程序商店中可用,但您需要订阅以测试此应用程序。无论如何,为了恢复它,我们可以在缩小模式下看到视频(电视流视频),如果我们点击屏幕,它就会切换到全屏模式。

The application is available on app store but you need to have a subscription to test this application. Whatever, to resume it, we can see video (tv stream video) in a reduce mode and if we click on the screen it switch to a full screen mode.

所以我的问题,我想做的是可能的(橙色电视制作它)但我想知道难以实现它。看来我必须制作视频播放器。如果花了很多时间,我认为我会使用iPhone的Media Player Framework,即使对我来说也不是最佳解决方案。

So my question, what i want to do is possible (Orange TV made it) but i wonder the difficulty to make it. It seems that I have to make a video player. If it take a bunch of time, I tkink I will use Media Player Framework of iPhone even isn't the optimal solution for me.

随时问我更多细节;)

感谢您的回答。

推荐答案

看着MPMoviePlayerController类转储此处,您可以看到这些公共成员:

Looking at the MPMoviePlayerController class dump here, you can see these public members:

-(BOOL) isFullscreen;  
-(void) setFullscreen:(BOOL)fp8;  

所以很少有机会以窗口模式显示电影。但是,这些成员并非正式提供,可能会有意外行为。这只是一个暗示,我自己没有这样做。请注意,使用未记录的API可能会使Apple从AppStore拒绝您的应用程序。

So there is a tiny chance to show a movie in windowed mode. However, these members are not officialy available and may have unexpected behaviour. This is just a hint, I haven't done it myself. Beware that using undocumented APIs may make Apple reject your application from the AppStore.

这篇关于不以全屏模式播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆