-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathqueue_example.py
More file actions
26 lines (22 loc) · 855 Bytes
/
Copy pathqueue_example.py
File metadata and controls
26 lines (22 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import time
from qast import Qast
print("Connecting...")
q = Qast(device="roku", cookies_from_browser="chrome")
q.add("https://www.youtube.com/watch?v=PwylW_sUfQY", duration=15)
q.add("https://www.youtube.com/watch?v=aOAzJ37Nxfw", duration=15)
q.add("screen", duration=15)
q.add("window:sublime", duration=15)
q.add("browser:pixycam.com", duration=15)
q.add("webcam", duration=15)
q.play(repeat=True, verbose=True) # starts casting (non-blocking)
q.add("out.mp4", duration=15) # add
while True:
s = q.status()
print(s)
time.sleep(5)
'''
Other methods:
q.remove(2) # remove item by index
q.skip() # skip to next item
q.stop() # stop and disconnect
'''