KallDrexx / rust-media-libs

Rust based libraries for misc media functionality
Apache License 2.0
229 stars 58 forks source link

Added BufferEmpty and BufferReady event type for UserControlEventType #25

Closed mdorofeev closed 2 years ago

mdorofeev commented 2 years ago

Hi.

I added BufferEmpty and BufferReady event types for UserControlEventType for support stream playback on Wowza server. Without these messages ClientSession throw error as can't deserialize event and playback not possible.

mdorofeev commented 2 years ago

These events were found by reverse engineering, but it implemented in other libraries too - https://repo.or.cz/w/rtmpdump.git/blob/8880d1456b282ee79979adbe7b6a6eb8ad371081:/librtmp/rtmp.c#l2787 https://github.com/ricohapi/theta-wireless-live-streaming-plugin/blob/master/pedroLibrary/rtmp/src/main/java/com/github/faucamp/simplertmp/packets/UserControl.java#L108

KallDrexx commented 2 years ago

Awesome appreciate it. I'll get a new crates.io release later this evening

KallDrexx commented 2 years ago

0.5.0 published to crates.io with this change. Thanks again!