Hello all! I'm hoping to get some help with a confusing problem I am having.
I am using Unity to send Raspberry Pi 4s jsonrpcs. That is working great. The functionality I am aiming for is to have whatever video is sent from Unity to the Pi to repeat until a new video is sent, and for that video to repeat, and so on. So basically, play a single video on repeat.
A few months ago, I figured out how to do this. I used ssh to set an autoexec.py file with this code:
import xbmc
xbmc.executebuiltin("PlayMedia(/storage/.kodi/userdata/playlists/video/your_playlist.m3u8)")
xbmc.executebuiltin("PlayerControl(RepeatAll)")
It worked great. For whatever reason, no matter what video I send it loops, not just the playlist set in the autoexec. But now, trying to duplicate these settings on a different Pi, it won't work. I can send the second Pi a video, it plays, but it does not loop. When the video is done, it goes back to the menu. I have no idea what is different and why the first Pi works and the second does not. I must be missing something but can't for the life of me figure it out.
I'm not sure if my question is clear, or if there are too many unknowns to parse, but I can't figure it out and it's driving me crazy, so I'm hoping someone can tell me where I went wrong!