Skip to content

Instantly share code, notes, and snippets.

@chrippa
Created November 10, 2013 18:50
Show Gist options
  • Save chrippa/7402186 to your computer and use it in GitHub Desktop.
Save chrippa/7402186 to your computer and use it in GitHub Desktop.
livestream.com test
import librtmp
channel = "tv_zenica_live"
url = "rtmp://x" + channel + "x.e.channel.livestream.com/mogulus-edge/" + channel
data = ["player", None, "instance390", "", None, {}, "password", 197377, True]
conn = librtmp.RTMP(url, connect_data=data, app="mogulus-edge/" + channel)
status = conn.connect().result()
getServerTimestamp = conn.remote_method("getServerTimestamp", block=True)
getCluster3 = conn.remote_method("getCluster3", block=True)
print(getServerTimestamp())
trackid = status.get("application")[1][0].get("trackId")
print(getCluster3(trackid))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment