BlackBerry - Play mp4 video from remote server

有些话、适合烂在心里 提交于 2019-12-01 20:36:59

问题


I am using a BrowserSession to play audio and video files. The audio files play without problem, but when I try to play a video file, the browser displays garbage characters.

How do I play video files from a remote server, especially .mp4 files?

I'm using this code to play the media:

BrowserSession browserSession = Browser.getDefaultSession();
//url is the path to the media file from remote server  
browserSession.displayPage(url);  
browserSession.showBrowser();

Found the answer: https://github.com/mjrusso/videostreaming-blackberry

来源:https://stackoverflow.com/questions/4151386/blackberry-play-mp4-video-from-remote-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!