Skip to main content

changing playlist on samsung BD-P1500

5 replies [Last post]
elbob
Offline
Joined: 2008-10-01
Points: 0

Hello,

I'm having a Samsung problem which is really urgent.
Would be great to get some ideas or even solutions :)

------------

I'm using code from the HD Cookbook to select a new playlist. I works great on Sony 350 and PS3 and WinDVD.
But the Samsung crashes at the player.start() command.

Is there a different way to do it?
Also tried to remove alle the listeners first.
didn't help. Everything works fine up to the start command.

In BD-J I can access more than one Playlist even from a movie title - right?
I also tried setting it interactive, but didn't change anything.
I have the Access all Playlists Button on.

No Exceptions or errors - the player just freezes.

In HD Cookbook there is a comment I should wait until the player has stopped after calling player.stop() - how could I wait there? I tried Thread.sleep which didn't help.

Thanks a lot for any advice!!

------------------

public void selectPlaylist(BDLocator bdLocator) {
if(player != null && playListChangeControl != null) {
player.stop();
try {
playListChangeControl.selectPlayList(bdLocator);
} catch (InvalidPlayListException e) {
System.out.println(" + + + + + + + + + + + + + + + invalid playlist exc 01");
} catch (ClockStartedError e) {
System.out.println(" + + + + + + + + + + + + + + + clock started exc 01");
} catch (javax.tv.locator.InvalidLocatorException e) {
System.out.println(" + + + + + + + + + + + + + + + invalid locator exception 01");
}
}
else {
try {
MediaLocator mediaLocator = new MediaLocator(bdLocator);
player = Manager.createPlayer(mediaLocator);
player.addControllerListener(this);
this.getPlayerControls();
} catch (NoPlayerException e) {
System.out.println(" + + + + + + + + + + + + + + + no player exception 01");
} catch (InvalidPlayListException e) {
System.out.println(" + + + + + + + + + + + + + + + invalid player exception 01");
} catch (IOException e) {
System.out.println(" + + + + + + + + + + + + + + + ioexception 01");
}
}
player.prefetch();
player.start();

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jeffkinzer
Offline
Joined: 2007-06-05
Points: 0

My guess is that you may need to wait for the PrefetchCompleteEvent to start the Player after your call to player.prefetch() since the call is asynchronous. The implementation may be broken on the BD-P1500, since the JavaDocs say:

As a convenience, Player provides a start method that can be invoked before a Player is Prefetched. This method attempts to transition the Player to the Started state from whatever state it's currently in. For example, if the Player is Unrealized, start implicitly calls realize, prefetch, and Clock.syncStart. The appropriate TransitionEvents are posted as the Player moves through each state on its way to Started.

Message was edited by: jeffkinzer

elbob
Offline
Joined: 2008-10-01
Points: 0

Thanks a lot for your effort!
Unfortunately it didn't work.

I tried to call only player.prefetch() and do the start call after I get the Event.
Is that what you meant?

public void controllerUpdate(ControllerEvent event) {
if(event instanceof PrefetchCompleteEvent) {
System.out.println("prefetched - now starting");
player.start();
}
}

The result ist the same on Samsung.
WinDVD works fine as usual...

Any more thoughts?

desperately yours elBoB ;)

sniff3r
Offline
Joined: 2008-08-07
Points: 0

elbob,
try to call player.syncStart() instead of player.start() when you receive PrefetchCompleteEvent.

- sniff3r

elbob
Offline
Joined: 2008-10-01
Points: 0

didn't change anything...
I could put something on screen after the prefetchCompleteEvent so that works fine.
but player.start() crashes and so does player.syncStart(player.getSyncTime());

To me it seems my Playlist should be accessible, otherwise I should get an exception earlyer right?

I'm using a Movie Title but changing to Interactive Titel didn't help either.

Has anone done Playlist changes?
This should be really easy - I thought...

Thanks again

elbob
Offline
Joined: 2008-10-01
Points: 0

Thanks for the support.
As usual it was something completely different.
The clip was encoded in a way the Samsung did not like.
The code works fine!
elBoB