@microsoft/live-share-react 1.0.0-preview.9 → 1.0.2-preview.1
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/README.md +99 -35
- package/bin/index.d.ts +6 -6
- package/bin/index.js +6 -6
- package/bin/interfaces/LiveInterfaceExtensions.d.ts +25 -8
- package/bin/interfaces/LiveInterfaceExtensions.d.ts.map +1 -1
- package/bin/interfaces/LiveInterfaceExtensions.js +5 -5
- package/bin/interfaces/index.d.ts +1 -1
- package/bin/interfaces/index.js +1 -1
- package/bin/internal/errors.d.ts +26 -0
- package/bin/internal/errors.d.ts.map +1 -0
- package/bin/internal/errors.js +39 -0
- package/bin/internal/errors.js.map +1 -0
- package/bin/internal/index.d.ts +4 -0
- package/bin/internal/index.d.ts.map +1 -0
- package/bin/internal/index.js +4 -0
- package/bin/internal/index.js.map +1 -0
- package/bin/internal/type-guards.d.ts +6 -0
- package/bin/internal/type-guards.d.ts.map +1 -0
- package/bin/internal/type-guards.js +8 -0
- package/bin/internal/type-guards.js.map +1 -0
- package/bin/{internal-hooks → internal}/useSharedStateRegistry.d.ts +30 -30
- package/bin/internal/useSharedStateRegistry.d.ts.map +1 -0
- package/bin/{internal-hooks → internal}/useSharedStateRegistry.js +101 -99
- package/bin/internal/useSharedStateRegistry.js.map +1 -0
- package/bin/live-hooks/index.d.ts +6 -6
- package/bin/live-hooks/index.js +6 -6
- package/bin/live-hooks/useLiveCanvas.d.ts +27 -27
- package/bin/live-hooks/useLiveCanvas.d.ts.map +1 -1
- package/bin/live-hooks/useLiveCanvas.js +158 -166
- package/bin/live-hooks/useLiveCanvas.js.map +1 -1
- package/bin/live-hooks/useLiveEvent.d.ts +21 -21
- package/bin/live-hooks/useLiveEvent.d.ts.map +1 -1
- package/bin/live-hooks/useLiveEvent.js +100 -85
- package/bin/live-hooks/useLiveEvent.js.map +1 -1
- package/bin/live-hooks/useLivePresence.d.ts +25 -25
- package/bin/live-hooks/useLivePresence.d.ts.map +1 -1
- package/bin/live-hooks/useLivePresence.js +106 -92
- package/bin/live-hooks/useLivePresence.js.map +1 -1
- package/bin/live-hooks/useLiveState.d.ts +19 -19
- package/bin/live-hooks/useLiveState.d.ts.map +1 -1
- package/bin/live-hooks/useLiveState.js +79 -70
- package/bin/live-hooks/useLiveState.js.map +1 -1
- package/bin/live-hooks/useLiveTimer.d.ts +7 -7
- package/bin/live-hooks/useLiveTimer.d.ts.map +1 -1
- package/bin/live-hooks/useLiveTimer.js +150 -131
- package/bin/live-hooks/useLiveTimer.js.map +1 -1
- package/bin/live-hooks/useMediaSynchronizer.d.ts +22 -22
- package/bin/live-hooks/useMediaSynchronizer.d.ts.map +1 -1
- package/bin/live-hooks/useMediaSynchronizer.js +206 -161
- package/bin/live-hooks/useMediaSynchronizer.js.map +1 -1
- package/bin/providers/AzureProvider.d.ts +33 -33
- package/bin/providers/AzureProvider.d.ts.map +1 -1
- package/bin/providers/AzureProvider.js +101 -101
- package/bin/providers/AzureProvider.js.map +1 -1
- package/bin/providers/LiveShareProvider.d.ts +62 -41
- package/bin/providers/LiveShareProvider.d.ts.map +1 -1
- package/bin/providers/LiveShareProvider.js +68 -65
- package/bin/providers/LiveShareProvider.js.map +1 -1
- package/bin/providers/index.d.ts +2 -2
- package/bin/providers/index.js +2 -2
- package/bin/shared-hooks/index.d.ts +3 -4
- package/bin/shared-hooks/index.d.ts.map +1 -1
- package/bin/shared-hooks/index.js +3 -4
- package/bin/shared-hooks/index.js.map +1 -1
- package/bin/shared-hooks/useDynamicDDS.d.ts +18 -18
- package/bin/shared-hooks/useDynamicDDS.d.ts.map +1 -1
- package/bin/shared-hooks/useDynamicDDS.js +67 -67
- package/bin/shared-hooks/useDynamicDDS.js.map +1 -1
- package/bin/shared-hooks/useSharedMap.d.ts +21 -21
- package/bin/shared-hooks/useSharedMap.d.ts.map +1 -1
- package/bin/shared-hooks/useSharedMap.js +112 -105
- package/bin/shared-hooks/useSharedMap.js.map +1 -1
- package/bin/shared-hooks/useSharedState.d.ts +20 -20
- package/bin/shared-hooks/useSharedState.d.ts.map +1 -1
- package/bin/shared-hooks/useSharedState.js +72 -62
- package/bin/shared-hooks/useSharedState.js.map +1 -1
- package/bin/types/ActionTypes.d.ts +111 -29
- package/bin/types/ActionTypes.d.ts.map +1 -1
- package/bin/types/ActionTypes.js +5 -5
- package/bin/types/PropTypes.d.ts +7 -7
- package/bin/types/PropTypes.d.ts.map +1 -1
- package/bin/types/PropTypes.js +5 -5
- package/bin/types/ResultTypes.d.ts +174 -162
- package/bin/types/ResultTypes.d.ts.map +1 -1
- package/bin/types/ResultTypes.js +5 -5
- package/bin/types/index.d.ts +3 -3
- package/bin/types/index.js +3 -3
- package/bin/utils/index.d.ts +1 -1
- package/bin/utils/index.js +1 -1
- package/bin/utils/type-check.d.ts +14 -14
- package/bin/utils/type-check.js +53 -53
- package/package.json +18 -14
- package/src/interfaces/LiveInterfaceExtensions.ts +19 -2
- package/src/internal/errors.ts +48 -0
- package/src/internal/index.ts +3 -0
- package/src/internal/type-guards.ts +9 -0
- package/src/{internal-hooks → internal}/useSharedStateRegistry.ts +6 -5
- package/src/live-hooks/useLiveCanvas.ts +12 -20
- package/src/live-hooks/useLiveEvent.ts +41 -22
- package/src/live-hooks/useLivePresence.ts +52 -33
- package/src/live-hooks/useLiveState.ts +48 -53
- package/src/live-hooks/useLiveTimer.ts +50 -41
- package/src/live-hooks/useMediaSynchronizer.ts +108 -41
- package/src/providers/AzureProvider.tsx +3 -8
- package/src/providers/LiveShareProvider.tsx +46 -16
- package/src/shared-hooks/index.ts +0 -1
- package/src/shared-hooks/useDynamicDDS.ts +15 -8
- package/src/shared-hooks/useSharedMap.ts +48 -22
- package/src/shared-hooks/useSharedState.ts +15 -5
- package/src/types/ActionTypes.ts +100 -15
- package/src/types/ResultTypes.ts +23 -9
- package/bin/internal-hooks/index.d.ts +0 -2
- package/bin/internal-hooks/index.d.ts.map +0 -1
- package/bin/internal-hooks/index.js +0 -2
- package/bin/internal-hooks/index.js.map +0 -1
- package/bin/internal-hooks/useDynamicDDSRegistry.d.ts +0 -14
- package/bin/internal-hooks/useDynamicDDSRegistry.d.ts.map +0 -1
- package/bin/internal-hooks/useDynamicDDSRegistry.js +0 -142
- package/bin/internal-hooks/useDynamicDDSRegistry.js.map +0 -1
- package/bin/internal-hooks/useSharedStateRegistry.d.ts.map +0 -1
- package/bin/internal-hooks/useSharedStateRegistry.js.map +0 -1
- package/bin/internal-hooks/useStateRef.d.ts +0 -7
- package/bin/internal-hooks/useStateRef.d.ts.map +0 -1
- package/bin/internal-hooks/useStateRef.js +0 -15
- package/bin/internal-hooks/useStateRef.js.map +0 -1
- package/bin/live-hooks/useLiveAICompletion.d.ts +0 -29
- package/bin/live-hooks/useLiveAICompletion.d.ts.map +0 -1
- package/bin/live-hooks/useLiveAICompletion.js +0 -186
- package/bin/live-hooks/useLiveAICompletion.js.map +0 -1
- package/bin/live-hooks/useLiveCoPilot.d.ts +0 -28
- package/bin/live-hooks/useLiveCoPilot.d.ts.map +0 -1
- package/bin/live-hooks/useLiveCoPilot.js +0 -178
- package/bin/live-hooks/useLiveCoPilot.js.map +0 -1
- package/bin/live-share-turbo/AzureTurboClient.d.ts +0 -39
- package/bin/live-share-turbo/AzureTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/AzureTurboClient.js +0 -56
- package/bin/live-share-turbo/AzureTurboClient.js.map +0 -1
- package/bin/live-share-turbo/LiveShareTurboClient.d.ts +0 -53
- package/bin/live-share-turbo/LiveShareTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/LiveShareTurboClient.js +0 -69
- package/bin/live-share-turbo/LiveShareTurboClient.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboDataObject.d.ts +0 -31
- package/bin/live-share-turbo/dds-objects/TurboDataObject.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboDataObject.js +0 -75
- package/bin/live-share-turbo/dds-objects/TurboDataObject.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.d.ts +0 -48
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.js +0 -104
- package/bin/live-share-turbo/dds-objects/TurboLiveCanvas.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.d.ts +0 -28
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.js +0 -68
- package/bin/live-share-turbo/dds-objects/TurboLiveEvent.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.d.ts +0 -60
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.js +0 -111
- package/bin/live-share-turbo/dds-objects/TurboLiveMediaSession.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.d.ts +0 -77
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.js +0 -137
- package/bin/live-share-turbo/dds-objects/TurboLivePresence.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveState.d.ts +0 -30
- package/bin/live-share-turbo/dds-objects/TurboLiveState.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboLiveState.js +0 -74
- package/bin/live-share-turbo/dds-objects/TurboLiveState.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.d.ts +0 -61
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.js +0 -108
- package/bin/live-share-turbo/dds-objects/TurboSharedMap.js.map +0 -1
- package/bin/live-share-turbo/dds-objects/index.d.ts +0 -8
- package/bin/live-share-turbo/dds-objects/index.d.ts.map +0 -1
- package/bin/live-share-turbo/dds-objects/index.js +0 -8
- package/bin/live-share-turbo/dds-objects/index.js.map +0 -1
- package/bin/live-share-turbo/index.d.ts +0 -5
- package/bin/live-share-turbo/index.d.ts.map +0 -1
- package/bin/live-share-turbo/index.js +0 -5
- package/bin/live-share-turbo/index.js.map +0 -1
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.d.ts +0 -15
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.js +0 -2
- package/bin/live-share-turbo/interfaces/IFluidTurboClient.js.map +0 -1
- package/bin/live-share-turbo/interfaces/index.d.ts +0 -3
- package/bin/live-share-turbo/interfaces/index.d.ts.map +0 -1
- package/bin/live-share-turbo/interfaces/index.js +0 -3
- package/bin/live-share-turbo/interfaces/index.js.map +0 -1
- package/bin/live-share-turbo/internals/FluidTurboClient.d.ts +0 -39
- package/bin/live-share-turbo/internals/FluidTurboClient.d.ts.map +0 -1
- package/bin/live-share-turbo/internals/FluidTurboClient.js +0 -121
- package/bin/live-share-turbo/internals/FluidTurboClient.js.map +0 -1
- package/bin/live-share-turbo/internals/index.d.ts +0 -2
- package/bin/live-share-turbo/internals/index.d.ts.map +0 -1
- package/bin/live-share-turbo/internals/index.js +0 -2
- package/bin/live-share-turbo/internals/index.js.map +0 -1
- package/bin/live-share-turbo/internals/types.d.ts +0 -4
- package/bin/live-share-turbo/internals/types.d.ts.map +0 -1
- package/bin/live-share-turbo/internals/types.js +0 -2
- package/bin/live-share-turbo/internals/types.js.map +0 -1
- package/bin/providers/FluidContextProvider.d.ts +0 -34
- package/bin/providers/FluidContextProvider.d.ts.map +0 -1
- package/bin/providers/FluidContextProvider.js +0 -99
- package/bin/providers/FluidContextProvider.js.map +0 -1
- package/bin/providers/LiveShareContextProvider.d.ts +0 -42
- package/bin/providers/LiveShareContextProvider.d.ts.map +0 -1
- package/bin/providers/LiveShareContextProvider.js +0 -63
- package/bin/providers/LiveShareContextProvider.js.map +0 -1
- package/bin/shared-hooks/useLockedTask.d.ts +0 -11
- package/bin/shared-hooks/useLockedTask.d.ts.map +0 -1
- package/bin/shared-hooks/useLockedTask.js +0 -82
- package/bin/shared-hooks/useLockedTask.js.map +0 -1
- package/bin/shared-hooks/useTaskManager.d.ts +0 -13
- package/bin/shared-hooks/useTaskManager.d.ts.map +0 -1
- package/bin/shared-hooks/useTaskManager.js +0 -86
- package/bin/shared-hooks/useTaskManager.js.map +0 -1
- package/bin/utils/getContainerSchema.d.ts +0 -8
- package/bin/utils/getContainerSchema.d.ts.map +0 -1
- package/bin/utils/getContainerSchema.js +0 -41
- package/bin/utils/getContainerSchema.js.map +0 -1
- package/src/internal-hooks/index.ts +0 -1
- package/src/shared-hooks/useTaskManager.ts +0 -82
- package/tinylicious.log +0 -4
|
@@ -1,162 +1,207 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the Microsoft Live Share SDK License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the Microsoft Live Share SDK License.
|
|
4
|
+
*/
|
|
5
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
8
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
9
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
10
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
11
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
import React from "react";
|
|
15
|
+
import { LiveMediaSession, } from "@microsoft/live-share-media";
|
|
16
|
+
import { isExtendedMediaMetadata, isMediaElement, isRefObject } from "../utils";
|
|
17
|
+
import { useDynamicDDS } from "../shared-hooks";
|
|
18
|
+
import { useFluidObjectsContext } from "../providers";
|
|
19
|
+
import { ActionContainerNotJoinedError, ActionLiveDataObjectUndefinedError, } from "../internal";
|
|
20
|
+
/**
|
|
21
|
+
* React hook for using a Live Share media `MediaPlayerSynchronizer`.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Use this hook if you want to synchronize the playback position of a video or audio element during a Live Share session.
|
|
25
|
+
*
|
|
26
|
+
* @param uniqueKey uniqueKey value for the `LiveMediaSession` DDS object used by `MediaPlayerSynchronizer`.
|
|
27
|
+
* @param mediaPlayerElement React RefObject containing object/element conforming to IMediaPlayer interface, `IMediaPlayer` object, or string id for <video> / <audio> element.
|
|
28
|
+
* @param initialTrack initial track to load. Either ExtendedMediaMetadata, trackId string, or null.
|
|
29
|
+
* @param allowedRoles Optional. Array of user roles that are eligible to modify group playback state.
|
|
30
|
+
* @param viewOnly Optional. Flag for whether or not the media synchronizer should be in viewOnly mode.
|
|
31
|
+
* @returns IUseMediaSynchronizerResults object.
|
|
32
|
+
*/
|
|
33
|
+
export function useMediaSynchronizer(uniqueKey, mediaPlayerElement, initialTrack, allowedRoles, viewOnly) {
|
|
34
|
+
/**
|
|
35
|
+
* User facing media synchronizer and non-user facing setter
|
|
36
|
+
*/
|
|
37
|
+
const [mediaSynchronizer, setMediaSynchronizer] = React.useState();
|
|
38
|
+
/**
|
|
39
|
+
* Suspension object and setter
|
|
40
|
+
*/
|
|
41
|
+
const [suspension, setSuspension] = React.useState();
|
|
42
|
+
/**
|
|
43
|
+
* User facing: dynamically load the LiveMediaSession DDS for the given unique key.
|
|
44
|
+
*/
|
|
45
|
+
const { dds: mediaSession } = useDynamicDDS(uniqueKey, LiveMediaSession);
|
|
46
|
+
const { container } = useFluidObjectsContext();
|
|
47
|
+
/**
|
|
48
|
+
* Play callback
|
|
49
|
+
*/
|
|
50
|
+
const play = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
if (!container) {
|
|
52
|
+
throw new ActionContainerNotJoinedError("mediaSynchronizer", "play");
|
|
53
|
+
}
|
|
54
|
+
if (mediaSynchronizer === undefined) {
|
|
55
|
+
throw new ActionLiveDataObjectUndefinedError("mediaSynchronizer", "play");
|
|
56
|
+
}
|
|
57
|
+
return yield mediaSynchronizer.play();
|
|
58
|
+
}), [container, mediaSynchronizer]);
|
|
59
|
+
/**
|
|
60
|
+
* Pause callback
|
|
61
|
+
*/
|
|
62
|
+
const pause = React.useCallback(() => __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
if (!container) {
|
|
64
|
+
throw new ActionContainerNotJoinedError("mediaSynchronizer", "pause");
|
|
65
|
+
}
|
|
66
|
+
if (mediaSynchronizer === undefined) {
|
|
67
|
+
throw new ActionLiveDataObjectUndefinedError("mediaSynchronizer", "pause");
|
|
68
|
+
}
|
|
69
|
+
return yield mediaSynchronizer.pause();
|
|
70
|
+
}), [container, mediaSynchronizer]);
|
|
71
|
+
/**
|
|
72
|
+
* User facing: seek callback
|
|
73
|
+
*/
|
|
74
|
+
const seekTo = React.useCallback((time) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
if (!container) {
|
|
76
|
+
throw new ActionContainerNotJoinedError("mediaSynchronizer", "seekTo");
|
|
77
|
+
}
|
|
78
|
+
if (mediaSynchronizer === undefined) {
|
|
79
|
+
throw new ActionLiveDataObjectUndefinedError("mediaSynchronizer", "seekTo");
|
|
80
|
+
}
|
|
81
|
+
return yield mediaSynchronizer.seekTo(time);
|
|
82
|
+
}), [container, mediaSynchronizer]);
|
|
83
|
+
/**
|
|
84
|
+
* User facing: set track callback
|
|
85
|
+
*/
|
|
86
|
+
const setTrack = React.useCallback((track) => __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
if (!container) {
|
|
88
|
+
throw new ActionContainerNotJoinedError("mediaSynchronizer", "setTrack");
|
|
89
|
+
}
|
|
90
|
+
if (mediaSynchronizer === undefined) {
|
|
91
|
+
throw new ActionLiveDataObjectUndefinedError("mediaSynchronizer", "setTrack");
|
|
92
|
+
}
|
|
93
|
+
if (isExtendedMediaMetadata(track)) {
|
|
94
|
+
return yield mediaSynchronizer.setTrack(track);
|
|
95
|
+
}
|
|
96
|
+
else if (typeof track === "string") {
|
|
97
|
+
return yield mediaSynchronizer.setTrack({
|
|
98
|
+
trackIdentifier: track,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}), [container, mediaSynchronizer]);
|
|
102
|
+
/**
|
|
103
|
+
* User facing: create a new suspension and set it locally to state
|
|
104
|
+
*/
|
|
105
|
+
const beginSuspension = React.useCallback((waitPoint) => {
|
|
106
|
+
const suspension = mediaSession === null || mediaSession === void 0 ? void 0 : mediaSession.coordinator.beginSuspension(waitPoint);
|
|
107
|
+
setSuspension(suspension);
|
|
108
|
+
}, [mediaSession]);
|
|
109
|
+
/**
|
|
110
|
+
* User facing: if a suspension is active, end it. Called when "Follow presenter" button is clicked.
|
|
111
|
+
*/
|
|
112
|
+
const endSuspension = React.useCallback(() => {
|
|
113
|
+
suspension === null || suspension === void 0 ? void 0 : suspension.end();
|
|
114
|
+
setSuspension(undefined);
|
|
115
|
+
}, [suspension]);
|
|
116
|
+
/**
|
|
117
|
+
* Setup change listeners and start `LiveMediaSession` if needed
|
|
118
|
+
*/
|
|
119
|
+
React.useEffect(() => {
|
|
120
|
+
if (mediaSession === undefined || !mediaPlayerElement)
|
|
121
|
+
return;
|
|
122
|
+
let mounted = true;
|
|
123
|
+
// Query the HTML5 media element from the document and set reference
|
|
124
|
+
let mediaPlayer;
|
|
125
|
+
if (isRefObject(mediaPlayerElement)) {
|
|
126
|
+
if (!mediaPlayerElement.current)
|
|
127
|
+
return;
|
|
128
|
+
mediaPlayer = mediaPlayerElement.current;
|
|
129
|
+
}
|
|
130
|
+
else if (typeof mediaPlayerElement === "string") {
|
|
131
|
+
const mediaElement = document.getElementById(mediaPlayerElement);
|
|
132
|
+
if (!isMediaElement(mediaElement))
|
|
133
|
+
return;
|
|
134
|
+
mediaPlayer = mediaElement;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
mediaPlayer = mediaPlayerElement;
|
|
138
|
+
}
|
|
139
|
+
if (initialTrack) {
|
|
140
|
+
// If supported type and not null, set the initial src
|
|
141
|
+
if (isExtendedMediaMetadata(initialTrack)) {
|
|
142
|
+
mediaPlayer.src = initialTrack.trackIdentifier;
|
|
143
|
+
}
|
|
144
|
+
else if (typeof initialTrack === "string") {
|
|
145
|
+
mediaPlayer.src = initialTrack;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
// Begin synchronizing a MediaSynchronizer for the player
|
|
149
|
+
const synchronizer = mediaSession.synchronize(mediaPlayer);
|
|
150
|
+
if (viewOnly !== undefined) {
|
|
151
|
+
// Set synchronizer to view only mode provided by developer
|
|
152
|
+
synchronizer.viewOnly = viewOnly;
|
|
153
|
+
}
|
|
154
|
+
if (!mediaSession.isInitialized) {
|
|
155
|
+
// Start synchronizing the media session
|
|
156
|
+
mediaSession.initialize(allowedRoles !== null && allowedRoles !== void 0 ? allowedRoles : []);
|
|
157
|
+
}
|
|
158
|
+
else if (initialTrack) {
|
|
159
|
+
mediaSession.onLocalUserAllowed(() => __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
if (!mounted)
|
|
161
|
+
return;
|
|
162
|
+
try {
|
|
163
|
+
if (isExtendedMediaMetadata(initialTrack)) {
|
|
164
|
+
yield synchronizer.setTrack(initialTrack);
|
|
165
|
+
}
|
|
166
|
+
else if (typeof initialTrack === "string") {
|
|
167
|
+
yield synchronizer.setTrack({
|
|
168
|
+
trackIdentifier: initialTrack,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
catch (err) {
|
|
173
|
+
console.error(err);
|
|
174
|
+
}
|
|
175
|
+
}));
|
|
176
|
+
}
|
|
177
|
+
setMediaSynchronizer(synchronizer);
|
|
178
|
+
return () => {
|
|
179
|
+
mounted = false;
|
|
180
|
+
synchronizer.removeAllListeners();
|
|
181
|
+
mediaSession.removeAllListeners();
|
|
182
|
+
synchronizer === null || synchronizer === void 0 ? void 0 : synchronizer.end();
|
|
183
|
+
mediaSession === null || mediaSession === void 0 ? void 0 : mediaSession.dispose();
|
|
184
|
+
};
|
|
185
|
+
}, [mediaSession, mediaPlayerElement]);
|
|
186
|
+
/**
|
|
187
|
+
* Change view in media synchronizer only if prop changes
|
|
188
|
+
*/
|
|
189
|
+
React.useEffect(() => {
|
|
190
|
+
if ((mediaSynchronizer === null || mediaSynchronizer === void 0 ? void 0 : mediaSynchronizer.viewOnly) !== undefined &&
|
|
191
|
+
viewOnly !== undefined &&
|
|
192
|
+
mediaSynchronizer.viewOnly !== viewOnly) {
|
|
193
|
+
mediaSynchronizer.viewOnly = !!viewOnly;
|
|
194
|
+
}
|
|
195
|
+
}, [viewOnly, mediaSynchronizer === null || mediaSynchronizer === void 0 ? void 0 : mediaSynchronizer.viewOnly]);
|
|
196
|
+
return {
|
|
197
|
+
suspended: !!suspension,
|
|
198
|
+
mediaSynchronizer,
|
|
199
|
+
play,
|
|
200
|
+
pause,
|
|
201
|
+
seekTo,
|
|
202
|
+
setTrack,
|
|
203
|
+
beginSuspension,
|
|
204
|
+
endSuspension,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
162
207
|
//# sourceMappingURL=useMediaSynchronizer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaSynchronizer.js","sourceRoot":"","sources":["../../src/live-hooks/useMediaSynchronizer.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"useMediaSynchronizer.js","sourceRoot":"","sources":["../../src/live-hooks/useMediaSynchronizer.ts"],"names":[],"mappings":"AAAA;;;GAGG;;;;;;;;;;AAGH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAIH,gBAAgB,GAGnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EACH,6BAA6B,EAC7B,kCAAkC,GACrC,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,oBAAoB,CAChC,SAAiB,EACjB,kBAIU,EACV,YAA4D,EAC5D,YAAgC,EAChC,QAAkB;IAElB;;OAEG;IACH,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,KAAK,CAAC,QAAQ,EAE7D,CAAC;IACJ;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,KAAK,CAAC,QAAQ,EAE/C,CAAC;IACJ;;OAEG;IACH,MAA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QACvB,iBAAiB;QACjB,IAAI;QACJ,KAAK;QACL,MAAM;QACN,QAAQ;QACR,eAAe;QACf,aAAa;KAChB,CAAC;AACN,CAAC"}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the Microsoft Live Share SDK License.
|
|
4
|
-
*/
|
|
5
|
-
import { IFluidContainer, LoadableObjectClassRecord } from "fluid-framework";
|
|
6
|
-
import React from "react";
|
|
7
|
-
import { AzureClientProps, AzureContainerServices } from "@fluidframework/azure-client";
|
|
8
|
-
import { IAzureContainerResults } from "../types";
|
|
9
|
-
import { ISharedStateRegistryResponse } from "../internal
|
|
10
|
-
import { IFluidTurboClient } from "@microsoft/live-share-turbo";
|
|
11
|
-
interface IFluidContext extends ISharedStateRegistryResponse {
|
|
12
|
-
clientRef: React.MutableRefObject<IFluidTurboClient>;
|
|
13
|
-
container: IFluidContainer | undefined;
|
|
14
|
-
services: AzureContainerServices | undefined;
|
|
15
|
-
joinError: Error | undefined;
|
|
16
|
-
getContainer: (containerId: string, initialObjects?: LoadableObjectClassRecord) => Promise<IAzureContainerResults>;
|
|
17
|
-
createContainer: (initialObjects?: LoadableObjectClassRecord, onInitializeContainer?: (container: IFluidContainer) => void) => Promise<IAzureContainerResults>;
|
|
18
|
-
}
|
|
19
|
-
export declare const FluidContext: React.Context<IFluidContext>;
|
|
20
|
-
export declare const useFluidObjectsContext: () => IFluidContext;
|
|
21
|
-
interface IAzureProviderProps {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
clientOptions: AzureClientProps;
|
|
24
|
-
containerId?: string;
|
|
25
|
-
createOnLoad?: boolean;
|
|
26
|
-
initialObjects?: LoadableObjectClassRecord;
|
|
27
|
-
joinOnLoad?: boolean;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* React Context provider component for using Fluid data objects & joining/creating a Fluid document `AzureClient`.
|
|
31
|
-
*/
|
|
32
|
-
export declare const AzureProvider: React.FC<IAzureProviderProps>;
|
|
33
|
-
export {};
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the Microsoft Live Share SDK License.
|
|
4
|
+
*/
|
|
5
|
+
import { IFluidContainer, LoadableObjectClassRecord } from "fluid-framework";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { AzureClientProps, AzureContainerServices } from "@fluidframework/azure-client";
|
|
8
|
+
import { IAzureContainerResults } from "../types";
|
|
9
|
+
import { ISharedStateRegistryResponse } from "../internal";
|
|
10
|
+
import { IFluidTurboClient } from "@microsoft/live-share-turbo";
|
|
11
|
+
interface IFluidContext extends ISharedStateRegistryResponse {
|
|
12
|
+
clientRef: React.MutableRefObject<IFluidTurboClient>;
|
|
13
|
+
container: IFluidContainer | undefined;
|
|
14
|
+
services: AzureContainerServices | undefined;
|
|
15
|
+
joinError: Error | undefined;
|
|
16
|
+
getContainer: (containerId: string, initialObjects?: LoadableObjectClassRecord) => Promise<IAzureContainerResults>;
|
|
17
|
+
createContainer: (initialObjects?: LoadableObjectClassRecord, onInitializeContainer?: (container: IFluidContainer) => void) => Promise<IAzureContainerResults>;
|
|
18
|
+
}
|
|
19
|
+
export declare const FluidContext: React.Context<IFluidContext>;
|
|
20
|
+
export declare const useFluidObjectsContext: () => IFluidContext;
|
|
21
|
+
interface IAzureProviderProps {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
clientOptions: AzureClientProps;
|
|
24
|
+
containerId?: string;
|
|
25
|
+
createOnLoad?: boolean;
|
|
26
|
+
initialObjects?: LoadableObjectClassRecord;
|
|
27
|
+
joinOnLoad?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* React Context provider component for using Fluid data objects & joining/creating a Fluid document `AzureClient`.
|
|
31
|
+
*/
|
|
32
|
+
export declare const AzureProvider: React.FC<IAzureProviderProps>;
|
|
33
|
+
export {};
|
|
34
34
|
//# sourceMappingURL=AzureProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureProvider.d.ts","sourceRoot":"","sources":["../../src/providers/AzureProvider.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"AzureProvider.d.ts","sourceRoot":"","sources":["../../src/providers/AzureProvider.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACH,gBAAgB,EAChB,sBAAsB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EACH,4BAA4B,EAE/B,MAAM,aAAa,CAAC;AACrB,OAAO,EAEH,iBAAiB,EACpB,MAAM,6BAA6B,CAAC;AAErC,UAAU,aAAc,SAAQ,4BAA4B;IACxD,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IACrD,SAAS,EAAE,eAAe,GAAG,SAAS,CAAC;IACvC,QAAQ,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC7C,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC;IAC7B,YAAY,EAAE,CACV,WAAW,EAAE,MAAM,EACnB,cAAc,CAAC,EAAE,yBAAyB,KACzC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACrC,eAAe,EAAE,CACb,cAAc,CAAC,EAAE,yBAAyB,EAC1C,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,eAAe,KAAK,IAAI,KAC3D,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,YAAY,8BAExB,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAO,aAGzC,CAAC;AAEF,UAAU,mBAAmB;IACzB,QAAQ,CAAC,EAAE,KAA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