401
edits
m (→Text cues) |
(clean-up on the cue text handling for video) |
||
Line 252: | Line 252: | ||
HRESULT play(); | HRESULT play(); | ||
HRESULT pause(); | HRESULT pause(); | ||
HRESULT un/mute(); | HRESULT un/mute(); | ||
HRESULT get/setVolume(); | HRESULT get/setVolume(); | ||
Line 264: | Line 263: | ||
[out, retval] number); | [out, retval] number); | ||
IAccessibleTrack[] getTextTracks(); | |||
IAccessibleTrack[] getAudioTracks(); | |||
IAccessibleTrack[] getVideoTracks(); | |||
} | } | ||
</pre> | </pre> | ||
<pre> | <pre> | ||
interface | interface IAccessibleTrack : public IUnknown | ||
{ | { | ||
HRESULT kind; | HRESULT kind; | ||
Line 295: | Line 283: | ||
Propose: provide a way to handle text descriptions and other text cues. | Propose: provide a way to handle text descriptions and other text cues. | ||
1) when the browser has a new cue available for a text track, then the browser fires a "MEDIA_TEXT_CUE_CHANGE" event at AT | |||
2) AT picks up the cue, which causes the browser to set a "pauseOnExit" flag to true on this cue; from here on, the AT and the video play asynchronously | |||
2.a) AT reads out cue and calls "GET_NEXT_CUE" when it is finished, which causes the browser to set the "pauseOnExit" flag to false and unpauses the video if it is paused | |||
2.b) in parallel the browser plays video until the end of the cue; if the "pauseOnExit" flag is true when it reaches the end time of the cue, the video pauses, otherwise it continues playing | |||
repeat from 1) | |||
<pre> | <pre> | ||
Line 313: | Line 308: | ||
HRESULT startTime; | HRESULT startTime; | ||
HRESULT endTime; | HRESULT endTime; | ||
} | } | ||
</pre> | </pre> | ||
===Text Descriptions and Subtitles for Video and Audio [Silvia description]=== | ===Text Descriptions and Subtitles for Video and Audio [Silvia description]=== |
edits