Skip to content

Instantly share code, notes, and snippets.

@shriyaRam
Created August 28, 2019 10:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shriyaRam/5a0ff97027a6c80fee281b97428e3b69 to your computer and use it in GitHub Desktop.
Save shriyaRam/5a0ff97027a6c80fee281b97428e3b69 to your computer and use it in GitHub Desktop.
from agora_community_sdk import AgoraRTC
client = AgoraRTC.create_watcher("app-id", "chromedriver link")
client.join_channel("channel-name")
users = client.get_users() # Gets references to everyone participating in the call
user1 = users[0] # reference the broadcasting user
binary_image = user1.frame # Gets the latest frame from the stream as a PIL image
binary_image.save("link to in.png file(high resolution)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment