Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « src « gstwebrtc-api « webrtc « net - github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 880b587c5ed5094d0b1c33a57b912617e008dbec (plain)
1
2
3
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
51
52
53
54
55
56
57
/*
 * gstwebrtc-api
 *
 * Copyright (C) 2022 Igalia S.L. <info@igalia.com>
 *   Author: Loïc Le Page <llepage@igalia.com>
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

import "webrtc-adapter";
import { gstWebRTCAPI, start } from "./gstwebrtc-api";

/**
 * @external MediaStream
 * @see https://developer.mozilla.org/en-US/docs/Web/API/MediaStream
 */
/**
 * @external RTCPeerConnection
 * @see https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection
 */
/**
 * @external RTCDataChannel
 * @see https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel
 */
/**
 * @external EventTarget
 * @see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget
 */
/**
 * @external Event
 * @see https://developer.mozilla.org/en-US/docs/Web/API/Event
 */
/**
 * @external ErrorEvent
 * @see https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent
 */
/**
 * @external CustomEvent
 * @see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent
 */
/**
 * @external Error
 * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
 */
/**
 * @external HTMLVideoElement
 * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement
 */

if (!window.gstWebRTCAPI) {
  window.gstWebRTCAPI = gstWebRTCAPI;
  window.addEventListener("DOMContentLoaded", () => {
    start(window.gstWebRTCConfig);
  });
}