rtmp2: Add gst_rtmp_connection_set_chunk_size

This commit is contained in:
Jan Alexander Steffens (heftig) 2020-02-14 12:34:19 +01:00 committed by GStreamer Merge Bot
parent 63ec837824
commit f7bb2cdeb7
2 changed files with 17 additions and 0 deletions

View file

@ -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)

View file

@ -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);