Skip to main content

a few questions about audio and subtitles

3 replies [Last post]
spawnvatz
Offline
Joined: 2009-06-17
Points: 0

1. How do you detect that an audio stream was changed from the remote.
For subtitles I can use SubtitleListener and register it with my subtitleControl, but I cant seem to find one for Audio.

2. I see that for subtitles there is a setSubtitling method for turning subtitles on/off. But I don't see a getsubtitleing method that will answer my question, are subtitle on or off? If I use the getStreamnumber method, if subs are on I get the actual stream number, if subs are off I get a '1'. Thus I cant decide if subs are on or off? I have actually created a workaround using PSR's but there has to be a better way.

Any thoughts?

Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
spawnvatz
Offline
Joined: 2009-06-17
Points: 0

Thanks I'll check it out.

Gunnar Adler

1. implement javax.tv.media.MediaSelectListener to receive a MediaSelectEvent

2. org.bluray.media.SubtitlingControl also has a method isSubtitlingOn()

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net

Joe Rice

Note that MediaSelectEvents on audio stream changes aren't guaranteed
unless the bluray.event.extension is set to "YES". (So some profile 1,
version 1.0 players may not generate them) (See BD-ROM 3-2 11.4.2.5.4)

Cheers,
Joe

On Jun 18, 2009, at 2:22 AM, Gunnar Adler wrote:

> 1. implement javax.tv.media.MediaSelectListener to receive a
> MediaSelectEvent
>
> 2. org.bluray.media.SubtitlingControl also has a method
> isSubtitlingOn()
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
> For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: bd-j-dev-unsubscribe@hdcookbook.dev.java.net
For additional commands, e-mail: bd-j-dev-help@hdcookbook.dev.java.net