Entrance Events! Chat Gallery Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
February 06, 2025 - @116.19 (what is this?)
Activity rating: Four Stars Posts & Arts: 80/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: :4u: Love is not possession  :4u: Super News: E-Zine #3 Accepting Entries!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ♺ ∙ Web Crafting Materials
| | |-+  niumusicplayer - simple js youtube playlist player


« previous next »
Pages: [1] Print
Author Topic: niumusicplayer - simple js youtube playlist player  (Read 1916 times)
drakonic
Casual Poster ⚓︎
*


⛺︎ My Room
Matrix: Chat!
Itch.io: My Games

View Profile WWW

First 1000 Members!Tiny Birthday DragonJoined 2023!
« on: April 02, 2023 @627.62 »

Hello everyone.

A couple days ago I got a little frustrated that the youtube music player I've been using on my site is a bit annoying to update. It played from a collection of manually pasted titles and video ids. So I decided to try and make it use youtube playlists.
My previous attempt at that, a couple months ago, didn't work out, but now I have made what I wanted! And I wanted to share it.

Here's the link to the music player's repository. There you'll find the script and instructions.

Feel free to share thoughts and feedback :ok:
Logged





sig
Sr. Member ⚓︎
****


the great

⛺︎ My Room
iMood: sigmatic

View Profile WWW

First 1000 Members!Certified chocoboGoose!Joined 2022!
« Reply #1 on: April 02, 2023 @698.98 »

Thank you so much, I've been looking for something exactly like this!  :4u:
Logged

          
The world ends with you. If you want to enjoy life, expand your world. You gotta push your horizons out as far as they go.
drakonic
Casual Poster ⚓︎
*


⛺︎ My Room
Matrix: Chat!
Itch.io: My Games

View Profile WWW

First 1000 Members!Tiny Birthday DragonJoined 2023!
« Reply #2 on: April 03, 2023 @346.60 »

Happy to to hear that! ^^
Logged





tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #3 on: April 07, 2023 @878.40 »

Hi! First of all, thanks a lot for sharing your player, it's very simple to install and is the first one that actually works for me

However! I have a question.

Scratch that, now I'm just confused  :omg:

I was going to ask for help because the music would autoplay each time I opened the page (and I re-embedded it like three times, yet the problem persisted), but then I just as a second thought decided to make the playlist public instead of unlisted and... it stopped autoplaying?..

...I am very confused but WELL it works now, so just thank you  :happy:
Logged



"Why change the past, when you can own this day?" (c)
tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #4 on: April 07, 2023 @894.32 »

...okay, spoke too soon...  :notgood:

It's quiet when I open the page directly, but for some reason it still fires up if I go BACK to said page by using a nav link from other pages of the site... (or even simply click 'home' while being on it tbh)

So, uh

 :ozwomp: SOS  :ozwomp:

Should probably clarify that this is happening on Chromium-based Brave, while Firefox, of course, seems to be okay. Still wonder if there's a way to definitedly block autoplay - you never know which browser your visitors are using... Just out of sheer curiosity fired up Edge and yeah, same thing there.  :ohdear:
Logged



"Why change the past, when you can own this day?" (c)
drakonic
Casual Poster ⚓︎
*


⛺︎ My Room
Matrix: Chat!
Itch.io: My Games

View Profile WWW

First 1000 Members!Tiny Birthday DragonJoined 2023!
« Reply #5 on: April 08, 2023 @972.45 »

Firefox disables autoplay on every site by default. As for other browsers...

The player autoplays by default. I'll add a html attribute toggle, like for shuffling, and turn it off by default. Later, though, 'cause its late over here rn :p

As for now, a fix would be to be remove line 40 of the script, this one:
Code
event.target.playVideo();

Lemme know if that works! And thank you for the kind words and feedback  :4u:
Logged





tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #6 on: April 08, 2023 @978.59 »

It does work! Thank you very much for answering so quickly despite it being late :4u:
Logged



"Why change the past, when you can own this day?" (c)
LIA
Full Member
***


closing time

⛺︎ My Room
StatusCafe: six
iMood: sintax

View Profile

First 1000 Members!Joined 2023!
« Reply #7 on: May 01, 2023 @636.24 »

can we use youtube links or do we have to link a playlist or upload the mp3 files manually?s
Logged
tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #8 on: May 01, 2023 @661.31 »

can we use youtube links or do we have to link a playlist or upload the mp3 files manually?s

You create a playlist on YouTube out of all the songs you want, and then just embed the playlist ID in the code

Here:



This part:

Logged



"Why change the past, when you can own this day?" (c)
LIA
Full Member
***


closing time

⛺︎ My Room
StatusCafe: six
iMood: sintax

View Profile

First 1000 Members!Joined 2023!
« Reply #9 on: May 01, 2023 @663.95 »

You create a playlist on YouTube out of all the songs you want, and then just embed the playlist ID in the code

Here:



This part:



thank you so much ^^
Logged
tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

First 1000 Members!Joined 2022!
« Reply #10 on: January 04, 2025 @733.89 »

Heyo!

Bringing this topic up hoping someone may help me

For some reason this player stopped working for me (recently, too, last month everything was fine). The "play" button doesn't always work, the song name doesn't always appear, and the "prev/next" buttons just don't work for me period - or if they momentarily do, they jump over songs (and then get stuck anyway). I've checked, the videos in the playlist itself are fine.

Was there some kinda update for YouTube that messes with the script now or is there something else on my end that could be going on? Would be a pity to lose this player, I've really gotten used to it.

(One instance of the player is embedded on my site's main page if anyone wants to cross-reference whether it's a shared issue or not).

I checked on Firefox and also on Firefox-based Floorp. On Chrome too, just in case. The problem with "prev/next" especially persists on all of them.
Logged



"Why change the past, when you can own this day?" (c)
Corrupted Unicorn
Full Member ⚓︎
***


Obscure Niche Internet Mad Artist

⛺︎ My Room

View Profile WWWArt

First 1000 Members!Joined 2023!
« Reply #11 on: January 17, 2025 @625.44 »

Hey! Just dropping by to say I've been looking for something like this, so thanks for the code!  :ozwomp:

However, I've also had a few issues with it. The strangest of them all, is that it seems to work for EVERY playlist except the one I actually want  :drat: Is it a matter of playlist size, or how long the videos are?
Logged

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

GUIDE: Melon's Simple X3D World Tutorial

Started by MelooonBoard ♺ ∙ Web Crafting Materials

Replies: 5
Views: 5059
Last post February 17, 2022 @637.75
by demonologi
Iconic Video Game Songs [Player's Choice Award]

Started by NightdriftBoard © ∙ Music Room

Replies: 24
Views: 10591
Last post March 21, 2024 @26.45
by konamiesque
Simple ways to create and upload a large art gallery?

Started by morrysillusionBoard ☔︎ ∙ I need Help!

Replies: 7
Views: 2266
Last post July 12, 2022 @876.92
by morrysillusion

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi