MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / mediaPlayers

Method mediaPlayers

src/monogatari.ts:1425–1435  ·  view source on GitHub ↗
(key?: string, object = false)

Source from the content-addressed store, hash-verified

1423 }
1424
1425 static mediaPlayers (key?: string, object = false) {
1426 if (typeof key === 'string') {
1427 if (object) {
1428 return this._mediaPlayers[key];
1429 }
1430
1431 return Object.values (this._mediaPlayers[key]);
1432 }
1433
1434 return this._mediaPlayers;
1435 }
1436
1437 static mediaPlayer (type: string, key: string, value?: HTMLAudioElement | HTMLVideoElement | AudioPlayer): HTMLAudioElement | HTMLVideoElement | AudioPlayer | undefined {
1438 if (typeof value === 'undefined') {

Callers 15

mediaPlayerMethod · 0.95
removeMediaPlayerMethod · 0.95
constructorMethod · 0.80
constructorMethod · 0.80
shouldProceedMethod · 0.80
initMethod · 0.80
bindMethod · 0.80
onLoadMethod · 0.80
resetMethod · 0.80
shutUpMethod · 0.80
constructorMethod · 0.80
didMountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected