@microsoft/live-share-media 2.0.0-internal.18 → 2.0.0-internal.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/esm/LiveMediaSession.js +82 -92
- package/bin/esm/LiveMediaSession.js.map +1 -1
- package/bin/esm/LiveMediaSessionCoordinator.js +264 -276
- package/bin/esm/LiveMediaSessionCoordinator.js.map +1 -1
- package/bin/esm/LiveMediaSessionCoordinatorSuspension.js +2 -0
- package/bin/esm/LiveMediaSessionCoordinatorSuspension.js.map +1 -1
- package/bin/esm/MediaPlayerSynchronizer.js +102 -118
- package/bin/esm/MediaPlayerSynchronizer.js.map +1 -1
- package/bin/esm/RepeatedActionThrottler.js +9 -10
- package/bin/esm/RepeatedActionThrottler.js.map +1 -1
- package/bin/esm/VolumeManager.js +10 -9
- package/bin/esm/VolumeManager.js.map +1 -1
- package/bin/esm/internals/GroupCoordinatorState.js +138 -139
- package/bin/esm/internals/GroupCoordinatorState.js.map +1 -1
- package/bin/esm/internals/GroupPlaybackPosition.js +12 -4
- package/bin/esm/internals/GroupPlaybackPosition.js.map +1 -1
- package/bin/esm/internals/GroupPlaybackRate.js +1 -0
- package/bin/esm/internals/GroupPlaybackRate.js.map +1 -1
- package/bin/esm/internals/GroupPlaybackTrack.js +2 -0
- package/bin/esm/internals/GroupPlaybackTrack.js.map +1 -1
- package/bin/esm/internals/GroupPlaybackTrackData.js +2 -0
- package/bin/esm/internals/GroupPlaybackTrackData.js.map +1 -1
- package/bin/esm/internals/GroupTransportState.js +5 -0
- package/bin/esm/internals/GroupTransportState.js.map +1 -1
- package/bin/esm/internals/PriorityTimeInterval.js +12 -0
- package/bin/esm/internals/PriorityTimeInterval.js.map +1 -1
- package/package.json +11 -21
- package/tsconfig.json +3 -4
- package/bin/IMediaPlayer.d.ts +0 -21
- package/bin/IMediaPlayer.d.ts.map +0 -1
- package/bin/IMediaPlayer.js +0 -7
- package/bin/IMediaPlayer.js.map +0 -1
- package/bin/LiveMediaSession.d.ts +0 -90
- package/bin/LiveMediaSession.d.ts.map +0 -1
- package/bin/LiveMediaSession.js +0 -255
- package/bin/LiveMediaSession.js.map +0 -1
- package/bin/LiveMediaSessionCoordinator.d.ts +0 -259
- package/bin/LiveMediaSessionCoordinator.d.ts.map +0 -1
- package/bin/LiveMediaSessionCoordinator.js +0 -472
- package/bin/LiveMediaSessionCoordinator.js.map +0 -1
- package/bin/LiveMediaSessionCoordinatorSuspension.d.ts +0 -20
- package/bin/LiveMediaSessionCoordinatorSuspension.d.ts.map +0 -1
- package/bin/LiveMediaSessionCoordinatorSuspension.js +0 -28
- package/bin/LiveMediaSessionCoordinatorSuspension.js.map +0 -1
- package/bin/MediaPlayerSynchronizer.d.ts +0 -189
- package/bin/MediaPlayerSynchronizer.d.ts.map +0 -1
- package/bin/MediaPlayerSynchronizer.js +0 -577
- package/bin/MediaPlayerSynchronizer.js.map +0 -1
- package/bin/MediaSessionActionThrottler.d.ts +0 -12
- package/bin/MediaSessionActionThrottler.d.ts.map +0 -1
- package/bin/MediaSessionActionThrottler.js +0 -14
- package/bin/MediaSessionActionThrottler.js.map +0 -1
- package/bin/MediaSessionExtensions.d.ts +0 -177
- package/bin/MediaSessionExtensions.d.ts.map +0 -1
- package/bin/MediaSessionExtensions.js +0 -26
- package/bin/MediaSessionExtensions.js.map +0 -1
- package/bin/RepeatedActionThrottler.d.ts +0 -20
- package/bin/RepeatedActionThrottler.d.ts.map +0 -1
- package/bin/RepeatedActionThrottler.js +0 -63
- package/bin/RepeatedActionThrottler.js.map +0 -1
- package/bin/VolumeManager.d.ts +0 -84
- package/bin/VolumeManager.d.ts.map +0 -1
- package/bin/VolumeManager.js +0 -175
- package/bin/VolumeManager.js.map +0 -1
- package/bin/cjs/IMediaPlayer.d.ts +0 -21
- package/bin/cjs/IMediaPlayer.d.ts.map +0 -1
- package/bin/cjs/IMediaPlayer.js +0 -7
- package/bin/cjs/IMediaPlayer.js.map +0 -1
- package/bin/cjs/LiveMediaSession.d.ts +0 -97
- package/bin/cjs/LiveMediaSession.d.ts.map +0 -1
- package/bin/cjs/LiveMediaSession.js +0 -261
- package/bin/cjs/LiveMediaSession.js.map +0 -1
- package/bin/cjs/LiveMediaSessionCoordinator.d.ts +0 -304
- package/bin/cjs/LiveMediaSessionCoordinator.d.ts.map +0 -1
- package/bin/cjs/LiveMediaSessionCoordinator.js +0 -560
- package/bin/cjs/LiveMediaSessionCoordinator.js.map +0 -1
- package/bin/cjs/LiveMediaSessionCoordinatorSuspension.d.ts +0 -20
- package/bin/cjs/LiveMediaSessionCoordinatorSuspension.d.ts.map +0 -1
- package/bin/cjs/LiveMediaSessionCoordinatorSuspension.js +0 -28
- package/bin/cjs/LiveMediaSessionCoordinatorSuspension.js.map +0 -1
- package/bin/cjs/MediaPlayerSynchronizer.d.ts +0 -204
- package/bin/cjs/MediaPlayerSynchronizer.d.ts.map +0 -1
- package/bin/cjs/MediaPlayerSynchronizer.js +0 -574
- package/bin/cjs/MediaPlayerSynchronizer.js.map +0 -1
- package/bin/cjs/MediaSessionActionThrottler.d.ts +0 -12
- package/bin/cjs/MediaSessionActionThrottler.d.ts.map +0 -1
- package/bin/cjs/MediaSessionActionThrottler.js +0 -14
- package/bin/cjs/MediaSessionActionThrottler.js.map +0 -1
- package/bin/cjs/MediaSessionExtensions.d.ts +0 -177
- package/bin/cjs/MediaSessionExtensions.d.ts.map +0 -1
- package/bin/cjs/MediaSessionExtensions.js +0 -26
- package/bin/cjs/MediaSessionExtensions.js.map +0 -1
- package/bin/cjs/RepeatedActionThrottler.d.ts +0 -20
- package/bin/cjs/RepeatedActionThrottler.d.ts.map +0 -1
- package/bin/cjs/RepeatedActionThrottler.js +0 -63
- package/bin/cjs/RepeatedActionThrottler.js.map +0 -1
- package/bin/cjs/VolumeManager.d.ts +0 -84
- package/bin/cjs/VolumeManager.d.ts.map +0 -1
- package/bin/cjs/VolumeManager.js +0 -175
- package/bin/cjs/VolumeManager.js.map +0 -1
- package/bin/cjs/index.d.ts +0 -14
- package/bin/cjs/index.d.ts.map +0 -1
- package/bin/cjs/index.js +0 -30
- package/bin/cjs/index.js.map +0 -1
- package/bin/cjs/internals/GroupCoordinatorState.d.ts +0 -110
- package/bin/cjs/internals/GroupCoordinatorState.d.ts.map +0 -1
- package/bin/cjs/internals/GroupCoordinatorState.js +0 -516
- package/bin/cjs/internals/GroupCoordinatorState.js.map +0 -1
- package/bin/cjs/internals/GroupPlaybackPosition.d.ts +0 -71
- package/bin/cjs/internals/GroupPlaybackPosition.d.ts.map +0 -1
- package/bin/cjs/internals/GroupPlaybackPosition.js +0 -170
- package/bin/cjs/internals/GroupPlaybackPosition.js.map +0 -1
- package/bin/cjs/internals/GroupPlaybackRate.d.ts +0 -38
- package/bin/cjs/internals/GroupPlaybackRate.d.ts.map +0 -1
- package/bin/cjs/internals/GroupPlaybackRate.js +0 -59
- package/bin/cjs/internals/GroupPlaybackRate.js.map +0 -1
- package/bin/cjs/internals/GroupPlaybackTrack.d.ts +0 -45
- package/bin/cjs/internals/GroupPlaybackTrack.d.ts.map +0 -1
- package/bin/cjs/internals/GroupPlaybackTrack.js +0 -122
- package/bin/cjs/internals/GroupPlaybackTrack.js.map +0 -1
- package/bin/cjs/internals/GroupPlaybackTrackData.d.ts +0 -40
- package/bin/cjs/internals/GroupPlaybackTrackData.d.ts.map +0 -1
- package/bin/cjs/internals/GroupPlaybackTrackData.js +0 -70
- package/bin/cjs/internals/GroupPlaybackTrackData.js.map +0 -1
- package/bin/cjs/internals/GroupTransportState.d.ts +0 -52
- package/bin/cjs/internals/GroupTransportState.d.ts.map +0 -1
- package/bin/cjs/internals/GroupTransportState.js +0 -120
- package/bin/cjs/internals/GroupTransportState.js.map +0 -1
- package/bin/cjs/internals/PriorityTimeInterval.d.ts +0 -33
- package/bin/cjs/internals/PriorityTimeInterval.d.ts.map +0 -1
- package/bin/cjs/internals/PriorityTimeInterval.js +0 -45
- package/bin/cjs/internals/PriorityTimeInterval.js.map +0 -1
- package/bin/cjs/internals/consts.d.ts +0 -83
- package/bin/cjs/internals/consts.d.ts.map +0 -1
- package/bin/cjs/internals/consts.js +0 -92
- package/bin/cjs/internals/consts.js.map +0 -1
- package/bin/cjs/internals/errors.d.ts +0 -17
- package/bin/cjs/internals/errors.d.ts.map +0 -1
- package/bin/cjs/internals/errors.js +0 -34
- package/bin/cjs/internals/errors.js.map +0 -1
- package/bin/cjs/internals/interfaces.d.ts +0 -23
- package/bin/cjs/internals/interfaces.d.ts.map +0 -1
- package/bin/cjs/internals/interfaces.js +0 -3
- package/bin/cjs/internals/interfaces.js.map +0 -1
- package/bin/cjs/package.json +0 -1
- package/bin/index.d.ts +0 -14
- package/bin/index.d.ts.map +0 -1
- package/bin/index.js +0 -30
- package/bin/index.js.map +0 -1
- package/bin/internals/GroupCoordinatorState.d.ts +0 -107
- package/bin/internals/GroupCoordinatorState.d.ts.map +0 -1
- package/bin/internals/GroupCoordinatorState.js +0 -519
- package/bin/internals/GroupCoordinatorState.js.map +0 -1
- package/bin/internals/GroupPlaybackPosition.d.ts +0 -70
- package/bin/internals/GroupPlaybackPosition.d.ts.map +0 -1
- package/bin/internals/GroupPlaybackPosition.js +0 -170
- package/bin/internals/GroupPlaybackPosition.js.map +0 -1
- package/bin/internals/GroupPlaybackRate.d.ts +0 -38
- package/bin/internals/GroupPlaybackRate.d.ts.map +0 -1
- package/bin/internals/GroupPlaybackRate.js +0 -62
- package/bin/internals/GroupPlaybackRate.js.map +0 -1
- package/bin/internals/GroupPlaybackTrack.d.ts +0 -45
- package/bin/internals/GroupPlaybackTrack.d.ts.map +0 -1
- package/bin/internals/GroupPlaybackTrack.js +0 -125
- package/bin/internals/GroupPlaybackTrack.js.map +0 -1
- package/bin/internals/GroupPlaybackTrackData.d.ts +0 -40
- package/bin/internals/GroupPlaybackTrackData.d.ts.map +0 -1
- package/bin/internals/GroupPlaybackTrackData.js +0 -73
- package/bin/internals/GroupPlaybackTrackData.js.map +0 -1
- package/bin/internals/GroupTransportState.d.ts +0 -52
- package/bin/internals/GroupTransportState.d.ts.map +0 -1
- package/bin/internals/GroupTransportState.js +0 -123
- package/bin/internals/GroupTransportState.js.map +0 -1
- package/bin/internals/consts.d.ts +0 -83
- package/bin/internals/consts.d.ts.map +0 -1
- package/bin/internals/consts.js +0 -92
- package/bin/internals/consts.js.map +0 -1
- package/bin/internals/errors.d.ts +0 -17
- package/bin/internals/errors.d.ts.map +0 -1
- package/bin/internals/errors.js +0 -34
- package/bin/internals/errors.js.map +0 -1
- package/bin/internals/index.d.ts +0 -13
- package/bin/internals/index.d.ts.map +0 -1
- package/bin/internals/index.js +0 -29
- package/bin/internals/index.js.map +0 -1
- package/bin/internals/interfaces.d.ts +0 -10
- package/bin/internals/interfaces.d.ts.map +0 -1
- package/bin/internals/interfaces.js +0 -3
- package/bin/internals/interfaces.js.map +0 -1
- package/tsconfig.cjs.json +0 -14
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the Microsoft Live Share SDK License.
|
|
4
|
-
*/
|
|
5
|
-
import { DataObjectFactory } from "@fluidframework/aqueduct/legacy";
|
|
6
|
-
import { LiveTelemetryLogger, UserMeetingRole } from "@microsoft/live-share";
|
|
7
|
-
import { LiveDataObject } from "@microsoft/live-share/internal";
|
|
8
|
-
import { MediaPlayerSynchronizer } from "./MediaPlayerSynchronizer.js";
|
|
9
|
-
import { ExtendedMediaSessionAction, ExtendedMediaSessionActionHandler } from "./MediaSessionExtensions.js";
|
|
10
|
-
import { LiveMediaSessionCoordinator, IMediaPlayerState } from "./LiveMediaSessionCoordinator.js";
|
|
11
|
-
import { MediaSessionActionThrottler } from "./MediaSessionActionThrottler.js";
|
|
12
|
-
import { IMediaPlayer } from "./IMediaPlayer.js";
|
|
13
|
-
import { SharedObjectKind } from "fluid-framework";
|
|
14
|
-
/**
|
|
15
|
-
* Live fluid object that synchronizes media playback across multiple clients.
|
|
16
|
-
*/
|
|
17
|
-
export declare class LiveMediaSessionClass extends LiveDataObject {
|
|
18
|
-
private _actionThrottler;
|
|
19
|
-
private _logger?;
|
|
20
|
-
private _requestPlayerStateHandler?;
|
|
21
|
-
private _coordinator?;
|
|
22
|
-
private readonly _actionHandlers;
|
|
23
|
-
private _synchronizing?;
|
|
24
|
-
private _updateTimer;
|
|
25
|
-
private _lastUpdateTime;
|
|
26
|
-
/**
|
|
27
|
-
* The objects fluid type name.
|
|
28
|
-
*/
|
|
29
|
-
static readonly TypeName = "@microsoft/fluid-media:SharedMediaSession";
|
|
30
|
-
/**
|
|
31
|
-
* The objects fluid type factory.
|
|
32
|
-
*/
|
|
33
|
-
static readonly factory: DataObjectFactory<LiveMediaSessionClass, import("@fluidframework/aqueduct/legacy").DataObjectTypes>;
|
|
34
|
-
/**
|
|
35
|
-
* Extension point that lets applications replace the default logic for throttling the sessions
|
|
36
|
-
* local sync behavior.
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* The `LiveMediaCoordinator` is fairly aggressive at wanting to keep the local media player
|
|
40
|
-
* in sync with the rest of the group. This aggressiveness can result in the coordinator sending
|
|
41
|
-
* new sync actions before the local player has finished responding to the previous sync action.
|
|
42
|
-
* The `ActionThrottler` gives apps fine grain control over how aggressive they want sync to be.
|
|
43
|
-
*
|
|
44
|
-
* By default, a `RepeatedAction` throttler is used which prevents the same sync action from
|
|
45
|
-
* being sent within an adjustable time period.
|
|
46
|
-
*/
|
|
47
|
-
get actionThrottler(): MediaSessionActionThrottler;
|
|
48
|
-
set actionThrottler(value: MediaSessionActionThrottler);
|
|
49
|
-
/**
|
|
50
|
-
* The group coordinator for the session.
|
|
51
|
-
*/
|
|
52
|
-
get coordinator(): LiveMediaSessionCoordinator;
|
|
53
|
-
/**
|
|
54
|
-
* Returns the logger used by the session and coordinator.
|
|
55
|
-
*
|
|
56
|
-
* @remarks
|
|
57
|
-
* This is used by the `MediaPlayerSynchronizer` to log events.
|
|
58
|
-
*/
|
|
59
|
-
get logger(): LiveTelemetryLogger;
|
|
60
|
-
/**
|
|
61
|
-
* Initialize the object to begin sending/receiving group playback updates through this DDS.
|
|
62
|
-
*
|
|
63
|
-
* @param allowedRoles Optional. List of roles allowed to group transport operations like play/pause/seek/setTrack.
|
|
64
|
-
*
|
|
65
|
-
* @returns a void promise that resolves once complete.
|
|
66
|
-
*
|
|
67
|
-
* @throws error when `.initialize()` has already been called for this class instance.
|
|
68
|
-
*/
|
|
69
|
-
initialize(allowedRoles?: UserMeetingRole[]): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Registers an action handler with the session.
|
|
72
|
-
* @param action Name of the action to register a handler for.
|
|
73
|
-
* @param handler Function called when the action is triggered.
|
|
74
|
-
*/
|
|
75
|
-
setActionHandler(action: ExtendedMediaSessionAction, handler: ExtendedMediaSessionActionHandler | MediaSessionActionHandler | null): void;
|
|
76
|
-
/**
|
|
77
|
-
* Registers a handler that will be queried anytime the group coordinate needs to know the
|
|
78
|
-
* local players transport state and position.
|
|
79
|
-
*/
|
|
80
|
-
setRequestPlayerStateHandler(handler: () => IMediaPlayerState): void;
|
|
81
|
-
/**
|
|
82
|
-
* Begins synchronizing the playback of a media element.
|
|
83
|
-
* @param player Something that "looks like" and HTML Media Element.
|
|
84
|
-
* @returns A new synchronizer instance. Call `synchronizer.end()` to stop synchronizing the elements playback.
|
|
85
|
-
*/
|
|
86
|
-
synchronize(player: IMediaPlayer): MediaPlayerSynchronizer;
|
|
87
|
-
protected hasInitialized(): Promise<void>;
|
|
88
|
-
private checkWaitPointHit;
|
|
89
|
-
private getCurrentPlayerState;
|
|
90
|
-
private dispatchAction;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Live fluid object that synchronizes media playback across multiple clients.
|
|
94
|
-
*/
|
|
95
|
-
export type LiveMediaSession = LiveMediaSessionClass;
|
|
96
|
-
export declare const LiveMediaSession: typeof LiveMediaSessionClass & SharedObjectKind<LiveMediaSessionClass>;
|
|
97
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;IACH,IAAW,WAAW,IAAI,2BAA2B,CAEpD;IAED;;;;;OAKG;IACH,IAAW,MAAM,IAAI,mBAAmB,CAEvC;IAED;;;;;;;;OAQG;IACU,UAAU,CAAC,YAAY,CAAC,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBxE;;;;OAIG;IACI,gBAAgB,CACnB,MAAM,EAAE,0BAA0B,EAClC,OAAO,EACD,iCAAiC,GACjC,yBAAyB,GACzB,IAAI,GACX,IAAI;IAUP;;;OAGG;IACI,4BAA4B,CAAC,OAAO,EAAE,MAAM,iBAAiB;IAIpE;;;;OAIG;IACI,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,uBAAuB;cAoCjD,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAwF/C,OAAO,CAAC,iBAAiB;IAgCzB,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,cAAc;CAQzB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC;AAGrD,eAAO,MAAM,gBAAgB,wEAGzB,CAAC"}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
* Licensed under the Microsoft Live Share SDK License.
|
|
5
|
-
*/
|
|
6
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
8
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
9
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
10
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
11
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
12
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.LiveMediaSession = exports.LiveMediaSessionClass = void 0;
|
|
17
|
-
const legacy_1 = require("@fluidframework/aqueduct/legacy");
|
|
18
|
-
const live_share_1 = require("@microsoft/live-share");
|
|
19
|
-
const internal_1 = require("@microsoft/live-share/internal");
|
|
20
|
-
const MediaPlayerSynchronizer_js_1 = require("./MediaPlayerSynchronizer.js");
|
|
21
|
-
const MediaSessionExtensions_js_1 = require("./MediaSessionExtensions.js");
|
|
22
|
-
const LiveMediaSessionCoordinator_js_1 = require("./LiveMediaSessionCoordinator.js");
|
|
23
|
-
const RepeatedActionThrottler_js_1 = require("./RepeatedActionThrottler.js");
|
|
24
|
-
const consts_js_1 = require("./internals/consts.js");
|
|
25
|
-
/**
|
|
26
|
-
* Live fluid object that synchronizes media playback across multiple clients.
|
|
27
|
-
*/
|
|
28
|
-
class LiveMediaSessionClass extends internal_1.LiveDataObject {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this._actionThrottler = new RepeatedActionThrottler_js_1.RepeatedActionThrottler();
|
|
32
|
-
this._actionHandlers = new Map();
|
|
33
|
-
this._lastUpdateTime = 0;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Extension point that lets applications replace the default logic for throttling the sessions
|
|
37
|
-
* local sync behavior.
|
|
38
|
-
*
|
|
39
|
-
* @remarks
|
|
40
|
-
* The `LiveMediaCoordinator` is fairly aggressive at wanting to keep the local media player
|
|
41
|
-
* in sync with the rest of the group. This aggressiveness can result in the coordinator sending
|
|
42
|
-
* new sync actions before the local player has finished responding to the previous sync action.
|
|
43
|
-
* The `ActionThrottler` gives apps fine grain control over how aggressive they want sync to be.
|
|
44
|
-
*
|
|
45
|
-
* By default, a `RepeatedAction` throttler is used which prevents the same sync action from
|
|
46
|
-
* being sent within an adjustable time period.
|
|
47
|
-
*/
|
|
48
|
-
get actionThrottler() {
|
|
49
|
-
return this._actionThrottler;
|
|
50
|
-
}
|
|
51
|
-
set actionThrottler(value) {
|
|
52
|
-
this._actionThrottler = value;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* The group coordinator for the session.
|
|
56
|
-
*/
|
|
57
|
-
get coordinator() {
|
|
58
|
-
return this._coordinator;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Returns the logger used by the session and coordinator.
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* This is used by the `MediaPlayerSynchronizer` to log events.
|
|
65
|
-
*/
|
|
66
|
-
get logger() {
|
|
67
|
-
return this._logger;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Initialize the object to begin sending/receiving group playback updates through this DDS.
|
|
71
|
-
*
|
|
72
|
-
* @param allowedRoles Optional. List of roles allowed to group transport operations like play/pause/seek/setTrack.
|
|
73
|
-
*
|
|
74
|
-
* @returns a void promise that resolves once complete.
|
|
75
|
-
*
|
|
76
|
-
* @throws error when `.initialize()` has already been called for this class instance.
|
|
77
|
-
*/
|
|
78
|
-
initialize(allowedRoles) {
|
|
79
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
live_share_1.LiveDataObjectInitializeNotNeededError.assert("LiveMediaSession:initialize", this.initializeState);
|
|
81
|
-
// Update initialize state as pending
|
|
82
|
-
this.initializeState = live_share_1.LiveDataObjectInitializeState.pending;
|
|
83
|
-
if (allowedRoles) {
|
|
84
|
-
this._allowedRoles = allowedRoles;
|
|
85
|
-
}
|
|
86
|
-
try {
|
|
87
|
-
yield this.coordinator.initialize(allowedRoles);
|
|
88
|
-
}
|
|
89
|
-
catch (error) {
|
|
90
|
-
this.initializeState = live_share_1.LiveDataObjectInitializeState.needed;
|
|
91
|
-
throw error;
|
|
92
|
-
}
|
|
93
|
-
// Update initialize state as succeeded
|
|
94
|
-
this.initializeState = live_share_1.LiveDataObjectInitializeState.succeeded;
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Registers an action handler with the session.
|
|
99
|
-
* @param action Name of the action to register a handler for.
|
|
100
|
-
* @param handler Function called when the action is triggered.
|
|
101
|
-
*/
|
|
102
|
-
setActionHandler(action, handler) {
|
|
103
|
-
if (handler) {
|
|
104
|
-
// add handler
|
|
105
|
-
this._actionHandlers.set(action, handler);
|
|
106
|
-
}
|
|
107
|
-
else if (this._actionHandlers.has(action)) {
|
|
108
|
-
// remove handler
|
|
109
|
-
this._actionHandlers.delete(action);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Registers a handler that will be queried anytime the group coordinate needs to know the
|
|
114
|
-
* local players transport state and position.
|
|
115
|
-
*/
|
|
116
|
-
setRequestPlayerStateHandler(handler) {
|
|
117
|
-
this._requestPlayerStateHandler = handler;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Begins synchronizing the playback of a media element.
|
|
121
|
-
* @param player Something that "looks like" and HTML Media Element.
|
|
122
|
-
* @returns A new synchronizer instance. Call `synchronizer.end()` to stop synchronizing the elements playback.
|
|
123
|
-
*/
|
|
124
|
-
synchronize(player) {
|
|
125
|
-
// A session can only synchronize one player at a time
|
|
126
|
-
if (this._synchronizing) {
|
|
127
|
-
this._synchronizing.end();
|
|
128
|
-
}
|
|
129
|
-
// Start position update timer
|
|
130
|
-
if (!this._updateTimer) {
|
|
131
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.BeginPositionUpdateTimer);
|
|
132
|
-
this._updateTimer = setInterval(() => {
|
|
133
|
-
// Get current state
|
|
134
|
-
const state = this.getCurrentPlayerState();
|
|
135
|
-
// Check for hit wait point
|
|
136
|
-
this.checkWaitPointHit(state);
|
|
137
|
-
// Send position update if interval hit
|
|
138
|
-
const now = new Date().getTime();
|
|
139
|
-
const delta = (now - this._lastUpdateTime) / 1000;
|
|
140
|
-
if (this.coordinator.isInitialized &&
|
|
141
|
-
delta >= this.coordinator.positionUpdateInterval) {
|
|
142
|
-
this._lastUpdateTime = now;
|
|
143
|
-
this.coordinator.sendPositionUpdate(state);
|
|
144
|
-
}
|
|
145
|
-
}, 500);
|
|
146
|
-
}
|
|
147
|
-
return new MediaPlayerSynchronizer_js_1.MediaPlayerSynchronizer(player, this, this.runtime, () => {
|
|
148
|
-
this._synchronizing = undefined;
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
hasInitialized() {
|
|
152
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
-
this._logger = new live_share_1.LiveTelemetryLogger(this.runtime, this.liveRuntime);
|
|
154
|
-
// Create coordinator and listen for triggered actions
|
|
155
|
-
this._coordinator = new LiveMediaSessionCoordinator_js_1.LiveMediaSessionCoordinator(this.id, this.runtime, this.liveRuntime, () => this.getCurrentPlayerState());
|
|
156
|
-
this._coordinator.on(MediaSessionExtensions_js_1.MediaSessionCoordinatorEvents.triggeraction, (event) => {
|
|
157
|
-
// Pre-process actions
|
|
158
|
-
const details = event.details;
|
|
159
|
-
const seekTime = typeof details.seekTime == "number" ? details.seekTime : -1;
|
|
160
|
-
switch (details.action) {
|
|
161
|
-
case "play":
|
|
162
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.PlayAction, null, {
|
|
163
|
-
position: seekTime,
|
|
164
|
-
});
|
|
165
|
-
break;
|
|
166
|
-
case "pause":
|
|
167
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.PauseAction, null, {
|
|
168
|
-
position: seekTime,
|
|
169
|
-
});
|
|
170
|
-
break;
|
|
171
|
-
case "ratechange":
|
|
172
|
-
if (!details.playbackRate) {
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.RateChangeAction, null, {
|
|
176
|
-
playbackRate: details.playbackRate,
|
|
177
|
-
});
|
|
178
|
-
break;
|
|
179
|
-
case "seekto":
|
|
180
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.SeekToAction, null, {
|
|
181
|
-
position: seekTime,
|
|
182
|
-
});
|
|
183
|
-
break;
|
|
184
|
-
case "settrack":
|
|
185
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.SetTrackAction);
|
|
186
|
-
break;
|
|
187
|
-
case "datachange":
|
|
188
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.DataChangeAction);
|
|
189
|
-
break;
|
|
190
|
-
case "catchup":
|
|
191
|
-
// Default to seekto if catchup not implemented
|
|
192
|
-
this.logger.sendTelemetryEvent(consts_js_1.TelemetryEvents.MediaSession.CatchUpAction, null, {
|
|
193
|
-
position: seekTime,
|
|
194
|
-
});
|
|
195
|
-
if (!this._actionHandlers.has("catchup")) {
|
|
196
|
-
details.action = "seekto";
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
// Dispatch action
|
|
201
|
-
this.dispatchAction(details);
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
checkWaitPointHit(state) {
|
|
206
|
-
// Was a wait point hit?
|
|
207
|
-
if (state.positionState && this.coordinator.isInitialized) {
|
|
208
|
-
const waitPoint = this.coordinator.findNextWaitPoint();
|
|
209
|
-
if (waitPoint &&
|
|
210
|
-
state.positionState.position != undefined &&
|
|
211
|
-
state.positionState.position >= waitPoint.position) {
|
|
212
|
-
// Ensure handler registered
|
|
213
|
-
if (!this._actionHandlers.has("wait")) {
|
|
214
|
-
throw new Error(`LiveMediaSession:checkWaitPointHit - wait point hit but no 'wait' action registered.\nTo fix this error, set a \`wait\` action using the \`setActionHandler()\` function.`);
|
|
215
|
-
}
|
|
216
|
-
// Begin suspension for wait point
|
|
217
|
-
this.waitUntilConnected().then((clientId) => {
|
|
218
|
-
const suspension = this.coordinator.beginSuspension(waitPoint);
|
|
219
|
-
this.dispatchAction({
|
|
220
|
-
action: "wait",
|
|
221
|
-
source: "system",
|
|
222
|
-
clientId,
|
|
223
|
-
local: true,
|
|
224
|
-
suspension,
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
getCurrentPlayerState() {
|
|
231
|
-
if (!this._requestPlayerStateHandler) {
|
|
232
|
-
throw new Error("LiveMediaSession:getCurrentPlayerState - no `requestPlayerStateHandler` callback configured.\nTo fix this error, ensure `setRequestPlayerStateHandler()` has been set with a delegate to retrieve your player's state, or use the `synchronize()` function to create a new `MediaPlayerSynchronizer` instance tied to your `IMediaPlayer` instance.");
|
|
233
|
-
}
|
|
234
|
-
return this._requestPlayerStateHandler();
|
|
235
|
-
}
|
|
236
|
-
dispatchAction(details) {
|
|
237
|
-
if (this._actionHandlers.has(details.action)) {
|
|
238
|
-
const handler = this._actionHandlers.get(details.action);
|
|
239
|
-
this._actionThrottler.throttled(details, handler);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
exports.LiveMediaSessionClass = LiveMediaSessionClass;
|
|
244
|
-
/**
|
|
245
|
-
* The objects fluid type name.
|
|
246
|
-
*/
|
|
247
|
-
LiveMediaSessionClass.TypeName = `@microsoft/fluid-media:SharedMediaSession`;
|
|
248
|
-
/**
|
|
249
|
-
* The objects fluid type factory.
|
|
250
|
-
*/
|
|
251
|
-
LiveMediaSessionClass.factory = new legacy_1.DataObjectFactory(LiveMediaSessionClass.TypeName, LiveMediaSessionClass, [], {});
|
|
252
|
-
// eslint-disable-next-line no-redeclare
|
|
253
|
-
exports.LiveMediaSession = (() => {
|
|
254
|
-
const kind = LiveMediaSessionClass;
|
|
255
|
-
return kind;
|
|
256
|
-
})();
|
|
257
|
-
/**
|
|
258
|
-
* Register `LiveMediaSession` as an available `SharedObjectKind` for use in dynamic object loading.
|
|
259
|
-
*/
|
|
260
|
-
internal_1.DynamicObjectRegistry.registerObjectClass(exports.LiveMediaSession, exports.LiveMediaSession.TypeName);
|
|
261
|
-
//# sourceMappingURL=LiveMediaSession.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LiveMediaSession.js","sourceRoot":"","sources":["../../src/LiveMediaSession.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;AAEH,4DAAoE;AACpE,sDAK+B;AAC/B,6DAGwC;AACxC,6EAAuE;AAEvE,2EAKqC;AACrC,qFAG0C;AAE1C,6EAAuE;AAGvE,qDAAwD;AAExD;;GAEG;AACH,MAAa,qBAAsB,SAAQ,yBAAc;IAAzD;;QACY,qBAAgB,GACpB,IAAI,oDAAuB,EAAE,CAAC;QAIjB,oBAAe,GAG5B,IAAI,GAAG,EAAE,CAAC;QAKN,oBAAe,GAAW,CAAC,CAAC;IAqSxC,CAAC;IApRG;;;;;;;;;;;;OAYG;IACH,IAAW,eAAe;QACtB,OAAO,IAAI,CAAC,gBAAgB,CAAC;IACjC,CAAC;IAED,IAAW,eAAe,CAAC,KAAkC;QACzD,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QAClB,OAAO,IAAI,CAAC,YAAa,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAQ,CAAC;IACzB,CAAC;IAED;;;;;;;;OAQG;IACU,UAAU,CAAC,YAAgC;;YACpD,mDAAsC,CAAC,MAAM,CACzC,6BAA6B,EAC7B,IAAI,CAAC,eAAe,CACvB,CAAC;YACF,qCAAqC;YACrC,IAAI,CAAC,eAAe,GAAG,0CAA6B,CAAC,OAAO,CAAC;YAC7D,IAAI,YAAY,EAAE,CAAC;gBACf,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC;YACtC,CAAC;YACD,IAAI,CAAC;gBACD,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACpD,CAAC;YAAC,OAAO,KAAc,EAAE,CAAC;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