• Welcome to RadioDJ - Free Radio Automation Software Forum. Please log in or sign up.

YouTube video playing of current track

Started by andrei1412, April 26, 2020, 01:22:28 PM

andrei1412

My database contains lyrics of songs & Youtube videoID on my wordpress site.
I managed to display the live lyrics of the current song, and because i have the youtube ID i'm thinking to display on the live page a muted youtube video, and when the song changes the video changes itself.
I don't know exactly how to implement this, i tried using AJAX and song duration but it doesn't work as it should.
Any ideas :D

EmmaS

Quote from: andrei1412 on April 26, 2020, 01:22:28 PM
My database contains lyrics of songs & Youtube videoID on my wordpress site.
I managed to display the live lyrics of the current song, and because i have the youtube ID i'm thinking to display on the live page a muted youtube video, and when the song changes the video changes itself.
I don't know exactly how to implement this, i tried using AJAX and song duration but it doesn't work as it should.
Any ideas :D

Not sure what you're meaning by "Live Lyrics" of the current song ?
That would indicate to me that your lyrics per song are coming in as a live display while the song is playing line by line.

Displaying a Youtube Video in relation to a song isn't difficult if you have the Id however it'll be near impossible to match what song your playing to the muted song from youtube, firstly dependant on how fast the refresh is on your now playing page, then it'll depend on which browser a user is using, you've also got to await the loading of the you tube video this isn't to mention your servers lag with the music stream.
XperienceRewind.co.uk - 70s and 80s None Stop
https://www.xperiencerewind.co.uk/

XperienceRadio.co.uk - Club Dance & Trance
https://www.xperienceradio.co.uk/

andrei1412

Quote from: EmmaS on April 26, 2020, 04:27:07 PM
Not sure what you're meaning by "Live Lyrics" of the current song ?
That would indicate to me that your lyrics per song are coming in as a live display while the song is playing line by line.

Displaying a Youtube Video in relation to a song isn't difficult if you have the Id however it'll be near impossible to match what song your playing to the muted song from youtube, firstly dependant on how fast the refresh is on your now playing page, then it'll depend on which browser a user is using, you've also got to await the loading of the you tube video this isn't to mention your servers lag with the music stream.

Live lyrics just show for the current tracks the lyrics, like in the picture, you click on the button above the player and it shows them in a popup

Look at this french radio -> https://www.hotmixradio.fr/hits
Click on Regardez ce que vous ├ęcoutez !
and you see that they managed somehow

[attachment deleted by admin]

EmmaS

Quote from: andrei1412 on April 26, 2020, 10:43:47 PM
Live lyrics just show for the current tracks the lyrics, like in the picture, you click on the button above the player and it shows them in a popup

Look at this french radio -> https://www.hotmixradio.fr/hits
Click on Regardez ce que vous ├ęcoutez !
and you see that they managed somehow

Popup lyrics, I wouldn't call it Live lyrics as there not in real time with the song playing.

As for the link, They're not actually playing a song in time with the video from youtube, they're just offering you the view option while they're song is playing it's giving you the option to watch the video and when the song changes it'll pull in a new feed from your tube for whats playing..

XperienceRewind.co.uk - 70s and 80s None Stop
https://www.xperiencerewind.co.uk/

XperienceRadio.co.uk - Club Dance & Trance
https://www.xperienceradio.co.uk/

andrei1412

Quote from: EmmaS on April 26, 2020, 11:34:50 PM
Popup lyrics, I wouldn't call it Live lyrics as there not in real time with the song playing.

As for the link, They're not actually playing a song in time with the video from youtube, they're just offering you the view option while they're song is playing it's giving you the option to watch the video and when the song changes it'll pull in a new feed from your tube for whats playing..

I managed to do it! I'm using RadioDJ Rest API to get the current position of the track and the remaining time.


andrei1412

Quote from: stevewa on April 29, 2020, 01:45:38 PM
nice job

if you want to see it live I can send you PM with the link (I don't want to be considered as an advertisement)

ufratetoto

Quote from: andrei1412 on April 29, 2020, 02:03:00 PMif you want to see it live I can send you PM with the link

Hi there! Can You please send it to me too? Thanks!
https://www.zakradio.net - https://www.facebook.com/zakradionet/

PresidentOfACPJ

Quote from: andrei1412 on April 29, 2020, 02:03:00 PMif you want to see it live I can send you PM with the link (I don't want to be considered as an advertisement)
Me too, thank you.
KBMZ RADIO:

radiorockfm.com.br/
twitter: @radiorockfmreal/
fb: @radiorockfmreal

studioflashback.com.br
twitter: @radiosflashback
fb: @radiostudioflashback

BR The Classic Rock:
radiorockfm.com.br/br
twitter. @classicrockbr
fb: @classicrockbr

ZTOP:
radiorockfm.com.br/ztop
twitter: @ztop
fb: @ztop