Posts: 7
Joined: Jan 2023
Reputation:
0
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.
Posts: 7
Joined: Jan 2023
Reputation:
0
Thanks for info but I don't have this option (in Chorus):
Enable your addon in kodi
Navigate to the autoexec add-on in the addonbrowser and enable it:
Settings > Add-ons > My add-ons > Services > Autoexec Service
Posts: 4,007
Joined: Jan 2023
Reputation:
404
you didnt read the link then
"(This replaces the old way of adding a autoexec.py file in the userdata folder, this is deprecated.[1])"
Posts: 7
Joined: Jan 2023
Reputation:
0
I'm sorry, but I think I've read all of it.
In fact, In the middle says to enable this add-on (before the examples) and that is the menu/option I don't have in Chorus, if you read well.
Posts: 4,007
Joined: Jan 2023
Reputation:
404
in fact, if YOU read well, the autoexec.py in userdata method DOES NOT EXIST ANYMORE
the guide given is showing you how to make your own autoexec addon and when you are finished making it you can enable the addon within kodi
it is NOT a system setting you are trying to turn on, it is enabling the addon that YOU create with the guide
Posts: 7
Joined: Jan 2023
Reputation:
0
Maybe you are not understanding or I'm explaining wrongly....
YES, it is clear the autoexec.py file in the userdata folder is deprecated, not need to repeat it 100 times.... This is not the problem.
The link states:
1) Automatically execute code when Kodi starts up.
If you wish to run some code automatically when Kodi starts, you can do so by creating a service add-on.
2) Create a folder for your autoexec add-on
Navigate to the addons folder in the Kodi Data Folder
Create a 'service.autoexec' folder in the addons folder.
3) Add an autoexec.py file
Move your existing autoexec.py file to this folder, or if you don't have one yet, create it and check out the code examples below.
4) Add an addon.xml file
Create an addon.xml file in this folder and copy and paste the following code to it:
5) Enable your addon in kodi
Navigate to the autoexec add-on in the addonbrowser and enable it:
Settings > Add-ons > My add-ons > Services > Autoexec Service
I did 1, 2, 3 and 4. For #5 I don't have that option in the Add-ons menu.
So, please, if you would be rude, do not reply..... I'm looking for someone interested on helping others.
Posts: 7
Joined: Jan 2023
Reputation:
0
Fixed.
The option in Chorus is in:
Settings -> Add-ons and look for:
xbmc.service -> Autoexec Service -> Enable
Posts: 7
Joined: Jan 2023
Reputation:
0
too fast.
The script starts but plays the video 2 times and then stop.
I've seen that the queue is showing the playing in the Audio, not video... I think this could be the problem even if in the autoexec.py I've stated a video playlist.
Posts: 2,030
Joined: Sep 2015
Reputation:
76
Atreyu
Posting Freak
Posts: 2,030
2023-01-24, 21:39
(This post was last modified: 2023-01-24, 21:45 by Atreyu. Edited 3 times in total.)
/edit Sorry, misunderstood the goal.
Posts: 2
Joined: Dec 2024
Reputation:
0
2024-12-10, 16:31
(This post was last modified: 2024-12-10, 18:08 by PatK. Edited 1 time in total.)
Hello, I could help you, I made several scripts in ssh using libreelec raspberry. so that it plays an m3u8 video all day in case the internet fails, it resolves it, error message too, so that it can play videos without problems. Write to me if you still haven't solved the problem.
Posts: 2
Joined: Dec 2024
Reputation:
0
If this is how things go, I'd better keep quiet.
Posts: 2
Joined: Nov 2020
Reputation:
0
If you could be so kind to post some details you'd be helping me too, not just the OP.
Currently looking at purchasing a Raspberry Pi 4B and putting LibreElec on it. I want to make it automatically loop the videos in a directory. This so we can use it during meetings to display some movies on a screen.
This way people less versed with tech can just put whatever videos they want on loop in a directory on the SD, attach it to a screen and boot it.