渲染多种类型的媒体
我的 iPhone 应用程序的要求之一是将从服务器传递多种类型的数据:音频、视频、文本和图像动画。所有媒体将作为一个捆绑包组合在一起,并且根据捆绑包内容,应用程序需要呈现适当的媒体类型。
示例:如果bundle包含动画内容,它将渲染并播放动画;如果它包含视频,它将播放视频等。
是否有任何标准化协议或处理方法?
One of the requirements for my iPhone application is that it will be handed multiple types of data from a server: audio, video, text, and image animation. All of the media will come together as a bundle, and depending on the bundle contents, the application needs to render the appropriate media types.
Example: If the bundle contains animation content, it will render and play the animation; if it contains video, it will play the video, etc.
Is there any standardized protocol or way of handling this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你应该看看 UIWebView。
在
内<
/body>您应该创建一个 html 内容,其中包含您的图形和视频。但我不确定声音。您可能需要手动播放。也许您会想阅读 http://reecon.wordpress.com/2010/04/13/playing-short-sounds-in-objective-c-iphone-sdk/You should take a look at UIWebView.
Inside
<body> <
/body> tags you should create an html content, which will include your graphics and videos. But I'm not sure about sound. It is possible that you will have to play it manually. Maybe you will want to read http://reecon.wordpress.com/2010/04/13/playing-short-sounds-in-objective-c-iphone-sdk/