Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KallDrexx/rust-media-libs
/ functions
Functions
487 in github.com/KallDrexx/rust-media-libs
⨍
Functions
487
◇
Types & classes
85
↓ 114 callers
Method
serialize
Turns an RTMP message payload into binary data (representing RTMP chunks) that can be sent over the network. The RTMP chunk format has a basic form o
rtmp/src/chunk_io/serializer.rs:91
↓ 82 callers
Method
into_message_payload
( self, timestamp: RtmpTimestamp, message_stream_id: u32, )
rtmp/src/messages/mod.rs:132
↓ 46 callers
Method
get_next_message
Attempts to read a complete RTMP message from the passed in bytes. It is normal that one set of bytes will not form a complete RTMP message (or even
rtmp/src/chunk_io/deserializer.rs:147
↓ 39 callers
Function
split_results
( deserializer: &mut ChunkDeserializer, mut results: Vec<ClientSessionResult>, )
rtmp/src/sessions/client/tests.rs:1581
↓ 37 callers
Method
handle_input
Takes in any number of bytes from the peer and processes them. Any resulting responses or events are returned.
rtmp/src/sessions/client/mod.rs:97
↓ 32 callers
Function
split_results
( deserializer: &mut ChunkDeserializer, mut results: Vec<ServerSessionResult>, )
rtmp/src/sessions/server/tests.rs:1574
↓ 31 callers
Function
consume_results
(deserializer: &mut ChunkDeserializer, results: Vec<ClientSessionResult>)
rtmp/src/sessions/client/tests.rs:1621
↓ 27 callers
Method
handle_input
Takes in bytes that are encoding RTMP chunks and returns any responses or events that can be reacted to.
rtmp/src/sessions/server/mod.rs:146
↓ 25 callers
Method
read
(&mut self)
examples/threaded_rtmp_server/src/connection.rs:62
↓ 23 callers
Method
to_rtmp_message
Deserializes the message data in the specified payload into its corresponding `RtmpMessage`. Note that flash clients (like Wowza's test client) lie a
rtmp/src/messages/message_payload.rs:47
↓ 22 callers
Function
common_basic_setup
()
rtmp/src/sessions/server/tests.rs:1570
↓ 21 callers
Function
perform_connection
( app_name: &str, session: &mut ServerSession, serializer: &mut ChunkSerializer, deserializer:
rtmp/src/sessions/server/tests.rs:1642
↓ 21 callers
Function
send
Sends a message over an unbounded receiver and returns true if the message was sent or false if the channel has been closed.
examples/tokio_rtmp_server/src/main.rs:47
↓ 20 callers
Method
accept_request
Tells the server session that it should accept an outstanding request
rtmp/src/sessions/server/mod.rs:246
↓ 19 callers
Method
get_epoch
(&self)
rtmp/src/sessions/server/mod.rs:1350
↓ 18 callers
Function
perform_successful_connect
( app_name: String, session: &mut ClientSession, serializer: &mut ChunkSerializer, deserialize
rtmp/src/sessions/client/tests.rs:1773
↓ 15 callers
Function
create_active_stream
( session: &mut ServerSession, serializer: &mut ChunkSerializer, deserializer: &mut ChunkDeseriali
rtmp/src/sessions/server/tests.rs:1673
↓ 15 callers
Method
process_bytes
Processes the passed in bytes as part of the handshake process. If not enough bytes were received to complete the next handshake step then the handsh
rtmp/src/handshake/mod.rs:220
↓ 14 callers
Function
deserialize
(data: Bytes)
rtmp/src/messages/types/abort.rs:16
↓ 14 callers
Method
get_epoch
(&self)
rtmp/src/sessions/client/mod.rs:940
↓ 13 callers
Function
form_type_0_chunk
( csid: u32, timestamp: u32, message_stream_id: u32, type_id: u8, payl
rtmp/src/chunk_io/deserializer.rs:1004
↓ 11 callers
Method
cleanup_connection
(&mut self, connection_id: i32)
examples/tokio_rtmp_server/src/stream_manager/mod.rs:60
↓ 11 callers
Function
serialize
(stream_id: u32)
rtmp/src/messages/types/abort.rs:8
↓ 11 callers
Method
write
(&self, bytes: Vec<u8>)
examples/threaded_rtmp_server/src/connection.rs:58
↓ 10 callers
Method
create_error_packet
( &mut self, code: &str, description: &str, transaction_id: f64, strea
rtmp/src/sessions/server/mod.rs:1365
↓ 10 callers
Method
register
(&mut self, poll: &mut Poll)
examples/mio_rtmp_server/src/connection.rs:258
↓ 10 callers
Method
request_connection
Forms an RTMP message requesting a connection to the specified application on the server. An event will be raised when the request is accepted or reje
rtmp/src/sessions/client/mod.rs:186
↓ 10 callers
Method
set_max_chunk_size
Changes the maximum amount of bytes from RTMP messages that can be in a single RTMP chunk. Changing the maximum chunk size requires notifying the rec
rtmp/src/chunk_io/serializer.rs:52
↓ 9 callers
Function
deserialize
Turns any readable byte stream and converts it into an array of AMF0 values
amf0/src/deserialization.rs:18
↓ 9 callers
Function
deserialize
(data: Bytes)
rtmp/src/messages/types/user_control.rs:34
↓ 9 callers
Method
get_number
(self)
amf0/src/lib.rs:59
↓ 9 callers
Function
serialize
Serializes values into an amf0 encoded vector of bytes
amf0/src/serialization.rs:12
↓ 9 callers
Function
serialize
( event_type: UserControlEventType, stream_id: Option<u32>, buffer_length: Option<u32>, timest
rtmp/src/messages/types/user_control.rs:9
↓ 8 callers
Method
send_video_data
Prepare video data to be sent to the client
rtmp/src/sessions/server/mod.rs:363
↓ 8 callers
Function
spawn
(future: F)
examples/tokio_rtmp_server/src/main.rs:33
↓ 7 callers
Function
consume_results
(deserializer: &mut ChunkDeserializer, results: Vec<ServerSessionResult>)
rtmp/src/sessions/server/tests.rs:1612
↓ 7 callers
Method
generate_outbound_p0_and_p1
Creates the packets 0 and 1 that should get sent to the peer. This is only strictly required to be called by the client in the connection process to
rtmp/src/handshake/mod.rs:170
↓ 6 callers
Function
create_status_object
(level: &str, code: &str, description: &str)
rtmp/src/sessions/server/mod.rs:1383
↓ 6 callers
Function
get_create_stream_success_response
( transaction_id: f64, serializer: &mut ChunkSerializer, )
rtmp/src/sessions/client/tests.rs:1698
↓ 6 callers
Method
handle_push_session_results
( &mut self, session_results: Vec<ClientSessionResult>, server_results: &mut Vec<Serve
examples/mio_rtmp_server/src/server.rs:1056
↓ 6 callers
Method
send_audio_data
Prepare audio data to be sent to the client
rtmp/src/sessions/server/mod.rs:377
↓ 6 callers
Method
send_metadata
Prepares metadata information to be sent to the client
rtmp/src/sessions/server/mod.rs:298
↓ 6 callers
Function
start_playing
( stream_key: &str, stream_id: u32, session: &mut ServerSession, serializer: &mut ChunkSeriali
rtmp/src/sessions/server/tests.rs:1788
↓ 6 callers
Function
start_publishing
( stream_key: &str, stream_id: u32, session: &mut ServerSession, serializer: &mut ChunkSeriali
rtmp/src/sessions/server/tests.rs:1746
↓ 6 callers
Function
write_stream_event
( bytes: &mut W, event_id: u16, stream_id: Option<u32>, )
rtmp/src/messages/types/user_control.rs:82
↓ 5 callers
Function
form_type_1_chunk
(csid: u32, delta: u32, type_id: u8, payload: &[u8])
rtmp/src/chunk_io/deserializer.rs:1059
↓ 5 callers
Function
get_basic_config
()
rtmp/src/sessions/server/tests.rs:1550
↓ 5 callers
Method
handle_server_session_results
( &mut self, executed_connection_id: usize, session_results: Vec<ServerSessionResult>,
examples/mio_rtmp_server/src/server.rs:325
↓ 5 callers
Method
handle_session_results
( &mut self, executed_connection_id: usize, session_results: Vec<ServerSessionResult>,
examples/threaded_rtmp_server/src/server.rs:139
↓ 5 callers
Function
perform_successful_play_request
( config: ClientSessionConfig, session: &mut ClientSession, serializer: &mut ChunkSerializer,
rtmp/src/sessions/client/tests.rs:1796
↓ 5 callers
Method
request_playback
Starts the process of requesting playback on the server for the specified stream key. An event will be raised when the request is accepted or rejecte
rtmp/src/sessions/client/mod.rs:236
↓ 4 callers
Function
calc_hmac
(input: &[u8], key: &[u8])
rtmp/src/handshake/mod.rs:490
↓ 4 callers
Function
calc_hmac_from_parts
(part1: &[u8], part2: &[u8], key: &[u8])
rtmp/src/handshake/mod.rs:477
↓ 4 callers
Function
compare
(value1: &u32, value2: &u32)
rtmp/src/time.rs:166
↓ 4 callers
Function
create_connect_message
( app_name: String, timestamp: u32, stream_id: u32, object_encoding: f64, )
rtmp/src/sessions/server/tests.rs:1617
↓ 4 callers
Function
form_type_2_chunk
(csid: u32, delta: u32, payload: &[u8])
rtmp/src/chunk_io/deserializer.rs:1085
↓ 4 callers
Function
get_client_digest_offset
(data: &[u8; RTMP_PACKET_SIZE])
rtmp/src/handshake/mod.rs:451
↓ 4 callers
Function
get_connect_success_response
(serializer: &mut ChunkSerializer)
rtmp/src/sessions/client/tests.rs:1626
↓ 4 callers
Function
get_server_digest_offset
(data: &[u8; RTMP_PACKET_SIZE])
rtmp/src/handshake/mod.rs:444
↓ 4 callers
Function
perform_successful_publish_request
( session: &mut ClientSession, serializer: &mut ChunkSerializer, deserializer: &mut ChunkDeseriali
rtmp/src/sessions/client/tests.rs:1922
↓ 4 callers
Method
set_max_chunk_size
Tells the deserializer that the peer will start sending RTMP chunks with a different max chunk size. When an RTMP message is larger than the current
rtmp/src/chunk_io/deserializer.rs:183
↓ 4 callers
Function
verify_is_onstatus
(subject: &RtmpMessage, expected_status: &str, expected_code: &str)
rtmp/src/sessions/server/tests.rs:1833
↓ 3 callers
Function
common_setup
( config: &ServerSessionConfig, )
rtmp/src/sessions/server/tests.rs:1560
↓ 3 callers
Function
deserialize
(data: Bytes)
rtmp/src/messages/types/set_peer_bandwidth.rs:26
↓ 3 callers
Function
fill_with_random_data
(buffer: &mut [u8])
rtmp/src/handshake/mod.rs:512
↓ 3 callers
Function
form_type_3_chunk
( csid: u32, payload: &[u8], max_chunk_length: usize, option_extended_timestam
rtmp/src/chunk_io/deserializer.rs:1109
↓ 3 callers
Method
get_active_stream_id
(&self)
examples/threaded_rtmp_server/src/server.rs:31
↓ 3 callers
Function
get_message_parts
( handshake: &[u8; RTMP_PACKET_SIZE], digest_offset: u32, )
rtmp/src/handshake/mod.rs:458
↓ 3 callers
Method
get_next_transaction_id
(&mut self)
rtmp/src/sessions/client/mod.rs:955
↓ 3 callers
Method
handle_audio_video_data_received
( &mut self, stream_key: String, timestamp: RtmpTimestamp, data: Bytes,
examples/mio_rtmp_server/src/server.rs:760
↓ 3 callers
Method
publish_audio_data
If publishing, this allows us to send audio data to the server on the publishing stream.
rtmp/src/sessions/client/mod.rs:492
↓ 3 callers
Method
publish_video_data
If publishing, this allows us to send video data to the server on the publishing stream.
rtmp/src/sessions/client/mod.rs:463
↓ 3 callers
Function
read_next_value
(bytes: &mut R)
amf0/src/deserialization.rs:31
↓ 3 callers
Method
request_publishing
Starts the process of requesting to publish to the server on the specified stream key. An event will be raised when the request is accepted or reject
rtmp/src/sessions/client/mod.rs:272
↓ 3 callers
Function
serialize
( limit_type: PeerBandwidthLimitType, size: u32, )
rtmp/src/messages/types/set_peer_bandwidth.rs:8
↓ 3 callers
Function
serialize_value
(value: &Amf0Value, bytes: &mut Vec<u8>)
amf0/src/serialization.rs:21
↓ 3 callers
Method
set
Sets the timestamp to a new time value
rtmp/src/time.rs:77
↓ 2 callers
Function
add_values
(value1: u32, value2: u32)
rtmp/src/time.rs:158
↓ 2 callers
Method
apply_metadata_values
Iterates through the passed in hashmap and uses their values to set the metadata properties. The keys are based on standard metadata property names se
rtmp/src/sessions/mod.rs:73
↓ 2 callers
Method
cmp
(&self, other: &Self)
rtmp/src/time.rs:123
↓ 2 callers
Function
create_active_stream
(session: &mut ServerSession, serializer: &mut ChunkSerializer)
benchmarks/video-relay/src/main.rs:165
↓ 2 callers
Method
create_error_response
( &mut self, transaction_id: f64, command_object: Amf0Value, additional_argume
rtmp/src/sessions/server/mod.rs:1331
↓ 2 callers
Function
create_player_session
()
benchmarks/video-relay/src/main.rs:101
↓ 2 callers
Function
deserialize
(data: Bytes)
rtmp/src/messages/types/amf0_data.rs:15
↓ 2 callers
Function
deserialize
(data: Bytes)
rtmp/src/messages/types/amf0_command.rs:27
↓ 2 callers
Method
enqueue_response
(&mut self, poll: &mut Poll, bytes: Vec<u8>)
examples/mio_rtmp_server/src/connection.rs:125
↓ 2 callers
Method
finish_playing
Changes stream to Completed, and sends out an `onStatus(code: NetStream.Play.Complete)`
rtmp/src/sessions/server/mod.rs:407
↓ 2 callers
Method
get_active_stream_id
(&self)
examples/mio_rtmp_server/src/server.rs:35
↓ 2 callers
Function
get_digest_for_received_packet
( packet: &[u8; RTMP_PACKET_SIZE], key: &[u8], )
rtmp/src/handshake/mod.rs:421
↓ 2 callers
Function
get_play_success_response
(serializer: &mut ChunkSerializer, stream_id: u32)
rtmp/src/sessions/client/tests.rs:1717
↓ 2 callers
Function
get_publish_success_response
(serializer: &mut ChunkSerializer, stream_id: u32)
rtmp/src/sessions/client/tests.rs:1745
↓ 2 callers
Method
handle_audio_video_data_received
( &mut self, stream_key: String, timestamp: RtmpTimestamp, data: Bytes,
examples/threaded_rtmp_server/src/server.rs:600
↓ 2 callers
Method
handle_metadata_received
( &mut self, app_name: String, stream_key: String, metadata: StreamMetadata,
examples/mio_rtmp_server/src/server.rs:710
↓ 2 callers
Method
handle_pull_audio_video_data_received
( &mut self, data: Bytes, data_type: ReceivedDataType, timestamp: RtmpTimestam
examples/mio_rtmp_server/src/server.rs:1022
↓ 2 callers
Method
handle_pull_session_results
( &mut self, session_results: Vec<ClientSessionResult>, server_results: &mut Vec<Serve
examples/mio_rtmp_server/src/server.rs:909
↓ 2 callers
Function
handle_read_bytes
( bytes: &[u8], from_token: usize, server: &mut Server, connections: &mut Slab<Connection>,
examples/mio_rtmp_server/src/main.rs:271
↓ 2 callers
Function
is_audio_sequence_header
(data: Bytes)
examples/threaded_rtmp_server/src/server.rs:721
↓ 2 callers
Function
is_audio_sequence_header
(data: Bytes)
examples/mio_rtmp_server/src/server.rs:1203
↓ 2 callers
Function
is_video_keyframe
(data: Bytes)
examples/threaded_rtmp_server/src/server.rs:726
↓ 2 callers
Function
is_video_keyframe
(data: Bytes)
examples/mio_rtmp_server/src/server.rs:1208
next →
1–100 of 487, ranked by callers