Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save svagionitis/5453648 to your computer and use it in GitHub Desktop.
Save svagionitis/5453648 to your computer and use it in GitHub Desktop.
Sequence Diagram For Loading a Video File From Disk (Error reading the file) for http://www.websequencediagrams.com/
# Error reading the file
title Sequence Diagram For Loading a Video File From Disk (Error reading the file)
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 read the media data from the disk?
note right of MediaPlayer
networkState: NETWORK_LOADING
end note
MediaPlayer->HigherLayer: loadstart
note right of VideoPipeline
1. Media Player cannot read the file from the disk, or
2. The media file failed to load.
end note
VideoPipeline->MediaPlayer: Error reading the file from the disk.
note right of MediaPlayer
networkState: NETWORK_NO_SOURCE
error: MEDIA_ERR_SRC_NOT_SUPPORTED
end note
MediaPlayer->HigherLayer: error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment