fre*_*met 5 mpmediaquery ipad ios avplayer
In my app, I want to reproduce a view which looks exactly like the "Videos" native iPad app (it displays Movies and iTunes U videos located on the iPad).
I don't know how to access those elements on the iPad (Movies and iTunes U).
I've played with everything mentionned in the Apple documentation "IPod Library Access Programming Guide":
I thought I was close with MPMediaItem and MPMediaQuery, as two of the Flags seemed promising:
MPMediaTypeMovie = 1 << 8 MPMediaTypeVideoITunesU = 1 << 12
However, all the results I get only include songs.
Am I using the right classes to access those items? Considering the results I get, it seems like those classes can only access media items which are part of the iPod library, which I am not sure is the case for Movies and iTunes U videos.
我知道这是可能的,因为我看到了另一个访问它的应用程序(称为“VideoPix”)。它在 Popover 视图中显示“视频库”,所以起初我怀疑它使用的是 MPMediaPickerController,因为在 iPad 上,您只能在 Popover 中使用它,但是再次尝试时,我看到的只是歌曲, 没有电影或 iTunes U 项目:(
先感谢您!
弗雷德
归档时间: |
|
查看次数: |
905 次 |
最近记录: |