tisho

I'm trying to save streams settings (e.g. audio/subtitle track numbers) on titleEnd system event and what I've noticed that Tosh player trigger this event after loading the new title, so I couldn't use currentTitle to collect settings because it already point to the new one.
Can anybody give an idea where is the best place to save these



Re: HD DVD Interactivity Authoring Saving stream settings

Philipp Lamp

When I have to save things like that I do this in the appropriate event handlers of audio-/subtitle change.



Re: HD DVD Interactivity Authoring Saving stream settings

Peter Torr - MSFT

Also for titleEnd you should look at the event's id property. It tells you the title that ended (the current title is the new one). Either way, you shouldn't need to know what the title was; if you look for selectedAudioTrack it should give you the right answer, even if there is no currentAudioTrack that matches.




Re: HD DVD Interactivity Authoring Saving stream settings

tisho

That was the other question I was trying to get answer. What is the difference between selectedAudioTrack and currentAudioTrack
Thanks in advance.





Re: HD DVD Interactivity Authoring Saving stream settings


Re: HD DVD Interactivity Authoring Saving stream settings

DrumAllDay

Why save the user's track settings when the title ends What about when they just change the tracks with the audio_track and subtitle_track events




Re: HD DVD Interactivity Authoring Saving stream settings

tisho

Thanks Peter! it's clear now.
DrumAllDay wrote:
Why save the user's track settings when the title ends What about when they just change the tracks with the audio_track and subtitle_track events
I had a scenario where user could jump between titles with different advanced applications and the settings should be kept.





Re: HD DVD Interactivity Authoring Saving stream settings

Peter Torr - MSFT

In that case, just make sure your stream numbers are the same OR they are completely different but the language codes are the same. Then the player will do it for you.




Re: HD DVD Interactivity Authoring Saving stream settings

DrumAllDay

I'm not sure I follow - why are you listening for title_end instead of audio_track and subtitle_track

Unless you have complex rules for maintaining settings (or need to have a different saved value for each title), the player should attempt to select the correct track for you (see Peter Torr's blog about selected vs current tracks). So, you might not actually have to have any script for this at all.

Also, if there is code that does maintainence for multiple titles on a disc, its usually better to go with a playlist app rather than multiple title apps that all perform the same functions.