IMediaPlayer interface
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Microsoft Live Share SDK License.
Properties
current |
|
current |
|
duration | |
ended | |
muted | |
paused | |
playback |
|
src | |
volume |
Methods
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour