我想获得一个可以播放音乐的应用列表。 我试过这段代码,但它给我一个空列表:
def start_sensors(self):
# do some stuff...
# refreshes every refresh_rate secs
refresh_rate = firebase_root.get('/settings', 'refreshRate')
condition.wait(refresh_rate)
def check_for_plants(self):
while True:
modded_plants = firebase_root.get('/modifiedPlants', '')
print(modded_plants)
for plant, properties in modded_plants.items():
print properties['status']
if properties['status'] == 'modified':
condition.notify()
print("Notified")
condition = threading.Condition()
t_sensors = threading.Thread(target=start_sensors, args=(condition,))
t_checker = threading.Thread(target=check_for_plants, args=(condition,))
condition.acquire()
t_sensors.start()
t_checker.start()
感谢您的帮助!
答案 0 :(得分:1)
获取可播放音乐的应用列表
你不能真的。应用程序没有公开它具有音乐播放功能。