Skip to content

Instantly share code, notes, and snippets.

View svagionitis's full-sized avatar

stavros vagionitis svagionitis

View GitHub Profile
@svagionitis
svagionitis / SequenceDiagramForLoadingADVBStream.wsd
Last active December 16, 2015 10:19
Sequence Diagram For Loading a DVB stream using the http://www.websequencediagrams.com/.
<div class="wsd" wsd_style="vs2010"><pre>
# No errors on tslock or demux and dcr
title Sequence Diagram For Loading a DVB stream (No errors)
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
@svagionitis
svagionitis / HTML5Spec_Webkit.md
Last active December 16, 2015 10:19
Some notes regarding the HTML5 Video Element specification (see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html) and the implementation on Webkit (see https://trac.webkit.org/browser).

HTML5 Media Element Specification and Webkit (See Source/WebCore/html/HTMLMediaElement.cpp)

  • The equivalent of specification's media.load() in Webkit is HTMLMediaElement::load() and is located in Source/WebCore/html/HTMLMediaElement.cpp.
  • When in specifications says about discarding pending events and callbacks for the media element, the Webkit calls cancelPendingEventsAndCallbacks() to perform these operations. It's located in Source/WebCore/html/HTMLMediaElement.cpp.
  • The networkState in specification has four states:
    1. NETWORK_EMPTY: The element has not yet been initialized. All attributes are in their initial states.
    2. NETWORK_IDLE: The element's resource selection algorithm is active and has selected a resource, but it is not actually using the network at this time.
    3. NETWORK_LOADING: The user agent is actively trying to download data.
    4. NETWORK_NO_SOURCE: The element's resource sele
@svagionitis
svagionitis / SequenceDiagramForLoadingADVBStreamErrorOnTslock.wsd
Last active December 16, 2015 10:19
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
@svagionitis
svagionitis / SequenceDiagramForLoadingADVBStreamErrorOnDemuxOrDcr.wsd
Last active December 16, 2015 10:19
Sequence Diagram For Loading a DVB stream (Error on demux or dcr) for http://www.websequencediagrams.com
<div class="wsd" wsd_style="vs2010"><pre>
# Error on demux or dcr
title Sequence Diagram For Loading a DVB stream (Error on demux or dcr)
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
@svagionitis
svagionitis / SequenceDiagramForPlaybackADVBStreamNoErrors.wsd
Last active December 16, 2015 12:28
Sequence Diagram For Playback a DVB stream (No errors) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# No errors on demux and dcr
title Sequence Diagram For Playback a DVB stream (No errors)
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
@svagionitis
svagionitis / SequenceDiagramForPlaybackADVBStreamErrorOnDemuxOrDcr.wsd
Last active December 16, 2015 12:38
Sequence Diagram For Playback a DVB stream (Error on demux or dcr) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# Error on demux or dcr
title Sequence Diagram For Playback a DVB stream (Error on demux or dcr)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "HTMLMediaElement" as MediaPlayer
participant "Video pipeline(Tuner, Demod, Demux, Decoder)" as VideoPipeline
HigherLayer->MediaPlayer: play()
@svagionitis
svagionitis / SequenceDiagramForLoadingAnHLSStreamNoErrors.wsd
Last active December 16, 2015 12:48
Sequence Diagram For Loading an HLS stream (No errors) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# No errors on demux and dcr
title Sequence Diagram For Loading an HLS stream (No errors and use of MPEG2TS containers)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "HTMLMediaElement" as MediaPlayer
participant "Video pipeline(Remote server, Demux, Decoder)" as VideoPipeline
note right of MediaPlayer
@svagionitis
svagionitis / SequenceDiagramForLoadingAnHLSStreamErrorFetchingDataFromRemoteServer.wsd
Last active December 16, 2015 13:58
Sequence Diagram For Loading an HLS stream (Error fetching data from remote server) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# Errors fetching data from remote server
title Sequence Diagram For Loading an HLS stream (Error fetching data from remote server)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "HTMLMediaElement" as MediaPlayer
participant "Video pipeline(Remote server, Demux, Decoder)" as VideoPipeline
note right of MediaPlayer
@svagionitis
svagionitis / SequenceDiagramForLoadingAnHLSStreamErrorConnectingToRemoteServer.wsd
Last active December 16, 2015 13:59
Sequence Diagram For Loading an HLS stream (Error connecting to remote server) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# Errors connecting to remote server
title Sequence Diagram For Loading an HLS stream (Error connecting to remote server)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "HTMLMediaElement" as MediaPlayer
participant "Video pipeline(Remote server, Demux, Decoder)" as VideoPipeline
note right of MediaPlayer
@svagionitis
svagionitis / SequenceDiagramForLoadingAnHLSStreamErrorDecodingData.wsd
Last active December 16, 2015 13:59
Sequence Diagram For Loading an HLS stream (Error decoding data) for http://www.websequencediagrams.com/
<div class="wsd" wsd_style="vs2010"><pre>
# Error decoding data
title Sequence Diagram For Loading an HLS stream (Error decoding data)
participant "Higher Layer (HTML page, JS)" as HigherLayer
participant "HTMLMediaElement" as MediaPlayer
participant "Video pipeline(Remote server, Demux, Decoder)" as VideoPipeline
note right of MediaPlayer