@dialtribe/react-sdk 0.1.0-alpha.10 → 0.1.0-alpha.11
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/dist/{broadcast-player-CEAnuf6t.d.mts → broadcast-player-DnnXgWin.d.mts} +3 -2
- package/dist/{broadcast-player-CEAnuf6t.d.ts → broadcast-player-DnnXgWin.d.ts} +3 -2
- package/dist/broadcast-player.d.mts +1 -1
- package/dist/broadcast-player.d.ts +1 -1
- package/dist/broadcast-player.js +5 -4
- package/dist/broadcast-player.js.map +1 -1
- package/dist/broadcast-player.mjs +5 -4
- package/dist/broadcast-player.mjs.map +1 -1
- package/dist/broadcast-streamer.d.mts +1 -1
- package/dist/broadcast-streamer.d.ts +1 -1
- package/dist/broadcast-streamer.js +5 -4
- package/dist/broadcast-streamer.js.map +1 -1
- package/dist/broadcast-streamer.mjs +5 -4
- package/dist/broadcast-streamer.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { HelloWorld, HelloWorldProps } from './hello-world.mjs';
|
|
2
|
-
export { A as ApiClientConfig, i as AudioWaveform, j as Broadcast, B as BroadcastPlayer, h as BroadcastPlayerErrorBoundary, f as BroadcastPlayerModal, g as BroadcastPlayerModalProps, e as BroadcastPlayerProps, C as CDN_DOMAIN, d as DIALTRIBE_API_BASE, c as DialTribeClient, a as DialTribeContextValue, D as DialTribeProvider, b as DialTribeProviderProps, E as ENDPOINTS, H as HTTP_STATUS, p as HttpStatusCode, L as LoadingSpinner, l as TranscriptData, k as TranscriptSegment, T as TranscriptWord, n as buildBroadcastCdnUrl, o as buildBroadcastS3KeyPrefix, m as formatTime, u as useDialTribe } from './broadcast-player-
|
|
2
|
+
export { A as ApiClientConfig, i as AudioWaveform, j as Broadcast, B as BroadcastPlayer, h as BroadcastPlayerErrorBoundary, f as BroadcastPlayerModal, g as BroadcastPlayerModalProps, e as BroadcastPlayerProps, C as CDN_DOMAIN, d as DIALTRIBE_API_BASE, c as DialTribeClient, a as DialTribeContextValue, D as DialTribeProvider, b as DialTribeProviderProps, E as ENDPOINTS, H as HTTP_STATUS, p as HttpStatusCode, L as LoadingSpinner, l as TranscriptData, k as TranscriptSegment, T as TranscriptWord, n as buildBroadcastCdnUrl, o as buildBroadcastS3KeyPrefix, m as formatTime, u as useDialTribe } from './broadcast-player-DnnXgWin.mjs';
|
|
3
3
|
export { BroadcastMode, BroadcastStreamer, BroadcastStreamerProps, DEFAULT_ENCODER_SERVER_URL, MediaConstraintsOptions, OpenBroadcastStreamerPopupOptions, PopupDimensions, StreamKeyDisplay, StreamKeyDisplayProps, StreamKeyInput, StreamKeyInputProps, StreamingControlState, StreamingControls, StreamingControlsProps, StreamingPreview, StreamingPreviewProps, WebSocketStreamer, WebSocketStreamerOptions, calculatePopupDimensions, checkBrowserCompatibility, getMediaConstraints, getMediaRecorderOptions, openBroadcastPopup, openBroadcastStreamerPopup } from './broadcast-streamer.mjs';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { HelloWorld, HelloWorldProps } from './hello-world.js';
|
|
2
|
-
export { A as ApiClientConfig, i as AudioWaveform, j as Broadcast, B as BroadcastPlayer, h as BroadcastPlayerErrorBoundary, f as BroadcastPlayerModal, g as BroadcastPlayerModalProps, e as BroadcastPlayerProps, C as CDN_DOMAIN, d as DIALTRIBE_API_BASE, c as DialTribeClient, a as DialTribeContextValue, D as DialTribeProvider, b as DialTribeProviderProps, E as ENDPOINTS, H as HTTP_STATUS, p as HttpStatusCode, L as LoadingSpinner, l as TranscriptData, k as TranscriptSegment, T as TranscriptWord, n as buildBroadcastCdnUrl, o as buildBroadcastS3KeyPrefix, m as formatTime, u as useDialTribe } from './broadcast-player-
|
|
2
|
+
export { A as ApiClientConfig, i as AudioWaveform, j as Broadcast, B as BroadcastPlayer, h as BroadcastPlayerErrorBoundary, f as BroadcastPlayerModal, g as BroadcastPlayerModalProps, e as BroadcastPlayerProps, C as CDN_DOMAIN, d as DIALTRIBE_API_BASE, c as DialTribeClient, a as DialTribeContextValue, D as DialTribeProvider, b as DialTribeProviderProps, E as ENDPOINTS, H as HTTP_STATUS, p as HttpStatusCode, L as LoadingSpinner, l as TranscriptData, k as TranscriptSegment, T as TranscriptWord, n as buildBroadcastCdnUrl, o as buildBroadcastS3KeyPrefix, m as formatTime, u as useDialTribe } from './broadcast-player-DnnXgWin.js';
|
|
3
3
|
export { BroadcastMode, BroadcastStreamer, BroadcastStreamerProps, DEFAULT_ENCODER_SERVER_URL, MediaConstraintsOptions, OpenBroadcastStreamerPopupOptions, PopupDimensions, StreamKeyDisplay, StreamKeyDisplayProps, StreamKeyInput, StreamKeyInputProps, StreamingControlState, StreamingControls, StreamingControlsProps, StreamingPreview, StreamingPreviewProps, WebSocketStreamer, WebSocketStreamerOptions, calculatePopupDimensions, checkBrowserCompatibility, getMediaConstraints, getMediaRecorderOptions, openBroadcastPopup, openBroadcastStreamerPopup } from './broadcast-streamer.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/dist/index.js
CHANGED
|
@@ -93,8 +93,9 @@ function getEndpoints(baseUrl = DIALTRIBE_API_BASE) {
|
|
|
93
93
|
broadcast: (id) => `${baseUrl}/broadcasts/${id}`,
|
|
94
94
|
contentPlay: `${baseUrl}/content/play`,
|
|
95
95
|
presignedUrl: `${baseUrl}/media/presigned-url`,
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
audienceStart: `${baseUrl}/audiences/start`,
|
|
97
|
+
audiencePing: `${baseUrl}/audiences/ping`,
|
|
98
|
+
sessionPing: `${baseUrl}/sessions/ping`
|
|
98
99
|
};
|
|
99
100
|
}
|
|
100
101
|
var ENDPOINTS = getEndpoints();
|
|
@@ -218,7 +219,7 @@ var DialTribeClient = class {
|
|
|
218
219
|
* @returns audienceId and optional resumePosition
|
|
219
220
|
*/
|
|
220
221
|
async startSession(params) {
|
|
221
|
-
const response = await this.fetch(this.endpoints.
|
|
222
|
+
const response = await this.fetch(this.endpoints.audienceStart, {
|
|
222
223
|
method: "POST",
|
|
223
224
|
body: JSON.stringify(params)
|
|
224
225
|
});
|
|
@@ -237,7 +238,7 @@ var DialTribeClient = class {
|
|
|
237
238
|
* - 3: UNMOUNT
|
|
238
239
|
*/
|
|
239
240
|
async sendSessionPing(params) {
|
|
240
|
-
const response = await this.fetch(this.endpoints.
|
|
241
|
+
const response = await this.fetch(this.endpoints.audiencePing, {
|
|
241
242
|
method: "POST",
|
|
242
243
|
body: JSON.stringify(params)
|
|
243
244
|
});
|