Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save svagionitis/5453707 to your computer and use it in GitHub Desktop.
Save svagionitis/5453707 to your computer and use it in GitHub Desktop.
Sequence Diagram For Loading a Video File From Disk (Error decoding data) for http://www.websequencediagrams.com/
# Error decoding data
title Sequence Diagram For Loading a Video File From Disk (Error decoding data)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "Media Player (Webkit {HTMLMediaElement, MediaPlayer, MediaPlayerPrivate}, Irisplayer)" as MediaPlayer
participant "Video pipeline(Local Disk, Demux, Decoder)" as VideoPipeline
HigherLayer->MediaPlayer: load()
note right of MediaPlayer
networkState: NETWORK_EMPTY
readyState: HAVE_NOTHING
end note
note right of MediaPlayer
networkState: NETWORK_NO_SOURCE
end note
MediaPlayer->VideoPipeline: Can you fetch the media data from the remote server?
note right of MediaPlayer
networkState: NETWORK_LOADING
end note
MediaPlayer->HigherLayer: loadstart
MediaPlayer->HigherLayer: progress
note right of VideoPipeline
1. Media Player reads successfuly the file from the hard disk.
2. Some media data has been read.
3. Error decoding data.
end note
VideoPipeline->MediaPlayer: Error decoding data.
note right of MediaPlayer
error: MEDIA_ERR_DECODE
end note
MediaPlayer->HigherLayer: error
alt readyState: HAVE_NOTHING
note right of MediaPlayer
networkState: NETWORK_EMPTY
end note
MediaPlayer->HigherLayer: emptied
else readyState > HAVE_NOTHING
note right of MediaPlayer
networkState: NETWORK_IDLE
end note
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment