Kodi Community Forum
Req how to autoplay iptv channel when starting kodi ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Req how to autoplay iptv channel when starting kodi ? (/showthread.php?tid=368158)



how to autoplay iptv channel when starting kodi ? - twlhack - 2022-05-07

how to autoplay iptv channel when starting kodi or starting coreelec 

I have now installed iptv simple pvr client addon 

How to use xmbc python script to automatically play iptv channels when booting


RE: how to autoplay iptv channel when starting kodi ? - Atreyu - 2022-05-07

Maybe the setting Interface - Startup - Perform on Startup does what you want?


RE: how to autoplay iptv channel when starting kodi ? - twlhack - 2022-05-07

yeah, thanks for answer
Your answer is indeed easy to make it start to play automatically 
but 
I want to do automatic startup schedule playback, such as playing channel 1 at 12 noon and channel 2 at 22 o'clock in the evening


RE: how to autoplay iptv channel when starting kodi ? - twlhack - 2022-05-07

(2022-05-07, 09:37)Atreyu Wrote: Maybe the setting Interface - Startup - Perform on Startup does what you want?
yeah, thanks for answer
Your answer is indeed easy to make it start to play automatically 
but 
I want to do automatic startup schedule playback, such as playing channel 1 at 12 noon and channel 2 at 22 o'clock in the evening


RE: how to autoplay iptv channel when starting kodi ? - Atreyu - 2022-05-07

I see. Don't know much about python scripting, so someone else might be able to do some magic there, but what I do to have programs start on a schedule is set reminders in the guide.
As long as Kodi is running it will start all selections according to guide data.


RE: how to autoplay iptv channel when starting kodi ? - enen92 - 2022-05-07

See https://kodi.wiki/view/Autoexec_Service

regarding the python script, it's as simple as:
 
Code:
import xbmc
xbmc.executebuiltin('PlayMedia(yoururl)')