From the
"Blesta - Basics of plugin development"
live stream -
live_stream_helper.zip