#include <chatreplay.h>
◆ ttv::chat::ChatReplay::ReplayMessageBatch
| struct ttv::chat::ChatReplay::ReplayMessageBatch |
| Class Members |
|
uint64_t |
baseTimestamp |
|
|
vector< ReplayMessage > |
messages |
|
◆ DisposerFunc
◆ State
| Enumerator |
|---|
| Uninitialized | |
| Initialized | |
| ShuttingDown | |
| Inert | The component doesn't require shutting down.
|
◆ ChatReplay()
| ttv::chat::ChatReplay::ChatReplay |
( |
const std::shared_ptr< User > & |
user | ) |
|
◆ AddListener()
| void ttv::chat::ChatReplay::AddListener |
( |
const std::shared_ptr< IChatReplayListener > & |
listener | ) |
|
|
inline |
◆ Advance()
| void ttv::chat::ChatReplay::Advance |
( |
| ) |
|
|
private |
◆ CheckShutdown()
| virtual bool ttv::Component::CheckShutdown |
( |
| ) |
|
|
protectedvirtualinherited |
Reimplemented in ttv::PubSubClient, ttv::ComponentContainer, ttv::broadcast::Streamer, ttv::social::FriendList, ttv::chat::ChatUserThreads, ttv::UserRepository, ttv::social::Presence, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatChannelSet, ttv::chat::BitsConfigRepository, ttv::chat::ChatUserBlockList, ttv::ChannelRepository, ttv::ChannelStatus, ttv::PubSubComponentBase, and ttv::ProfileImageStatus.
◆ CompleteShutdown()
| virtual void ttv::chat::ChatReplay::CompleteShutdown |
( |
| ) |
|
|
overridevirtual |
◆ CompleteTask()
| void ttv::Component::CompleteTask |
( |
Task * |
task | ) |
|
|
protectedinherited |
◆ DeleteMessage()
| virtual TTV_ErrorCode ttv::chat::ChatReplay::DeleteMessage |
( |
const std::string & |
messageId | ) |
|
|
overridevirtual |
Deletes the given message from the replay on the backend so that it cannot be viewed by any other users. The user's OAuth token must have permission to perform the deletion.
Implements ttv::chat::IChatReplay.
◆ Dispose()
◆ FetchBitsConfig()
◆ FetchChatReplayMessagesAtMillisecond()
| TTV_ErrorCode ttv::chat::ChatReplay::FetchChatReplayMessagesAtMillisecond |
( |
uint64_t |
timestamp | ) |
|
|
private |
◆ FetchVod()
◆ GetChannelId()
◆ GetCurrentTime()
◆ GetLoggerName()
| virtual std::string ttv::chat::ChatReplay::GetLoggerName |
( |
| ) |
const |
|
overridevirtual |
◆ GetReplayState()
◆ GetState()
| virtual State ttv::Component::GetState |
( |
| ) |
const |
|
overridevirtualinherited |
◆ GetTaskRunner()
| std::shared_ptr<TaskRunner> ttv::Component::GetTaskRunner |
( |
| ) |
|
|
inlineinherited |
◆ GetVodId()
| std::string ttv::chat::ChatReplay::GetVodId |
( |
| ) |
const |
|
inline |
◆ Initialize()
◆ IsTaskRunning()
| bool ttv::Component::IsTaskRunning |
( |
Task * |
task | ) |
const |
|
protectedinherited |
◆ NudgePlayhead()
| virtual TTV_ErrorCode ttv::chat::ChatReplay::NudgePlayhead |
( |
uint64_t |
timestampMilliseconds | ) |
|
|
overridevirtual |
Moves the playhead to absolute time in milliseconds, should be called periodically by the player to correct millisecond clock drift.
Implements ttv::chat::IChatReplay.
◆ Pause()
Pauses the playhead. Should be called when the video player's pause is called, or when the video player starts buffering.
Implements ttv::chat::IChatReplay.
◆ Play()
Initiates playback of the messages and causes the playhead to advance. Should be called when the video player starts playing, or resumes from buffering, with a NudgePlayhead() if necessary. Has no effect when current ChatReplayState is BUFFERING, because playback will automatically resume when done buffering.
Implements ttv::chat::IChatReplay.
◆ Seek()
Sets the current playhead time to be the given time. If the state is playing this may cause buffering if the messages around the given time are not locally cached.
Implements ttv::chat::IChatReplay.
◆ SetBitsConfigRepository()
| void ttv::chat::ChatReplay::SetBitsConfigRepository |
( |
const std::shared_ptr< BitsConfigRepository > & |
repository | ) |
|
|
inline |
◆ SetChannelRepository()
| void ttv::chat::ChatReplay::SetChannelRepository |
( |
const std::shared_ptr< ChannelRepository > & |
repository | ) |
|
|
inline |
◆ SetClientState()
| virtual void ttv::Component::SetClientState |
( |
State |
state | ) |
|
|
protectedvirtualinherited |
◆ SetDisposer()
| void ttv::chat::ChatReplay::SetDisposer |
( |
DisposerFunc && |
func | ) |
|
|
inline |
◆ SetReplayState()
◆ SetServerState()
| virtual void ttv::Component::SetServerState |
( |
State |
state | ) |
|
|
protectedvirtualinherited |
◆ SetState()
| virtual void ttv::Component::SetState |
( |
State |
state | ) |
|
|
protectedvirtualinherited |
◆ SetTaskRunner()
| virtual void ttv::Component::SetTaskRunner |
( |
std::shared_ptr< TaskRunner > |
taskRunner | ) |
|
|
virtualinherited |
◆ SetTokenizationOptions()
| void ttv::chat::ChatReplay::SetTokenizationOptions |
( |
const TokenizationOptions & |
tokenizationOptions | ) |
|
|
inline |
◆ SetVodId()
| void ttv::chat::ChatReplay::SetVodId |
( |
const std::string & |
vodId | ) |
|
◆ Shutdown()
◆ StartTask()
◆ Update()
| virtual void ttv::chat::ChatReplay::Update |
( |
| ) |
|
|
overridevirtual |
◆ mBitsConfigFetchInFlight
| bool ttv::chat::ChatReplay::mBitsConfigFetchInFlight |
|
private |
◆ mBitsConfigRepository
◆ mBitsConfiguration
◆ mChannelId
◆ mChannelRepository
◆ mChatReplayMessagesFetcher
◆ mDisposerFunc
◆ mFetchBitsConfigRetryTimer
| RetryTimer ttv::chat::ChatReplay::mFetchBitsConfigRetryTimer |
|
private |
◆ mFetchedLists
◆ mFetchMessagesRetryTimer
◆ mFetchVodRetryTimer
| RetryTimer ttv::chat::ChatReplay::mFetchVodRetryTimer |
|
private |
◆ mHasFetchedBitsConfig
| bool ttv::chat::ChatReplay::mHasFetchedBitsConfig |
|
private |
◆ mHasFetchedVod
| bool ttv::chat::ChatReplay::mHasFetchedVod |
|
private |
◆ mHasNoMessages
| bool ttv::chat::ChatReplay::mHasNoMessages |
|
private |
◆ mLastLoadedTimeMilliseconds
| uint64_t ttv::chat::ChatReplay::mLastLoadedTimeMilliseconds |
|
private |
◆ mLastUpdateTimeMilliseconds
| uint64_t ttv::chat::ChatReplay::mLastUpdateTimeMilliseconds |
|
private |
◆ mListeners
◆ mPlayheadTimeMilliseconds
| uint64_t ttv::chat::ChatReplay::mPlayheadTimeMilliseconds |
|
private |
◆ mReplayState
◆ mRunningTasks
| std::vector<std::shared_ptr<Task> > ttv::Component::mRunningTasks |
|
protectedinherited |
◆ mSeekCount
| uint32_t ttv::chat::ChatReplay::mSeekCount |
|
private |
◆ mShutdownTimeMilliseconds
| uint64_t ttv::Component::mShutdownTimeMilliseconds |
|
protectedinherited |
◆ mState
◆ mTaskMutex
| std::mutex ttv::Component::mTaskMutex |
|
mutableprotectedinherited |
◆ mTaskRunner
| std::shared_ptr<TaskRunner> ttv::Component::mTaskRunner |
|
protectedinherited |
◆ mTokenizationOptions
◆ mUser
| std::shared_ptr<User> ttv::chat::ChatReplay::mUser |
|
private |
◆ mUserId
| UserId ttv::chat::ChatReplay::mUserId |
|
private |
◆ mVodFetchInFlight
| bool ttv::chat::ChatReplay::mVodFetchInFlight |
|
private |
◆ mVodId
| std::string ttv::chat::ChatReplay::mVodId |
|
private |
◆ mVodRecordedAtSeconds
| Timestamp ttv::chat::ChatReplay::mVodRecordedAtSeconds |
|
private |
The documentation for this class was generated from the following file:
- modules/chat/chat_common/include/twitchsdk/chat/internal/chatreplay.h