2023-01-18, 00:16
Hello, my Kodi system is running on a NUC PC with LibreELEC version 10.0.3, Kodi 19.4.
I'm trying to play a video in loop in autoplay without the user action.
From the information I could find, it seems it is supported but I'm not able to make it work.
Said that, my steps were the following ones:
1) created autoexec.py in /storage/.kodi/userdata/ with the following info:
import xbmc
xbmc.executebuiltin("PlayMedia(/storage/.kodi/userdata/playlists/video/[playlist name.m3u],playlist_type_hint=1)")
xbmc.executebuiltin("PlayerControl(Repeat)")
2) created the video playlist ([playlist name.m3u]) in /storage/.kodi/userdata/playlists/video/ with the following info:
#EXTCPlayListM3U::M3U
#EXTINF:138,[video info]
/storage/videos/[video file].mp4
3) Of course, upload the [video file].mp4 in the /storage/videos/ folder
But the playlist does not even start.
From the "newer" Kodi documentation, it seems that it would be possible even play the video file without the playlist. That didn't work neither.
I would appreciate if someone could tell me if it's possible my request (Autoplay video in loop) and how or what I'm doing wrong.
Thanks.
I'm trying to play a video in loop in autoplay without the user action.
From the information I could find, it seems it is supported but I'm not able to make it work.
Said that, my steps were the following ones:
1) created autoexec.py in /storage/.kodi/userdata/ with the following info:
import xbmc
xbmc.executebuiltin("PlayMedia(/storage/.kodi/userdata/playlists/video/[playlist name.m3u],playlist_type_hint=1)")
xbmc.executebuiltin("PlayerControl(Repeat)")
2) created the video playlist ([playlist name.m3u]) in /storage/.kodi/userdata/playlists/video/ with the following info:
#EXTCPlayListM3U::M3U
#EXTINF:138,[video info]
/storage/videos/[video file].mp4
3) Of course, upload the [video file].mp4 in the /storage/videos/ folder
But the playlist does not even start.
From the "newer" Kodi documentation, it seems that it would be possible even play the video file without the playlist. That didn't work neither.
I would appreciate if someone could tell me if it's possible my request (Autoplay video in loop) and how or what I'm doing wrong.
Thanks.