mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
rtmp2: Add gst_rtmp_connection_set_chunk_size
This commit is contained in:
parent
63ec837824
commit
f7bb2cdeb7
2 changed files with 17 additions and 0 deletions
|
@ -1064,6 +1064,21 @@ gst_rtmp_connection_send_ping_response (GstRtmpConnection * connection,
|
|||
gst_rtmp_message_new_user_control (&uc));
|
||||
}
|
||||
|
||||
void
|
||||
gst_rtmp_connection_set_chunk_size (GstRtmpConnection * connection,
|
||||
guint32 chunk_size)
|
||||
{
|
||||
GstRtmpProtocolControl pc = {
|
||||
.type = GST_RTMP_MESSAGE_TYPE_SET_CHUNK_SIZE,
|
||||
.param = chunk_size,
|
||||
};
|
||||
|
||||
g_return_if_fail (GST_IS_RTMP_CONNECTION (connection));
|
||||
|
||||
gst_rtmp_connection_queue_message (connection,
|
||||
gst_rtmp_message_new_protocol_control (&pc));
|
||||
}
|
||||
|
||||
void
|
||||
gst_rtmp_connection_request_window_size (GstRtmpConnection * connection,
|
||||
guint32 window_ack_size)
|
||||
|
|
|
@ -81,6 +81,8 @@ void gst_rtmp_connection_expect_command (GstRtmpConnection * connection,
|
|||
GstRtmpCommandCallback response_command, gpointer user_data,
|
||||
guint32 stream_id, const gchar * command_name);
|
||||
|
||||
void gst_rtmp_connection_set_chunk_size (GstRtmpConnection * connection,
|
||||
guint32 chunk_size);
|
||||
void gst_rtmp_connection_request_window_size (GstRtmpConnection * connection,
|
||||
guint32 window_ack_size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue