GetSourceActiveStatus 的问题 #11872
Unanswered
airwolfx
asked this question in
Development Questions
Replies: 1 comment
-
Please explain the issue and what you're trying to accomplish, there is no context here and this appears to be a script and copied error message that already explains what the problem is. However, I'd recommend the Discord for help with scripts in our #scripting channel. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
def wait_for_video_end(ws, source_name):
"""等待当前视频播放结束"""
while True:
try:
print(source_name)
media_status = ws.call(requests.GetSourceActiveStatus(sourceName=source_name))
response = ws.call(requests.GetSourceSettings(sourceName=source_name))
print(media_status)
print(response)
if not media_status.get("isActive"):
break
except Exception as e:
print(f"检查媒体源状态失败: {e}")
time.sleep(1)
其中 ws.call(requests.GetSourceActiveStatus(sourceName=source_name)) 这里返回的信息中没有 isActive这一项,内容:<GetSourceActiveStatus request ({'sourceName': '抗倒伏视频'}) called: failed ({})>,这是为什么呢?抛出Baserequests.getattr..getter() takes 0 positional arguments but 1 was given异常,请大神救救我
Beta Was this translation helpful? Give feedback.
All reactions