You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Move SDPStreamMetadataPurpose into callEventTypes.ts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -28,8 +28,15 @@ import MatrixEvent from '../models/event';
|
|||||||
import {EventType} from '../@types/event';
|
import {EventType} from '../@types/event';
|
||||||
import { RoomMember } from '../models/room-member';
|
import { RoomMember } from '../models/room-member';
|
||||||
import { randomString } from '../randomstring';
|
import { randomString } from '../randomstring';
|
||||||
import { MCallReplacesEvent, MCallAnswer, MCallOfferNegotiate, CallCapabilities } from './callEventTypes';
|
import {
|
||||||
import { CallFeed, SDPStreamMetadataPurpose } from './callFeed';
|
MCallReplacesEvent,
|
||||||
|
MCallAnswer,
|
||||||
|
MCallOfferNegotiate,
|
||||||
|
CallCapabilities,
|
||||||
|
SDPStreamMetadataPurpose,
|
||||||
|
} from './callEventTypes';
|
||||||
|
import { CallFeed } from './callFeed';
|
||||||
|
|
||||||
|
|
||||||
// events: hangup, error(err), replaced(call), state(state, oldState)
|
// events: hangup, error(err), replaced(call), state(state, oldState)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
// allow camelcase as these are events type that go onto the wire
|
// allow camelcase as these are events type that go onto the wire
|
||||||
/* eslint-disable camelcase */
|
/* eslint-disable camelcase */
|
||||||
|
|
||||||
|
export enum SDPStreamMetadataPurpose {
|
||||||
|
Usermedia = "m.usermedia",
|
||||||
|
Screenshare = "m.screenshare",
|
||||||
|
}
|
||||||
|
|
||||||
interface CallOfferAnswer {
|
interface CallOfferAnswer {
|
||||||
type: string;
|
type: string;
|
||||||
sdp: string;
|
sdp: string;
|
||||||
|
|||||||
@@ -15,11 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import EventEmitter from "events";
|
import EventEmitter from "events";
|
||||||
|
import {SDPStreamMetadataPurpose} from "./callEventTypes";
|
||||||
export enum SDPStreamMetadataPurpose {
|
|
||||||
Usermedia = "m.usermedia",
|
|
||||||
Screenshare = "m.screenshare",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum CallFeedEvent {
|
export enum CallFeedEvent {
|
||||||
NewStream = "new_stream",
|
NewStream = "new_stream",
|
||||||
|
|||||||
Reference in New Issue
Block a user