Skip to main content

can´t play HTTP video in blu-ray application

1 reply [Last post]
mochilete
Offline
Joined: 2011-10-18
Points: 0

Hi!!

We are MHP and blu-ray application developers and we have a problem when we trying to play an HTTP video. In the MHP application this works correctly. We create a DataSource with a MediaLocator and create a new video player using this DataSource.

ááml=new MediaLocator(path);
ds = Manager.createDataSource(ml);
p1 = Manager.createPlayer(ds);

But in Blu-ray, we create a BDLocator with the path of video and then do the same as in MHP, create a MediaLocator and VideoPlayer but doesn`t work correctly.

BDLocator loc = new BDLocator(path);
MediaLocator ml = new MediaLocator(loc);
mainPlayer á= Manager.createPlayer(ml);

and the exception that it throws is this:

org.davic.net.InvalidLocatorException: Locator<http://192.168.1.11/videos/MotoGP-HD.mp4>

at org.bluray.net.BDLocator.parseLocator(Unknown Source)
at org.bluray.net.BDLocator.<init>(Unknown Source)
at videos.video.VideoPlayer.runVideo(Unknown Source)
at videos.video.VideoPlayer.playVideo(Unknown Source)
at com.oditofi.motor.views.LoadingView.setComponents(Unknown Source)
at com.oditofi.motor.views.LoadingView.show(Unknown Source)
at code4tv.mhp112.basexlet.BaseView.doSetShown(Unknown Source)
at code4tv.mhp112.basexlet.BaseController.setCurrentView(Unknown Source)
at com.oditofi.motor.MyController.setLoadingView(Unknown Source)
at code4tv.mhp112.basexlet.BaseController.handleState(Unknown Source)
at code4tv.mhp112.basexlet.BaseController.componentShown(Unknown Source)
at code4tv.mhp112.basexlet.BaseXletAdv.componentShown(Unknown Source)
at com.oditofi.motor.Startitup.componentShown(Unknown Source)
áat code4tv.mhp112.basexlet.BaseXletAdv.componentShown(Unknown Source)
at code4tv.mhp112.basexlet.HSceneVisibility.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)

the path begins whit "http" but it doesn't find a HTTP DataSource

We are using ciberlink PowerDVD and Samsung BD-6900 and the application doesn`t work in either of them.

What is the problem? Doesn`t Blu-ray implement a Http Datasource? or Are we doing something wrong in the procedure?

Thanks very much

Regards

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joe Rice Guest
Offline
Joined: 2011-11-18
Points: 0

Hello -

You probably determined this by now, but BD-J has limited media playback support, and can only play back video that corresponds to the coding requirements set forth in the BD-ROM 3-1 spec (essentially MPEG-2, AVC, or VC-1 encapsulated in an MPEG-2 transport stream along with various other audio, secondary video, and graphics elementary streams). No http streaming is supported, and it's more limited in flexibility than MHP. (For playing video from the network, a sort of pseudo-streaming is possible using progressive PlayLists, but the media format is still MPEG-2 TS, and must be pre-separated into individual files which are downloaded individually prior to playback)

Joe

On Oct 20, 2011, at 5:45 AM, forums@java.net wrote:

> Hi!!
> We are MHP and blu-ray application developers and we have a problem when we
> trying to play an HTTP video. In the MHP application this works correctly. We
> create a DataSource with a MediaLocator and create a new video player using
> this DataSource.
> ááml=new MediaLocator(path);
> ds = Manager.createDataSource(ml);
> p1 = Manager.createPlayer(ds);
> But in Blu-ray, we create a BDLocator with the path of video and then do the
> same as in MHP, create a MediaLocator and VideoPlayer but doesn`t work
> correctly.
> BDLocator loc = new BDLocator(path);
> MediaLocator ml = new MediaLocator(loc);
> mainPlayer á= Manager.createPlayer(ml);
> and the exception that it throws is this:
> org.davic.net.InvalidLocatorException:
> Locator
> at org.bluray.net.BDLocator.parseLocator(Unknown Source)
> at org.bluray.net.BDLocator.(Unknown Source)
> at videos.video.VideoPlayer.runVideo(Unknown Source)
> at videos.video.VideoPlayer.playVideo(Unknown Source)
> at com.oditofi.motor.views.LoadingView.setComponents(Unknown Source)
> at com.oditofi.motor.views.LoadingView.show(Unknown Source)
> at code4tv.mhp112.basexlet.BaseView.doSetShown(Unknown Source)
> at code4tv.mhp112.basexlet.BaseController.setCurrentView(Unknown Source)
> at com.oditofi.motor.MyController.setLoadingView(Unknown Source)
> at code4tv.mhp112.basexlet.BaseController.handleState(Unknown Source)
> at code4tv.mhp112.basexlet.BaseController.componentShown(Unknown Source)
> at code4tv.mhp112.basexlet.BaseXletAdv.componentShown(Unknown Source)
> at com.oditofi.motor.Startitup.componentShown(Unknown Source)
> áat code4tv.mhp112.basexlet.BaseXletAdv.componentShown(Unknown Source)
> at code4tv.mhp112.basexlet.HSceneVisibility.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> at java.lang.Thread.startup(Unknown Source)
> the path begins whit "http" but it doesn't find a HTTP DataSource
> We are using ciberlink PowerDVD and Samsung BD-6900 and the application
> doesn`t work in either of them.
> What is the problem? Doesn`t Blu-ray implement a Http Datasource? or Are we
> doing something wrong in the procedure?
> Thanks very much
> Regards
>
>