evdberg

When I add a subtitle to the stream, this subtitle is displayed by default. How can I disable it by default In the playlist I do not see any option to do this.


Re: HD DVD Interactivity Authoring How to disable subtitle by default?

Gunnar Adler

Add a script file to your application and put this line in it:
Player.subtitle.visible = false;

Remember that script files have to be encoded Unicode Big Endian. If you use Notepad choose "Save as" and change the encoding option accordingly.




Re: HD DVD Interactivity Authoring How to disable subtitle by default?

evdberg

Do I also need a manifest file, or just the script file
I assume I have to add a reference to this script file in the Playlist




Re: HD DVD Interactivity Authoring How to disable subtitle by default?

Gunnar Adler

Yes. You'll need a manifest file:

Code Snippet

< xml version="1.0" encoding="UTF-8" >
<Application xmlns="http://www.dvdforum.org/2005/HDDVDVideo/Manifest">
<Region x="0" y="0" width="1920" height="1080"/>
<Script src="file:///dvddisc/ADV_OBJ/script.js"/>
<Resource src="file:///dvddisc/ADV_OBJ/script.js"/>
</Application>


and in the playlist file you need to add an application segment to your title:

Code Snippet

<ApplicationSegment titleTimeBegin="00:00:00:00" titleTimeEnd="01:00:00:00"

src="file:///dvddisc/ADV_OBJ/manifest.xmf" sync="hard" zOrder="0" autorun="true">
<ApplicationResource src="file:///dvddisc/ADV_OBJ/script.js"

size="99999" priority="1" multiplexed="false"/>
</ApplicationSegment>






Re: HD DVD Interactivity Authoring How to disable subtitle by default?

evdberg

Shouldn't there also be an ApplicationResource for manifest.xmf
Thanks for your help!




Re: HD DVD Interactivity Authoring How to disable subtitle by default?

Amy Dullard - MSFT

No, you do not need an ApplicationResource in the manifest - just Resource

Alternatively, if you don't want to add and application to your project and you would like the subtitles off at first, you can add a blank subtitle as your first stream. The only issue here is that when using the remote control to turn subtitles on, they will need to just select a new subtitle stream rather than turning them on/off






Re: HD DVD Interactivity Authoring How to disable subtitle by default?

evdberg

@Amy,

That is not what I meant. Let me rephrase it: Do I also need an ApplicationResource entry for the manifest.xmf file in the ApplicationSegment section of the playlist




Re: HD DVD Interactivity Authoring How to disable subtitle by default?

Amy Dullard - MSFT

Oh, sorry Smile

Yes, you do need to reference both the manifest and script file as ApplicationResource in the playlist