Click or drag to resize

IReplayManagerV1StartReplay(Int32, Int32, NullableInt32, NullableBoolean, NullableBoolean) Method

Start replay the event from replay queue. Events are played in the order they were played in reality

Namespace: Sportradar.OddsFeed.SDK.API
Assembly: Sportradar.OddsFeed.SDK.API (in Sportradar.OddsFeed.SDK.API.dll) Version: 1.59.0.0 (1.59.0.0)
Syntax
C#
IReplayResponse StartReplay(
	int speed,
	int maxDelay,
	int? producerId,
	bool? rewriteTimestamps,
	bool? runParallel
)

Parameters

speed  Int32
The speed factor of the replay
maxDelay  Int32
The maximum delay between messages in milliseconds
producerId  NullableInt32
The id of the producer from which we want to get messages, or null for messages from all producers
rewriteTimestamps  NullableBoolean
Should the timestamp in messages be rewritten with current time
runParallel  NullableBoolean
Should the events in queue replay independently

Return Value

IReplayResponse
Returns an IReplayResponse
Remarks
Start replay the event from replay queue. Events are played in the order they were played in reality, e.g. if there are some events that were played simultaneously in reality, they will be played in parallel as well here on replay server. If not specified, default values speed = 10 and max_delay = 10000 are used. This means that messages will be sent 10x faster than in reality, and that if there was some delay between messages that was longer than 10 seconds it will be reduced to exactly 10 seconds/10 000 ms (this is helpful especially in pre-match odds where delay can be even a few hours or more). If player is already in play, nothing will happen
See Also