MseStreamSource
MseStreamSource
MseStreamSource
MseStreamSource
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Represents a media source extensions (MSE) stream source.
public : sealed class MseStreamSource : IMediaSource, IMseStreamSource, IMseStreamSource2public sealed class MseStreamSource : IMediaSource, IMseStreamSource, IMseStreamSource2Public NotInheritable Class MseStreamSource Implements IMediaSource, IMseStreamSource, IMseStreamSource2// This API is not available in Javascript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Constructors
MseStreamSource() MseStreamSource() MseStreamSource() MseStreamSource()
Instantiates a new instance of an uninitialized MseStreamSource.
public : MseStreamSource()public MseStreamSource()Public Sub New()// This API is not available in Javascript.
Properties
ActiveSourceBuffers ActiveSourceBuffers ActiveSourceBuffers ActiveSourceBuffers
Gets the list of media source extensions (MSE) source buffers that are active on the stream source.
public : MseSourceBufferList ActiveSourceBuffers { get; }public MseSourceBufferList ActiveSourceBuffers { get; }Public ReadOnly Property ActiveSourceBuffers As MseSourceBufferList// This API is not available in Javascript.
The list of MSE source buffers that are active.
Duration Duration Duration Duration
Gets and sets the duration of the stream source.
public : IReference<TimeSpan> Duration { get; set; }public Nullable<TimeSpan> Duration { get; set; }Public ReadWrite Property Duration As Nullable<TimeSpan>// This API is not available in Javascript.
- Value
- IReference<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan> Nullable<TimeSpan>
The duration of the stream source.
LiveSeekableRange LiveSeekableRange LiveSeekableRange LiveSeekableRange
Prerelease. Gets or sets the seekable time range for a Media Source Extension.
public : IReference<MseTimeRange> LiveSeekableRange { get; set; }public Nullable<MseTimeRange> LiveSeekableRange { get; set; }Public ReadWrite Property LiveSeekableRange As Nullable<MseTimeRange>// This API is not available in Javascript.
- Value
- IReference<MseTimeRange> Nullable<MseTimeRange> Nullable<MseTimeRange> Nullable<MseTimeRange>
The time range within which the user can seek during media playback.
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
Remarks
Set this value to null to disable seeking during media playback. This enables scenarios like disabling seeking during ads.
ReadyState ReadyState ReadyState ReadyState
Gets a value that specifies the ready state of the MseStreamSource.
public : MseReadyState ReadyState { get; }public MseReadyState ReadyState { get; }Public ReadOnly Property ReadyState As MseReadyState// This API is not available in Javascript.
A MseReadyState -typed value that specifies the ready state of the MseStreamSource.
SourceBuffers SourceBuffers SourceBuffers SourceBuffers
Gets the list of media source extensions (MSE) source buffers on the stream source.
public : MseSourceBufferList SourceBuffers { get; }public MseSourceBufferList SourceBuffers { get; }Public ReadOnly Property SourceBuffers As MseSourceBufferList// This API is not available in Javascript.
The list of MSE source buffers.
Methods
AddSourceBuffer(String) AddSourceBuffer(String) AddSourceBuffer(String) AddSourceBuffer(String)
Adds a source buffer to the stream source.
public : MseSourceBuffer AddSourceBuffer(PlatForm::String mimeType)public MseSourceBuffer AddSourceBuffer(String mimeType)Public Function AddSourceBuffer(mimeType As String) As MseSourceBuffer// This API is not available in Javascript.
- mimeType
- PlatForm::String String String String
A string that describes the source buffer's MIME type.
The MseSourceBuffer object for the source buffer added.
EndOfStream(MseEndOfStreamStatus) EndOfStream(MseEndOfStreamStatus) EndOfStream(MseEndOfStreamStatus) EndOfStream(MseEndOfStreamStatus)
Specifies the status at the end of stream.
public : void EndOfStream(MseEndOfStreamStatus status)public void EndOfStream(MseEndOfStreamStatus status)Public Function EndOfStream(status As MseEndOfStreamStatus) As void// This API is not available in Javascript.
A MseEndOfStreamStatus -typed value that specifies the status at the end of stream.
IsContentTypeSupported(String) IsContentTypeSupported(String) IsContentTypeSupported(String) IsContentTypeSupported(String)
Specifies whether a content type is supported.
public : static PlatForm::Boolean IsContentTypeSupported(PlatForm::String contentType)public static bool IsContentTypeSupported(String contentType)Public Static Function IsContentTypeSupported(contentType As String) As bool// This API is not available in Javascript.
- contentType
- PlatForm::String String String String
A string that describes the content type.
true if the content type specified by contentType is supported; otherwise, false.
RemoveSourceBuffer(MseSourceBuffer) RemoveSourceBuffer(MseSourceBuffer) RemoveSourceBuffer(MseSourceBuffer) RemoveSourceBuffer(MseSourceBuffer)
Removes a source buffer from the stream source.
public : void RemoveSourceBuffer(MseSourceBuffer buffer)public void RemoveSourceBuffer(MseSourceBuffer buffer)Public Function RemoveSourceBuffer(buffer As MseSourceBuffer) As void// This API is not available in Javascript.
The MseSourceBuffer object for the source buffer removed.
Events
Closed Closed Closed Closed
Occurs when the MseStreamSource is closed.
public : event TypedEventHandler Closed<MseStreamSource, object>public event TypedEventHandler Closed<MseStreamSource, object>Public Event Closed<MseStreamSource, object>// This API is not available in Javascript.
Ended Ended Ended Ended
Occurs when the MseStreamSource is ended.
public : event TypedEventHandler Ended<MseStreamSource, object>public event TypedEventHandler Ended<MseStreamSource, object>Public Event Ended<MseStreamSource, object>// This API is not available in Javascript.
Opened Opened Opened Opened
Occurs when the MseStreamSource is opened.
public : event TypedEventHandler Opened<MseStreamSource, object>public event TypedEventHandler Opened<MseStreamSource, object>Public Event Opened<MseStreamSource, object>// This API is not available in Javascript.