#include <java_broadcastapilistenerproxy.h>
◆ JavaBroadcastAPIListenerProxy()
| ttv::binding::java::JavaBroadcastAPIListenerProxy::JavaBroadcastAPIListenerProxy |
( |
jobject |
jModule | ) |
|
◆ BroadcastBandwidthWarning()
| virtual void ttv::binding::java::JavaBroadcastAPIListenerProxy::BroadcastBandwidthWarning |
( |
TTV_ErrorCode |
ec, |
|
|
uint32_t |
backupMilliseconds |
|
) |
| |
|
overridevirtual |
Fired periodically when there are issues with the user's bandwidth while broadcasting. If the connection backs up too much then a proper error wil be issues and the broadcast will automatically terminate. If/when issues have recovered then TTV_EC_SUCCESS will be fired once to clear the warning state.
- Parameters
-
| ec | The severity of the warning. Possible values are TTV_WRN_BROADCAST_FRAMES_QUEUEING, TTV_EC_BROADCAST_FRAME_QUEUE_TOO_LONG and TTV_EC_SUCCESS. |
| backupMilliseconds | The number of milliseconds which are backed up on the connection. |
Implements ttv::broadcast::IBroadcastAPIListener.
◆ BroadcastFrameSubmissionIssue()
| virtual void ttv::binding::java::JavaBroadcastAPIListenerProxy::BroadcastFrameSubmissionIssue |
( |
TTV_ErrorCode |
ec | ) |
|
|
overridevirtual |
◆ BroadcastStateChanged()
Fired when the state of the broadcast changes for any reason. If the BroadcastState is Stopping, we will return TTV_EC_SUCCESS if it was a solicited stop (from a call to StopBroadcast). Otherwise it will reflect the underlying error that caused the broadcast to end. Some examples include: TTV_EC_SOCKET_ENOTCONN, TTV_EC_SOCKET_ECONNABORTED, TTV_EC_SOCKET_SEND_ERROR, TTV_EC_SOCKET_RECV_ERROR Socket failures when communicating with the server. TTV_EC_BROADCAST_RTMP_TIMEOUT Server stopped responding to our RTMP data. This can happen if there is another broadcasting session running. TTV_EC_HTTPREQUEST_ERROR HTTP failure when attempting to fetch some of the channel data for the stream.
Implements ttv::broadcast::IBroadcastAPIListener.
◆ GetListener()
◆ ModuleStateChanged()
|
|
inlineoverridevirtualinherited |
◆ SetListener()
◆ StreamInfoFetched()
| virtual void ttv::binding::java::JavaBroadcastAPIListenerProxy::StreamInfoFetched |
( |
TTV_ErrorCode |
ec, |
|
|
const StreamInfo & |
streamInfo |
|
) |
| |
|
overridevirtual |
Fired when we get the broadcast_id from the livecheck API. The broadcast_id (also known as stream_id) is the id of the stream that the user is current broadcasting. This should fire 5-20s after the broadcast starts once we get the broadcast_id from the livecheck API, but could take a while due to latency (10s~) on the endpoint.
The callback may not be called if the broadcast stops before we have a chance to fetch it.
Implements ttv::broadcast::IBroadcastAPIListener.
◆ mJavaListener
◆ mJavaModule
◆ mListenerInfo
◆ mModuleListenerInfo
The documentation for this class was generated from the following file: