(2019-05-05, 10:55)Kriven Wrote: (2019-04-07, 17:09)Dumyat Wrote: Have set up a new node which points to the random movies playlist on the Estuary skin. When the node is selected from the home screen a playlist of random movies in my library is displayed. What I'd really like to achieve is when this node is selected, a random movie from this playlist will automatically start playing. Is it possible to do this?
If you hover over a node and hit "P" on your keyboard, the node will start to play. If you want a random movie node, just populating the node with all of your movies and setting the sort option to "random" should work. So when you hit "P" over that node, it ought to play a random movie for you.
If you want to avoid repeats, I recommend adding a rule along the lines of "Lastplay before 2019." Tis what I do.
@
Kriven
Thanks for the tip.
Unfortunately, I use a remote control to navigate around Kodi, so not really wanting to combine that with Keyboard press as well. However, I did try what you had recommended and pressed 'P' on my keyboard when the node on my home screen was highlighted, but nothing actually happened. To illustrate better what happens when I press OK or enter on this node from my home screen, the following window opens with a random movie showing:-
I can then obviously click OK on my remote or 'P' on the keyboard and it will play the movie, but what I'm trying to achieve is to bypass this screen altogether, ie the moment I press the node from the home screen, the random movie generated will automatically start playing, like it does when you create a playlist of 1 random item.
I was hoping there might have been something I could manually add to the node code. Something like this maybe:-
php:
<onclick>playmedia</onclick>
php:
<onclick>autoplay</onclick>
Any further suggestions are more than welcome.
Cheers