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
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.
该应用程序可在应用程序商店中获得,但您需要订阅以测试此应用程序。无论如何,为了恢复它,我们可以在缩小模式下看到视频(电视流视频),如果我们点击屏幕,它就会切换到全屏模式。
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.
所以我的问题,我想做的是可能的(橙色电视制作它),但我想知道难以做到。看来我必须制作视频播放器。如果需要一大堆时间,我认为我会使用iPhone的Media Player Framework甚至不是我的最佳解决方案。
Feel free to ask me more details ;)
随意问我更多细节;)
Thank you for your answers.
谢谢您的回答。
2 个解决方案
#1
Looking at the MPMoviePlayerController class dump here, you can see these public members:
在这里查看MPMoviePlayerController类转储,您可以看到这些公共成员:
-(BOOL) isFullscreen;
-(void) setFullscreen:(BOOL)fp8;
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.
因此,在窗口模式下显示电影的机会微乎其微。但是,这些成员并非正式提供,可能会有意外行为。这只是一个暗示,我自己没有这样做。请注意,使用未记录的API可能会使Apple从AppStore拒绝您的应用程序。
#2
It is not possible to use the built in media framework to display windowed video. You would have to port another codec and streaming library to iPhone to achieve this.
无法使用内置媒体框架来显示窗口视频。你必须将另一个编解码器和流媒体库移植到iPhone才能实现这一目标。
#1
Looking at the MPMoviePlayerController class dump here, you can see these public members:
在这里查看MPMoviePlayerController类转储,您可以看到这些公共成员:
-(BOOL) isFullscreen;
-(void) setFullscreen:(BOOL)fp8;
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.
因此,在窗口模式下显示电影的机会微乎其微。但是,这些成员并非正式提供,可能会有意外行为。这只是一个暗示,我自己没有这样做。请注意,使用未记录的API可能会使Apple从AppStore拒绝您的应用程序。
#2
It is not possible to use the built in media framework to display windowed video. You would have to port another codec and streaming library to iPhone to achieve this.
无法使用内置媒体框架来显示窗口视频。你必须将另一个编解码器和流媒体库移植到iPhone才能实现这一目标。