Home Entrance Wiki Search Login Register

Welcome, Guest. Please login or register.
June 04, 2023, 03:57:34 pm - @623.31
Forum activity rating: Four Star Posts: 56/24hrs Unread Topics | Unread Replies | Own Posts | Own Topics | Recent Posts
News: :ozwomp: Reminder: Forum messages stay readable for years! Keep yours high quality! :ozwomp:

+  MelonLand Forum
|-+  World Wide Web
| |-+  ☆ ∙ Showcase & Links
| | |-+  niumusicplayer - simple js youtube playlist player


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


Matrix: Chat!
Itch.io: My Games

View Profile WWW

Tiny Birthday DragonJoined 2023!
« on: April 02, 2023, 04:03:46 pm »

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

iMood: sigmatic

View Profile WWW

Certified chocoboGoose!Joined 2022!
« Reply #1 on: April 02, 2023, 05:46:32 pm »

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 ⚓︎
*


Matrix: Chat!
Itch.io: My Games

View Profile WWW

Tiny Birthday DragonJoined 2023!
« Reply #2 on: April 03, 2023, 09:19:06 am »

Happy to to hear that! ^^
Logged





tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

Joined 2022!
« Reply #3 on: April 07, 2023, 10:04:54 pm »

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

SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

Joined 2022!
« Reply #4 on: April 07, 2023, 10:27:49 pm »

...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 ⚓︎
*


Matrix: Chat!
Itch.io: My Games

View Profile WWW

Tiny Birthday DragonJoined 2023!
« Reply #5 on: April 08, 2023, 12:20:20 am »

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

SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

Joined 2022!
« Reply #6 on: April 08, 2023, 12:29:10 am »

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)
MARI
Full Member ⚓︎
***


send me emails!

StatusCafe: six
iMood: sintax
Matrix: Chat!

View Profile WWW

Joined 2023!
« Reply #7 on: May 01, 2023, 04:16:11 pm »

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

I have typos sometimes, sorry!
ESCARGOT: failgirl@escargot.chat

tarraxahum
Full Member ⚓︎
***


Xx_O_o_xX

SpaceHey: Friend Me!
StatusCafe: tarraxahum
iMood: tarraxahum
Matrix: Chat!

View Profile WWW

Joined 2022!
« Reply #8 on: May 01, 2023, 04:52:17 pm »

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)
MARI
Full Member ⚓︎
***


send me emails!

StatusCafe: six
iMood: sintax
Matrix: Chat!

View Profile WWW

Joined 2023!
« Reply #9 on: May 01, 2023, 04:56:05 pm »

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

I have typos sometimes, sorry!
ESCARGOT: failgirl@escargot.chat

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

GUIDE: Melon's Simple X3D World Tutorial

Started by MelooonBoard ✎ ∙ Making Games & Art Discussion

Replies: 5
Views: 2551
Last post February 17, 2022, 03:18:22 pm
by demonologi
Iconic Video Game Songs [Player's Choice Award]

Started by NightdriftBoard © ∙ Music Room

Replies: 12
Views: 1301
Last post April 01, 2023, 12:50:03 am
by Lyonid
Simple ways to create and upload a large art gallery?

Started by morrysillusionBoard ☔︎ ∙ Help & Tutorials

Replies: 7
Views: 1168
Last post July 12, 2022, 10:02:46 pm
by morrysillusion

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


MelonLand Badges and Other Melon Sites!

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