Had a crazy idea but wondered if it's possible to use MD as my DJ

Aaricon

New member
i was listening to a playlist on youtube and something popped up and stopped my browser player so i had a thought about using MD as my personal DJ. and i wanted to know if it was even possible (since i'm having a hard time learning what the app can actually do and what a lot of the commands are...i'm still trying but with much less complexity than i feel this has)
my idea: (which i have implemented so far)
"VOLUME UP BUTTON TRIGGER"
"open youtube website" (of creator with playlist)
"wait a few seconds for page to fully load"
"click on the playlists text button"
"wait a few more seconds"
"click on the name of a specific playlist"

HOWEVER: this seems to work only some of the time - as i've noticed that it sometimes stalls before clicking the playlists link on the page
sometimes it works,

but what i'm curious about is, is there a way to monitor that the playlist is actually playing, and if not, kick it off? (maybe even pick up where it left off?) so it is constantly being monitored without actively listening for sound, since i would eventually like to implement this for small gatherings where background noise might interfere with the running of the script.

i kinda got this idea from a website called payup.video (trust me they don't pay up that much) that created their own MD script to do something similar, so i tried to go through there to see if i could use any of their works to suit my needs, the more steps i looked at, the more confused i got.

so the big question, is this even possible? and if so, where would one go to learn how to do this?
my biggest hangup so far is using variables - like what are the limitations of what a variable can be? like player playing = false then click play or something?

i've prefaced a post or 2 before mentioning that my programming skills were mostly BASIC (back in the early 80's and i failed miserably in languages like c++ and pascal later in college, but i do understand "if, then, else" commands. so my programming skills are severly lacking.

sorry for the length of the post, and all info would be much appreciated.
 

sampleuserhere

Active member
It should be doable.

Given your background, this may be very tedious to setup and may require some plugins & apps as well.

Here's the routines I have in mind.
  1. Get the playlists from a channel with youtube-dlp via Termux.
  2. Randomise the playlist.
  3. Play in NewPipe.
  4. React to Media Notification changes.
Potentially required apps: Termux, Termux:Task, Autonotification, NewPipe.

Potentially required Termux packages: yt-dlp, tudo.

For the time being you can try to find out about the above I guess.

I'll try to write the macro at night, it shouldn't be that long since I already had a couple of similar macros.

Edit:

I attached the macro now. The requirements is in the description.

Here's the demo.

 

Attachments

  • Sample_DJ.macro
    21.9 KB · Views: 2
  • Sample_DJ.png
    Sample_DJ.png
    195.6 KB · Views: 5
Last edited:

sampleuserhere

Active member
hey thanks, i'll give that a try and see if i'm smart enough to make your settings work LOL

Good luck, the macro is more or else plug and play, if everything else is set up properly.

Termux

Termux:Task

tudo

ytdlp
 
Top