Live Streaming Tutorial
Broadcasting your Live stream
tdef = TorrentDef() tdef.create_live(bitrate) tdef.set_tracker(s.get_internal_tracker_url()) tdef.finalize() dscfg = DownloadStartupConfig() dscfg.set_video_source(inputstream) s.start_download(tdef,dscfg)
In this example a "Live"-torrent file is created with a specified video bitrate and using the internal tracker. The second part of the code starts the downloading/seeding Protocol for this torrent.
Watching Live Streams
Watching Live streams is the same as watching video-on-demand files.