UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DVRStreaming.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6
11// *** TODO: Consider renaming to remove the DVR aspect, since this doesn't do anything with recording
12
15{
16 bool bIsStreaming; // Are we currently broadcasting a video stream?
17 bool bIsStreamingEnabled; // Is streaming currently enabled or disabled?
18
19 // NOTE: These are valid only if IsStreaming is true, otherwise these are empty/0
20 int32 ViewerCount; // Current number of viewers
21 FString ProgramName; // The name of the program being streamed. Likely depends on the streaming provider
22 FString HLSUrl; // HTTP Live Streaming URL
23 FString ProviderUrl; // Url to the streaming provider's site
24};
25
27{
28public:
30
33
38 virtual void EnableStreaming(bool Enable) = 0;
39
40 // *** TODO: Consider adding support for a delegate here (as with the saved game system) for fetching hardware specific configuration data, since as data rates,
41 // *** server side recording permission, etc. Or make those INI file configurations
42
43 // *** TODO: Add more methods here as needed, e.g. social features for streaming or local recording control
44};
45
48{
49public:
50 FGenericDVRStreamingSystem () : bIsStreamingEnabled(false)
51 {
52 }
53
55 {
56 StreamingStatus.bIsStreaming = false;
57 StreamingStatus.bIsStreamingEnabled = bIsStreamingEnabled;
58
59 StreamingStatus.ViewerCount = 0;
60 StreamingStatus.ProgramName = TEXT("");
61 StreamingStatus.HLSUrl = TEXT("");
62 StreamingStatus.ProviderUrl = TEXT("");
63 }
64
65 virtual void EnableStreaming(bool Enable) override
66 {
67 bIsStreamingEnabled = Enable;
68 }
69
70private:
71 bool bIsStreamingEnabled;
72};
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
Definition DVRStreaming.h:48
virtual void EnableStreaming(bool Enable) override
Definition DVRStreaming.h:65
FGenericDVRStreamingSystem()
Definition DVRStreaming.h:50
virtual void GetStreamingStatus(FDVRStreamingStatus &StreamingStatus) override
Definition DVRStreaming.h:54
Definition DVRStreaming.h:27
virtual void GetStreamingStatus(FDVRStreamingStatus &StreamingStatus)=0
virtual void EnableStreaming(bool Enable)=0
virtual ~IDVRStreamingSystem()
Definition DVRStreaming.h:29
@ false
Definition radaudio_common.h:23
Definition DVRStreaming.h:15
FString HLSUrl
Definition DVRStreaming.h:22
int32 ViewerCount
Definition DVRStreaming.h:20
FString ProviderUrl
Definition DVRStreaming.h:23
bool bIsStreamingEnabled
Definition DVRStreaming.h:17
FString ProgramName
Definition DVRStreaming.h:21
bool bIsStreaming
Definition DVRStreaming.h:16