Dart SDK
dart:html
MediaSource
class
MediaSource
Static Properties
Static Methods
Properties
Constructors
Methods
Static properties
supported
Static methods
isTypeSupported
Properties
activeSourceBuffers
duration
readyState
sourceBuffers
on
Constructors
MediaSource
Methods
addSourceBuffer
endOfStream
removeSourceBuffer
addEventListener
removeEventListener
dispatchEvent
(Not documented.)
Annotations
DocsEditable()
DomName('MediaSource')
SupportedBrowser(SupportedBrowser.CHROME)
SupportedBrowser(SupportedBrowser.IE, '11')
Experimental()
Extends
Object
EventTarget
MediaSource
Static Properties
bool
supported
read-only
Checks if this type is supported on the current platform.
Static Methods
isTypeSupported
(
String
type
) →
bool
Properties
SourceBufferList
activeSourceBuffers
read-only
num
duration
read / write
String
readyState
read-only
SourceBufferList
sourceBuffers
read-only
Events
on
read-only ,
inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Constructors
MediaSource
()
Methods
addSourceBuffer
(
String
type
) →
SourceBuffer
endOfStream
(
[
String
error
]) →
void
removeSourceBuffer
(
SourceBuffer
buffer
) →
void
addEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
removeEventListener
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
]) →
void
inherited
dispatchEvent
(
Event
event
) →
bool
inherited