Pivity

How to Include Youtube Song Name in Loading Screen

Last read Never
#1

I'm making my first loading screen and I want to include the song's name in the loading screen but I don't know how to do it. Any help is appreciated.

Edit: Also including players that have visited that web page (e.g. https://gyazo.com/d1b4be0211b9bb881beaa9185b7c3e5f source: venner.io)

Thanks, bongLord

#2

I don't really know anything about CSS HTML or PHP but I think you gotta use "iFrames" or sth. similar where you would open the video without displaying the frame

#3

Visits can be done by writing a 1 for each unique visit then storing it inside a file whilst adding it with the total users, I use to have one but don't anymore.

Only real thing you can do for a song name is to include them in a second array:

songs = array( 'you tub link' );

song_name = array( 'name to the first song in the array' );

Edited

jfc just noticed this is a 2 week old thread, y'd you bump it

#4

There is a thing with youtube called oembed and it can give you the title, poster, etc from the youtube link.

Sorry for the necro just maybe someone will see this and it will be helpful.

EDIT: For Page views, I would use a MySQL database, OR store it in a json file, or something.

#5

This is a mega lazy way I just thought off the top of my head. Name your chosen songs (1,2,3) and so on. Make js mathrandom function that will go up to the max amount of songs you have. make an array so if its 1 it'll output something else.

e.g. 1 => "Song name", 2 = > "Second Song"

again, really lazy way but is super easy.

Users viewing this thread
Nobody