Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 21, 2024 - @635.72 (what is this?)
Forum activity rating: Three Stars Posts: 37/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :eyes: ~ Inconvenience is counterculture ~ :eyes:

+  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 1536 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
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: 4751
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: 10199
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: 2078
Last post July 12, 2022 @876.92
by morrysillusion

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies 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