Navigation
API > API/Runtime > API/Runtime/LocalFileNetworkReplayStreaming
Inheritance Hierarchy
- INetworkReplayStreamer
- TSharedFromThis
- FLocalFileNetworkReplayStreamer
References
| Module | LocalFileNetworkReplayStreaming |
| Header | /Engine/Source/Runtime/NetworkReplayStreaming/LocalFileNetworkReplayStreaming/Public/LocalFileNetworkReplayStreaming.h |
| Include | #include "LocalFileNetworkReplayStreaming.h" |
Syntax
class FLocalFileNetworkReplayStreamer :
public INetworkReplayStreamer,
public TSharedFromThis< FLocalFileNetworkReplayStreamer >
Remarks
Local file streamer that supports playback/recording to a single file on disk
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< FQueuedLocalFileRequest, ESPMode::ThreadSafe > | ActiveRequest | ||
| bool | bCacheFileReadsInMemory | ||
| bool | bStopStreamingCalled | ||
| FLocalFileStreamFArchive | CheckpointAr | Handle to the archive that will read/write checkpoint files | |
| FLocalFileReplayInfo | CurrentReplayInfo | Currently playing or recording replay metadata | |
| FString | CurrentStreamName | Remember the name of the current stream, if any. | |
| TMap< int32, TSharedPtr< FCachedFileRequest > > | DeltaCheckpointCache | Map of checkpoint index to cached value | |
| FString | DemoSavePath | ||
| TMap< FString, TArray< uint8 > > | FileContentsCache | ||
| FLocalFileStreamFArchive | HeaderAr | Handle to the archive that will read/write the demo header | |
| uint32 | HighPriorityEndTime | ||
| double | LastChunkTime | ||
| int64 | LastGotoTimeInMS | ||
| double | LastRefreshTime | ||
| TArray< TSharedPtr< FQueuedLocalFileRequest, ESPMode::ThreadSafe > > | QueuedRequests | ||
| TMap< int32, TSharedPtr< FCachedFileRequest > > | RequestCache | Map of chunk index to cached value | |
| FLocalFileStreamFArchive | StreamAr | Handle to the archive that will read/write network packets | |
| int32 | StreamChunkIndex | ||
| int64 | StreamDataOffset | ||
| EReplayStreamerState | StreamerState | Overall state of the streamer | |
| TInterval< uint32 > | StreamTimeRange |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FLocalFileNetworkReplayStreamer
(
const FString& InDemoSavePath |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCachedFileRequestToQueue
(
EQueuedLocalFileRequestType::Type RequestType, |
||
| void | AddDelegateFileRequestToQueue
(
EQueuedLocalFileRequestType::Type RequestType, |
||
| void | AddDelegateFileRequestToQueue
(
EQueuedLocalFileRequestType::Type RequestType, |
||
| void | AddGenericRequestToQueue
(
EQueuedLocalFileRequestType::Type RequestType, |
||
| void | AddRequestToCache
(
int32 ChunkIndex, |
||
| void | AddRequestToCache
(
int32 ChunkIndex, |
||
| void | AddSimpleRequestToQueue
(
EQueuedLocalFileRequestType::Type RequestType, |
||
| bool | |||
| void | |||
| bool | CleanUpOldReplays
(
const FString& DemoPath, |
||
| void | |||
| bool | CompressBuffer
(
const TArray< uint8 >& InBuffer, |
||
| void | |||
| void | |||
| void | |||
| TSharedPtr< FArchive > | CreateLocalFileReader
(
const FString& InFilename |
||
| TSharedPtr< FArchive > | CreateLocalFileWriter
(
const FString& InFilename |
||
| TSharedPtr< FArchive > | CreateLocalFileWriterForOverwrite
(
const FString& InFilename |
||
| bool | DecompressBuffer
(
const TArray< uint8 >& InCompressed, |
||
| bool | DecryptBuffer
(
TArrayView< const uint8 > Ciphertext, |
||
| void | DeleteFinishedStream_Internal
(
const FString& StreamName, |
||
| bool | EncryptBuffer
(
TArrayView< const uint8 > Plaintext, |
||
| void | EnumerateEvents_Internal
(
const FString& ReplayName, |
||
| void | FixupFriendlyNameLength
(
const FString& UnfixedName, |
||
| void | FlushCheckpointInternal
(
const uint32 TimeInMS |
||
| void | FlushStream
(
const uint32 TimeInMS |
||
| void | GenerateEncryptionKey
(
TArray< uint8 >& EncryptionKey |
||
| TArrayView< const FString > | Must be relative to the base demo path. | ||
| FString | Returns a name formatted as "demoX", where X is between 1 and MAX_DEMOS, inclusive. | ||
| const TArray< uint8 > & | GetCachedFileContents
(
const FString& Filename |
||
| int32 | GetDecompressedSizeBackCompat
(
FArchive& InCompressed |
||
| const FString & | |||
| bool | GetDemoFreeStorageSpace
(
uint64& DiskFreeSpace, |
||
| FString | GetDemoFullFilename
(
const FString& FileName |
||
| FString | GetDemoFullFilename
(
const FString& DemoPath, |
||
| FString | GetDemoPath () |
||
| bool | |||
| bool | |||
| bool | IsFileRequestPendingOrInProgress
(
const EQueuedLocalFileRequestType::Type RequestType |
||
| bool | IsNamedStreamLive
(
const FString& StreamName |
||
| bool | IsStreaming () |
||
| void | KeepReplay_Internal
(
const FString& ReplayName, |
||
| void | OnFileRequestComplete
(
const TSharedPtr< FQueuedLocalFileRequest, ESPMode::ThreadSafe >& Request |
||
| bool | |||
| bool | ReadReplayInfo
(
FArchive& Archive, |
||
| bool | ReadReplayInfo
(
const FString& StreamName, |
||
| bool | ReadReplayInfo
(
const FString& StreamName, |
||
| bool | ReadReplayInfo
(
FArchive& Archive, |
||
| void | RenameReplay_Internal
(
const FString& ReplayName, |
||
| void | RenameReplayFriendlyName_Internal
(
const FString& ReplayName, |
||
| void | RequestEventData_Internal
(
const FString& ReplayName, |
||
| void | SetLastError
(
FLocalFileReplayResult&& Result |
||
| bool | |||
| bool | |||
| void | Tick
(
float DeltaSeconds |
||
| void | UpdateCurrentReplayInfo
(
FLocalFileReplayInfo& ReplayInfo, |
||
| void | WriteHeader () |
||
| bool | WriteReplayInfo
(
const FString& StreamName, |
||
| bool | WriteReplayInfo
(
FArchive& Archive, |
||
| bool | WriteReplayInfo
(
FArchive& Archive, |
Overridden from INetworkReplayStreamer
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | AddOrUpdateEvent
(
const FString& Name, |
||
| void | AddUserToReplay
(
const FString& UserString |
Adds a join-in-progress user to the set of users associated with the currently recording replay (if any) | |
| void | DeleteFinishedStream
(
const FString& StreamName, |
||
| void | DeleteFinishedStream
(
const FString& StreamName, |
Attempts to delete the stream with the specified name. May execute asynchronously. | |
| void | DownloadHeader
(
const FDownloadHeaderCallback& Delegate |
||
| void | EnumerateEvents
(
const FString& ReplayName, |
||
| void | EnumerateEvents
(
const FString& ReplayName, |
||
| void | EnumerateEvents
(
const FString& Group, |
||
| void | EnumerateRecentStreams
(
const FNetworkReplayVersion& ReplayVersion, |
Retrieves the streams that have been recently viewed. May execute asynchronously. | |
| void | EnumerateStreams
(
const FNetworkReplayVersion& ReplayVersion, |
Retrieves the streams that are available for viewing. | |
| void | FlushCheckpoint
(
const uint32 TimeInMS |
||
| FArchive * | |||
| EStreamingOperationResult | GetDemoPath
(
FString& DemoPath |
Gets the current base directory where Demos are stored. | |
| FArchive * | |||
| uint32 | Returns the maximum size of the friendly name text for this streamer, or 0 for unlimited. | ||
| FString | GetReplayID () |
Returns the active replay name | |
| EReplayStreamerState | Return current recording/playback state | ||
| FArchive * | |||
| uint32 | Time in milliseconds | ||
| void | GotoCheckpointIndex
(
const int32 CheckpointIndex, |
||
| void | GotoTimeInMS
(
const uint32 TimeInMS, |
||
| bool | IsCheckpointTypeSupported
(
EReplayCheckpointType CheckpointType |
||
| bool | |||
| bool | IsDataAvailableForTimeRange
(
const uint32 StartTimeInMS, |
||
| bool | IsLive () |
Returns true if the playing stream is currently in progress | |
| bool | |||
| void | KeepReplay
(
const FString& ReplayName, |
Used to commit a replay to permanent storage. | |
| void | KeepReplay
(
const FString& ReplayName, |
||
| void | |||
| void | RenameReplay
(
const FString& ReplayName, |
||
| void | RenameReplay
(
const FString& ReplayName, |
Used to change the name of a replay. | |
| void | RenameReplayFriendlyName
(
const FString& ReplayName, |
Used to change the friendly name of a replay. | |
| void | RenameReplayFriendlyName
(
const FString& ReplayName, |
||
| void | RequestEventData
(
const FString& ReplayName, |
||
| void | RequestEventData
(
const FString& EventID, |
||
| void | RequestEventData
(
const FString& ReplayName, |
||
| void | RequestEventGroupData
(
const FString& ReplayName, |
||
| void | RequestEventGroupData
(
const FString& ReplayName, |
||
| void | RequestEventGroupData
(
const FString& Group, |
||
| void | SearchEvents
(
const FString& EventGroup, |
||
| EStreamingOperationResult | SetDemoPath
(
const FString& DemoPath |
Changes the base directory where Demos are stored. | |
| void | SetHighPriorityTimeRange
(
const uint32 StartTimeInMS, |
||
| void | SetTimeBufferHintSeconds
(
const float InTimeBufferHintSeconds |
Sets a hint for how much data needs to be kept in memory. | |
| void | StartStreaming
(
const FStartStreamingParameters& Params, |
INetworkReplayStreamer implementation | |
| void | |||
| void | UpdatePlaybackTime
(
uint32 TimeInMS |
||
| void | UpdateTotalDemoTime
(
uint32 TimeInMS |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FLocalFileSerializationInfo |
Typedefs
| Name | Description |
|---|---|
| FLocalFileReplayResult |
Constants
| Name | Description |
|---|---|
| FileMagic | |
| LatestVersion | |
| MaxFriendlyNameLen | |
| OnReplayFinishedWriting |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGSvoid | SetLastError
(
const ENetworkReplayError::Type InLastError |
No longer used |