<div dir="ltr"><div>Hello everyone!</div><div><br></div><div>I developed a scheduled playback control feature inspired by this ticket: <a href="https://trac.videolan.org/vlc/ticket/23005">https://trac.videolan.org/vlc/ticket/23005<br></a></div><div><br></div><div>Almost all the source is in <a href="https://code.videolan.org/jahan/vlc/blob/master/src/playlist/playback_rules.h">playlist/playback_rules.h</a> plus couple of other minor changes all contained in this <a href="https://code.videolan.org/jahan/vlc/-/commit/b555087a51c893f9ea2469b3bdeb61fe1bb68d5f">commit</a>, notably changes in <a href="https://code.videolan.org/jahan/vlc/-/commit/b555087a51c893f9ea2469b3bdeb61fe1bb68d5f#4bd5a5ee908d31bafdfc3dd3de731cf2a4cf526b">control.c</a> <code>vlc_playlist_SetCurrentMedia </code>function.<code><br></code></div><div><br></div><div>I've tested it on Debian dev machine built based on <a href="https://code.videolan.org/videolan/docker-images/-/blob/master/vlc-debian-stable/Dockerfile">docker scripts</a> on videolan gitlab and it's base image. Please check out a demo run on <a href="https://youtu.be/ieVAiJCESHY">Youtube</a>.<br></div><div>The way it works is to lookup the current media folder and it's parent folders to find the file named rule.mrl which has a quite simple syntax:<br></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">00:00-23:59 mtwTFSS              //defines timeslot and weekdays to apply the rule below which can be repeated for different timeslots<br>includes:<br></span></div><div><span style="font-family:monospace">**/**                            <br></span></div><div><span style="font-family:monospace">excludes:<br>**/*Sina%20Sarlak*</span></div><div><br></div><div>There is a function called <span style="font-family:monospace">CheckPlayRules</span> which returns a boolean to escape the current media and go to next one in playlist when returns <span style="font-family:monospace">false</span> and play when returned <span style="font-family:monospace">true</span>.<br></div><div><br></div><div>Highly appreciate any feedback and wondering if we can have it merge in VLC trunk to be part of next release.</div><div><br></div><div>Cheers,</div><div>Jahan<br></div></div>