Skip to main content

How do I start Secondary Audio in BDJ

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

I have the following and it does not work.

SecondaryAudioControl secondaryAudioControl; // class variable

one of my methods has
if (player != null) { // player is a JMF player
try {
secondaryAudioControl= (SecondaryAudioControl) player.getControl(SecondaryAudioControl.class.getName());
} catch (NoClassDefFoundError error) {
} catch (IllegalArgumentException exception) {
} catch(Throwable t) {
}
}
try {
secondaryAudioControl.selectStreamNumber(1); // Stream 1 exists
}
catch (StreamNotAvailableException e) {
}
catch (Throwable t) {
}

When I execute this, nothing happens.

Any thoughts? I see the HDMV side of it has a displayFlag for the Secondary Audio. Is there some flag in BDJ I need to set to true for the Secondary Audio to be heard?

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 Joe thats the flag I was looking for. It's weird but I guess it will do.

spawnvatz
Offline
Joined: 2009-06-17
Points: 0

The same content works with an HDMV title where I can set the Secondary Audio Flag to true and it plays the secondary audio. But other than the
secondaryAudioControl.selectStreamNumber(1)
in BDJ, I cant seem to find a flag that turns the secondary audio on or off.

Thanks,

Joe Rice

Just for kicks you could try SecondaryGainControl.setMute()

Cheers,
Joe

On Aug 11, 2009, at 1:08 PM, bd-j-dev@mobileandembedded.org wrote:

> The same content works with an HDMV title where I can set the
> Secondary Audio Flag to true and it plays the secondary audio. But
> other than the
> secondaryAudioControl.selectStreamNumber(1)
> in BDJ, I cant seem to find a flag that turns the secondary audio on
> or off.
>
>
> Thanks,
> [Message sent by forum member 'spawnvatz' (spawnvatz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=359964
>
> ---------------------------------------------------------------------
> 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

spawnvatz
Offline
Joined: 2009-06-17
Points: 0

Hi Joe,

Thanks for the quick reply.

I'm not familiar with -- comb_info_Secondary_video_Secondary_audio().

Is this a method in BDJ?

Thanks

Joe Rice

It's in the PlayList file, and would generally be configured in the
authoring tool for the PlayList containing the secondary audio/video
subpath.

Cheers,
Joe

On Aug 6, 2009, at 5:17 PM, bd-j-dev@mobileandembedded.org wrote:

> Hi Joe,
>
> Thanks for the quick reply.
>
> I'm not familiar with -- comb_info_Secondary_video_Secondary_audio().
>
> Is this a method in BDJ?
>
>
> Thanks
> [Message sent by forum member 'spawnvatz' (spawnvatz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=359326
>
> ---------------------------------------------------------------------
> 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

8track
Offline
Joined: 2009-09-04
Points: 0

I am using DoStudio and have secondary audio and video being encoded properly. When I select 'secondary video' using the menu in TotalMedia it plays.

However I can not seem to get it to play from BD-J (secondary audio or Pip video).

I also can not find the comb_info_Secondary_video_Secondary_audio() anywhere in the playlist file. This means I also do not know where to put it.

Can anyone shed some more light on this? Perhaps with an XML snippet?

Thanks!

Joe Rice

There are some restrictions around when secondary audio is available
when secondary video is also present. If they're to be used in unison,
the comb_info_Secondary_video_Secondary_audio() in the PlayList must
be set correctly. You might confirm that's been set properly.

Cheers,
Joe

On Aug 6, 2009, at 3:53 PM, bd-j-dev@mobileandembedded.org wrote:

> I have the following and it does not work.
>
> SecondaryAudioControl secondaryAudioControl; // class variable
>
> one of my methods has
> if (player != null) { // player is a JMF player
> try {
> secondaryAudioControl= (SecondaryAudioControl)
> player.getControl(SecondaryAudioControl.class.getName());
> } catch (NoClassDefFoundError error) {
> } catch (IllegalArgumentException exception) {
> } catch(Throwable t) {
> }
> }
> try {
> secondaryAudioControl.selectStreamNumber(1); // Stream 1 exists
> }
> catch (StreamNotAvailableException e) {
> }
> catch (Throwable t) {
> }
>
> When I execute this, nothing happens.
>
> Any thoughts? I see the HDMV side of it has a displayFlag for the
> Secondary Audio. Is there some flag in BDJ I need to set to true
> for the Secondary Audio to be heard?
>
> Thanks
> [Message sent by forum member 'spawnvatz' (spawnvatz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=359314
>
> ---------------------------------------------------------------------
> 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