-
Notifications
You must be signed in to change notification settings - Fork 6
/
gi-index.html
63 lines (59 loc) · 2.59 KB
/
gi-index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' lang='en'>
<head>
<meta charset='utf-8'/>
<title>DASH Event API</title>
<script class='remove'>
var respecConfig = {
specStatus: "ED"
, shortName: "event-api"
, editors: [
{ name: "Giridhar Mandyam"
, company: "Qualcomm Technologies Inc"
, companyURL: "http://www.qualcomm.com/" }]
, noIDLIn: true
, isRecTrack: false
, isNoTrack: true
, format: 'markdown'
};
</script>
<script src='respec.js' class='remove' async></script>
</head>
<body>
<section id='abstract'>
This document specifies an API that a user agent or DASH client can expose for application access to DASH events.
</section>
Introduction
------------
<p>The API's defined in this document are partial interfaces with respect to the <code>DASHEVent</code> event target. It is meant to cover both in-band ('emsg') and MPD-carriage of events.</p>
DASHEvent Interface
--------------
<pre class="idl">
interface DASHEvent : EventTarget {
readonly attribute DOMString type;
readonly attribute DOMString eventData;
attribute EventHandler ondashevent;
};</pre>
<h3>Attributes</h3>
<dl data-link-for="DASHEvent" data-dfn-for=
"MediaStreamTrack" class="attributes">
<dt><code>kind</code> of type <span class=
"idlAttrType"><a>DOMString</a></span>, readonly</dt>
<dd>
<p>The <code>kind</code></dfn> attribute
MUST return the string "<code>in-band</code>" if this current event is an 'emsg'-carried event, otherwise it should
return "<code>out-of-band</code>" to represent an MPD-carried event.</p>
</dd>
<dt><code>eventData</code> of type <span class=
"idlAttrType"><a>DOMString</a></span>, readonly</dt>
<dd>
<p>When an event is ncountered, the
DASH client MUST extract the event data, and MUST
initialize the object's <code>eventData</a></code> attribute to a string
representation of the event data.</p>
</dd>
<dt><dfn><code>ondashevent</code></dfn> of type <span class=
"idlAttrType"><a>EventHandler</a></span></dt>
<dd>
<p>This event handler is invoked when a new DASH event arrives.</p>
</dd>