Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save svagionitis/5419700 to your computer and use it in GitHub Desktop.
Save svagionitis/5419700 to your computer and use it in GitHub Desktop.
Sequence Diagram For Loading a DVB stream (Error on tslock) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# Error on tslock or in URL
title Sequence Diagram For Loading a DVB stream (Error on tslock)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "HTMLMediaElement" as MediaPlayer
participant "Video pipeline(Tuner, Demod, Demux, Decoder)" as VideoPipeline
note right of MediaPlayer
networkState: NETWORK_EMPTY
readyState: HAVE_NOTHING
end note
HigherLayer->MediaPlayer: load()
note right of MediaPlayer
networkState: NETWORK_NO_SOURCE
end note
note right of MediaPlayer
networkState: NETWORK_LOADING
end note
MediaPlayer->HigherLayer: loadstart
MediaPlayer->VideoPipeline: Lock to the frequency specified in the DVB url.
MediaPlayer-->HigherLayer: progress
note right of VideoPipeline
1. Tuner tries tslock to the given frequency. Tuner could not lock to the frequency \nbecause there was no aerial or the signal was low, or
2. An error in URL.
end note
VideoPipeline->MediaPlayer: Error on tslock or in URL. Warning sent by Irisplayer.
note right of MediaPlayer
error: MEDIA_ERR_SRC_NOT_SUPPORTED
end note
note right of MediaPlayer
networkState: NETWORK_NO_SOURCE
end note
note right of MediaPlayer
On Webkit the errors are included in the networkState.
networkState: NetworkError
end note
MediaPlayer->HigherLayer: error
note right of MediaPlayer
Abort the load. Until the load method is invoked or the URL is changed, nothing else happens.
end note
</pre></div><script type="text/javascript" src="http://www.websequencediagrams.com/service.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment