|
Twitch SDK (Internal)
|
#include <ichannellistener.h>
Public Types | |
| using | StreamUpCallback = std::function< void(uint32_t durationSeconds)> |
| using | StreamDownCallback = std::function< void()> |
| using | StreamViewerCountChangedCallback = std::function< void(uint32_t viewerCount)> |
| using | StreamTriggeredMidrollCallback = std::function< void(uint32_t durationSeconds)> |
| using | StreamReceivedWatchPartyUpdateCallback = std::function< void(const WatchPartyUpdate &update)> |
| using | ProfileImageUpdatedCallback = std::function< void(const std::vector< ProfileImage > &images)> |
Public Member Functions | |
| virtual void | StreamUp (uint32_t playDelaySeconds) override |
| virtual void | StreamDown () override |
| virtual void | StreamViewerCountChanged (uint32_t viewerCount) override |
| virtual void | StreamTriggeredMidroll (uint32_t durationSeconds) override |
| virtual void | StreamReceivedWatchPartyUpdate (const WatchPartyUpdate &update) override |
| virtual void | ProfileImageUpdated (const std::vector< ProfileImage > &images) override |
A default implementation of IChannelListener that allows an app to plug in lambdas.
| using ttv::ChannelListenerProxy::ProfileImageUpdatedCallback = std::function<void(const std::vector<ProfileImage>& images)> |
| using ttv::ChannelListenerProxy::StreamDownCallback = std::function<void()> |
| using ttv::ChannelListenerProxy::StreamReceivedWatchPartyUpdateCallback = std::function<void(const WatchPartyUpdate& update)> |
| using ttv::ChannelListenerProxy::StreamTriggeredMidrollCallback = std::function<void(uint32_t durationSeconds)> |
| using ttv::ChannelListenerProxy::StreamUpCallback = std::function<void(uint32_t durationSeconds)> |
| using ttv::ChannelListenerProxy::StreamViewerCountChangedCallback = std::function<void(uint32_t viewerCount)> |
|
inlineoverridevirtual |
Called when a new profile image has been successfully uploaded for the current channel (from any device). Note: Only successful uploads will trigger this function.
| [in] | images | Updated profile image information. |
Implements ttv::IChannelListener.
|
inlineoverridevirtual |
Called when a stream goes down.
Implements ttv::IChannelListener.
|
inlineoverridevirtual |
If the channel is hosting a watch party, the server will send us periodic updates containing information about the watch party.
Implements ttv::IChannelListener.
|
inlineoverridevirtual |
Indicates that a midroll ad pod should be played. The total length of the ad pod should be at most duration seconds.
Implements ttv::IChannelListener.
|
inlineoverridevirtual |
Called when a stream is brought up. The playDelay argument contains the artificial playback delay set on the stream.
Implements ttv::IChannelListener.
|
inlineoverridevirtual |
Called when the stream's viewer count changes.
Implements ttv::IChannelListener.
| std::function<void(uint32_t viewerCount)> ttv::ChannelListenerProxy::mViewerCountChangedHandler |
| ProfileImageUpdatedCallback ttv::ChannelListenerProxy::profileImageUpdatedCallback |
| StreamDownCallback ttv::ChannelListenerProxy::streamDownCallback |
| StreamReceivedWatchPartyUpdateCallback ttv::ChannelListenerProxy::streamReceivedWatchPartyUpdateCallback |
| StreamTriggeredMidrollCallback ttv::ChannelListenerProxy::streamTriggeredMidrollCallback |
| StreamUpCallback ttv::ChannelListenerProxy::streamUpCallback |
| StreamViewerCountChangedCallback ttv::ChannelListenerProxy::streamViewerCountChangedCallback |
1.8.13