forked from EpicGames/PixelStreamingInfrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToStreamerMessagesController.ts
62 lines (53 loc) · 1.59 KB
/
ToStreamerMessagesController.ts
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
58
59
60
61
62
// Copyright Epic Games, Inc. All Rights Reserved.
import { SendMessageController } from './SendMessageController';
export class ToStreamerMessagesController {
sendMessageController: SendMessageController;
/**
* @param sendMessageController - Stream message controller instance
*/
constructor(sendMessageController: SendMessageController) {
this.sendMessageController = sendMessageController;
}
/**
* Send Request to Take Quality Control to the UE Instance
*/
SendRequestQualityControl() {
this.sendMessageController.sendMessageToStreamer(
'RequestQualityControl'
);
}
/**
* Send Max FPS Request to the UE Instance
*/
SendMaxFpsRequest() {
this.sendMessageController.sendMessageToStreamer('FpsRequest');
}
/**
* Send Average Bitrate Request to the UE Instance
*/
SendAverageBitrateRequest() {
this.sendMessageController.sendMessageToStreamer(
'AverageBitrateRequest'
);
}
/**
* Send a Start Streaming Message to the UE Instance
*/
SendStartStreaming() {
this.sendMessageController.sendMessageToStreamer('StartStreaming');
}
/**
* Send a Stop Streaming Message to the UE Instance
*/
SendStopStreaming() {
this.sendMessageController.sendMessageToStreamer('StopStreaming');
}
/**
* Send a Request Initial Settings to the UE Instance
*/
SendRequestInitialSettings() {
this.sendMessageController.sendMessageToStreamer(
'RequestInitialSettings'
);
}
}