Skip to content

Instantly share code, notes, and snippets.

Avatar

stavros vagionitis svagionitis

View GitHub Profile
View SequenceDiagramForLoadingADVBStream.wsd
<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 Dec 16, 2015
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).
View HTML5Spec_Webkit.md

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 Dec 16, 2015
Sequence Diagram For Loading a DVB stream (Error on tslock) for http://www.websequencediagrams.com/
View SequenceDiagramForLoadingADVBStreamErrorOnTslock.wsd
<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 Dec 16, 2015
Sequence Diagram For Loading a DVB stream (Error on demux or dcr) for http://www.websequencediagrams.com
View SequenceDiagramForLoadingADVBStreamErrorOnDemuxOrDcr.wsd
<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
View SequenceDiagramForPlaybackADVBStreamNoErrors.wsd
<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 Dec 16, 2015
Sequence Diagram For Playback a DVB stream (Error on demux or dcr) for http://www.websequencediagrams.com/
View SequenceDiagramForPlaybackADVBStreamErrorOnDemuxOrDcr.wsd
<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()
View SequenceDiagramForLoadingAnHLSStreamNoErrors.wsd
<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 Dec 16, 2015
Sequence Diagram For Loading an HLS stream (Error fetching data from remote server) for http://www.websequencediagrams.com/
View SequenceDiagramForLoadingAnHLSStreamErrorFetchingDataFromRemoteServer.wsd
<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 Dec 16, 2015
Sequence Diagram For Loading an HLS stream (Error connecting to remote server) for http://www.websequencediagrams.com/
View SequenceDiagramForLoadingAnHLSStreamErrorConnectingToRemoteServer.wsd
<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 Dec 16, 2015
Sequence Diagram For Loading an HLS stream (Error decoding data) for http://www.websequencediagrams.com/
View SequenceDiagramForLoadingAnHLSStreamErrorDecodingData.wsd
<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