Compartir a través de


IMediaPlayer interface

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Microsoft Live Share SDK License.

Property Details

currentSrc

currentSrc: string

Property Value

string

currentTime

currentTime: number

Property Value

number

duration

duration: number

Property Value

number

ended

ended: boolean

Property Value

boolean

muted

muted: boolean

Property Value

boolean

paused

paused: boolean

Property Value

boolean

playbackRate

playbackRate: number

Property Value

number

src

src: string

Property Value

string

volume

volume: number

Property Value

number

Method Details

addEventListener(string, EventListenerOrEventListenerObject, boolean | AddEventListenerOptions)

function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions)

Parameters

type

string

listener

EventListenerOrEventListenerObject

options

boolean | AddEventListenerOptions

load()

function load()

pause()

function pause()

play()

function play(): Promise<void>

Returns

Promise<void>

removeEventListener(string, EventListenerOrEventListenerObject, boolean | EventListenerOptions)

function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions)

Parameters

type

string

listener

EventListenerOrEventListenerObject

options

boolean | EventListenerOptions