|
|
@@ -81,10 +81,10 @@ class KodiClient:
|
|
|
return {"queued": True, "file": rtsp_url}
|
|
|
|
|
|
def play_video(self, video_path, loop=False):
|
|
|
- """播放指定路径的视频文件(异步派发)。"""
|
|
|
- params = {"item": {"file": video_path}}
|
|
|
+ """播放指定路径的视频文件(异步派发),loop为是否循环播放"""
|
|
|
+ params = {"item": {"file": video_path, "loop": loop}}
|
|
|
self._send_request_async("Player.Open", params)
|
|
|
- logger.info(f"[async] Player.Open(video) 已派发: {video_path}")
|
|
|
+ logger.info(f"[async] Player.Open(video) 已派发: {video_path}, 循环: {loop}")
|
|
|
return {"queued": True, "file": video_path}
|
|
|
|
|
|
def play_playlist_looped(self, video_paths):
|