mirror of
https://github.com/stronk-dev/OrchestratorTracker.git
synced 2025-07-05 02:45:10 +02:00
Store ID in cache
This commit is contained in:
parent
bb6083962d
commit
e00d020c76
@ -7,6 +7,7 @@ service Orchestrator {
|
|||||||
|
|
||||||
// Called by the broadcaster to request transcoder info from an orchestrator.
|
// Called by the broadcaster to request transcoder info from an orchestrator.
|
||||||
rpc GetOrchestrator(OrchestratorRequest) returns (OrchestratorInfo);
|
rpc GetOrchestrator(OrchestratorRequest) returns (OrchestratorInfo);
|
||||||
|
rpc EndTranscodingSession(EndTranscodingSessionRequest) returns (EndTranscodingSessionResponse);
|
||||||
rpc Ping(PingPong) returns (PingPong);
|
rpc Ping(PingPong) returns (PingPong);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23,6 +24,14 @@ message PingPong {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sent by Broadcaster to Orchestrator to terminate the transcoding session and free resources (used for verification sessions)
|
||||||
|
message EndTranscodingSessionRequest {
|
||||||
|
// Data for transcoding authentication
|
||||||
|
AuthToken auth_token = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message EndTranscodingSessionResponse {
|
||||||
|
}
|
||||||
|
|
||||||
// This request is sent by the broadcaster in `GetTranscoder` to request
|
// This request is sent by the broadcaster in `GetTranscoder` to request
|
||||||
// information on which transcoder to use.
|
// information on which transcoder to use.
|
||||||
@ -221,6 +230,9 @@ message SegData {
|
|||||||
// Transcoding parameters specific to this segment
|
// Transcoding parameters specific to this segment
|
||||||
SegParameters segment_parameters = 37;
|
SegParameters segment_parameters = 37;
|
||||||
|
|
||||||
|
// Force HW Session Reinit
|
||||||
|
bool ForceSessionReinit = 38;
|
||||||
|
|
||||||
// [EXPERIMENTAL]
|
// [EXPERIMENTAL]
|
||||||
// Detector profiles to use
|
// Detector profiles to use
|
||||||
repeated DetectorProfile detector_profiles = 36;
|
repeated DetectorProfile detector_profiles = 36;
|
||||||
@ -292,6 +304,7 @@ message VideoProfile {
|
|||||||
CHROMA_444 = 2;
|
CHROMA_444 = 2;
|
||||||
}
|
}
|
||||||
ChromaSubsampling chromaFormat = 27;
|
ChromaSubsampling chromaFormat = 27;
|
||||||
|
uint32 quality = 28;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Individual transcoded segment data.
|
// Individual transcoded segment data.
|
||||||
|
@ -217,12 +217,14 @@ const onOrchUpdate = async function (id, obj, tag, region, livepeer_regions) {
|
|||||||
if (!newObj) {
|
if (!newObj) {
|
||||||
newObj = {
|
newObj = {
|
||||||
name: ensDomain,
|
name: ensDomain,
|
||||||
|
id: id.toLowerCase(),
|
||||||
regionalStats: {},
|
regionalStats: {},
|
||||||
instances: {},
|
instances: {},
|
||||||
leaderboardResults: { lastTime: now },
|
leaderboardResults: { lastTime: now },
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
newObj.name = ensDomain;
|
newObj.name = ensDomain;
|
||||||
|
newObj.id = id.toLowerCase()
|
||||||
}
|
}
|
||||||
// Find region entry or init it
|
// Find region entry or init it
|
||||||
let newRegion = newObj.regionalStats[tag];
|
let newRegion = newObj.regionalStats[tag];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user