Raised This Month: $51 Target: $400
 12% 

[ANY] Radio v2.0.0.8 FINAL (21/08/2017)


Post New Thread Reply   
 
Thread Tools Display Modes
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 09-23-2017 , 15:08   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #581

Quote:
Originally Posted by dubbeh View Post
You getting any type of errors in the log files? Check inside "addons/sourcemod/logs" especially for anything related to MOTD Fixer - Added extra logging in 1.04/1.05 that will give feedback on missing client data, or any type of registraion errors.

Will look into SoundCloud support - Should work almost identical to how YouTube is right now but you won't get the volume control.
Thanks dubbeh! I did notice the logging option in the config and had already turned it on but there is nothing related to MOTD Fixer or Radio.
TrappaTroopa is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-23-2017 , 17:06   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #582

Sounds like the data is getting sent correctly and everything is running right - Will run some local tests with the direct method on YouTube videos tomorrow.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 09-23-2017 , 19:54   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #583

Quote:
Originally Posted by dubbeh View Post
Sounds like the data is getting sent correctly and everything is running right - Will run some local tests with the direct method on YouTube videos tomorrow.
Sounds good! Thanks dubbeh.

Last edited by TrappaTroopa; 09-23-2017 at 19:54.
TrappaTroopa is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 09-26-2017 , 03:19   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #584

Quote:
Originally Posted by dubbeh View Post
Sounds like the data is getting sent correctly and everything is running right - Will run some local tests with the direct method on YouTube videos tomorrow.
Hey dubbeh any luck?
TrappaTroopa is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-26-2017 , 03:25   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #585

Hey, Think it might be 2 possibilities.

MOTD Fixer might need to specify a different media type in the <object> tag, or certain YouTube videos not allowing to be embedded.

Going to run some tests later today and work out where stuff is going wrong.

Edit:
Managed to get this working quite fast, was actually pretty easy to fix. Just need to modify the YouTube video links a little and make sure they support/allow embedding.

Say you have a video with the link: https://www.youtube.com/watch?v=J_ub7Etch2U

Make sure to save the video ID and modify it to look something like this inside radiodirect.txt : https://www.youtube.com/embed/J_ub7Etch2U?autoplay=1 instead of using the standard link above.

We want the autoplay=1 so it will play in the background.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 09-26-2017 at 04:46.
dubbeh is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 09-26-2017 , 08:37   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #586

Quote:
Originally Posted by dubbeh View Post
Hey, Think it might be 2 possibilities.

MOTD Fixer might need to specify a different media type in the <object> tag, or certain YouTube videos not allowing to be embedded.

Going to run some tests later today and work out where stuff is going wrong.

Edit:
Managed to get this working quite fast, was actually pretty easy to fix. Just need to modify the YouTube video links a little and make sure they support/allow embedding.

Say you have a video with the link: https://www.youtube.com/watch?v=J_ub7Etch2U

Make sure to save the video ID and modify it to look something like this inside radiodirect.txt : https://www.youtube.com/embed/J_ub7Etch2U?autoplay=1 instead of using the standard link above.

We want the autoplay=1 so it will play in the background.
Ahh! That makes so much sense! Thank You! I will be adding music to my surf server like mad later tonight! Thanks!

A couple of questions,

Are there any plans to add user playlists? Say a user does the following:

!createplaylist MyAwesomePlaylist
!addsong youtubeurl MyAwesomePlaylist
!shareplaylist MyAwesomePlaylist - Makes it public to everyone in the server and they can listen (NOT eavesdrop)

I understand this would require a lot of time to code and wouldn't be easy. I just wanted to know if it is in the plans or is in the scope of this project.

Last edited by TrappaTroopa; 09-26-2017 at 16:53.
TrappaTroopa is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-26-2017 , 16:31   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #587

That's perfectly possible with Radio right now but would require a few details from the YouTube API.

Would need to retrieve things like the video duration for when to auto-switch song for example and save an internal timer, also the ability to save user playlists.

Might be better to release a different music type system with the ability to use media files and YouTube/SoundCloud etc. Radio was mostly made to use radio stations xD

It's definitely something I'm interested in looking in to for sure
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome

Last edited by dubbeh; 09-26-2017 at 16:31.
dubbeh is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 09-26-2017 , 16:55   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #588

Quote:
Originally Posted by dubbeh View Post
That's perfectly possible with Radio right now but would require a few details from the YouTube API.

Would need to retrieve things like the video duration for when to auto-switch song for example and save an internal timer, also the ability to save user playlists.

Might be better to release a different music type system with the ability to use media files and YouTube/SoundCloud etc. Radio was mostly made to use radio stations xD

It's definitely something I'm interested in looking in to for sure
That's great! I can't wait xD

I hate to keep bothering you . I promise I am good at this stuff lol. But I just cant get it too work

I am now getting an error and I can't hear anything still

Code:
[motdf.smx] Error: Error registering URL. - Is Server Blocked: No
There still isn't a log file.

My radiodirect.txt

Code:
"Radio Stations"
{
	"Use Genres"		"0"


	"More Music Coming Soon!"
	{
		"Stream URL"		"https://www.youtube.com/watch?"
		"Station ID"		"1"
	}

	"Blackbear IDFC Tarro Remix (Tarro Remix)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=gxE4ngu78Ro?autoplay=1"
		"Station ID"		"2"
	}

	"SIDI - Trip"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=4gIk9XrCYVc?autoplay=1"
		"Station ID"		"3"
	}

	"Noclu - Ciggarettes & Smoke"
	{
		"Stream URL"		"https://soundcloud.com/noclu/noclu-cigarettes-and-ashes"
		"Station ID"		"4"
	}

	"METAHESH - Gold (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=G_ayXSHB-4Q?autoplay=1"
		"Station ID"		"5"
	}

	"METAHESH - Gold (Trap) (Bass Boosted)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=XePr-KXzJPA?autoplay=1"
		"Station ID"		"6"
	}

	"JAEGER - Until Dawn (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=U8T6wocw4so?autoplay=1"
		"Station ID"		"7"
	}

	"JAEGER - Until Dawn (Trap) (Bass Boosted)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=6kAFJ7NuxYw?autoplay=1"
		"Station ID"		"8"
	}

	"Valesco - Cloud 9 [Argofox] (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=Rxcp0SiyhIk?autoplay=1"
		"Station ID"		"9"
	}

	"Woofax - The Edge ft. SHRKY (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=9VH0-gBeY8c?autoplay=1"
		"Station ID"		"10"
	}

	"Blvk Sheep & Holly - LGI (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=Y_g7CY4kUgw?autoplay=1"
		"Station ID"		"11"
	}

	"Ship Wrek - Abyss (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=nsFMn0wUElw?autoplay=1"
		"Station ID"		"12"
	}

	"Flux Pavilion X Ekali - I Can't Stop (Just A Tune Flip) (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=BUcrK9YCmjA?autoplay=1"
		"Station ID"		"13"
	}

	"Bass Boosted Best Trap Mix"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=Ar8QqHmuM18?autoplay=1"
		"Station ID"		"14"
	}
	"Bass Booosted Trap Mix"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=BXECkuYVB2s?autoplay=1"
		"Station ID"		"15"
	}

	"Stephen - Remembering Myself (Future)"
	{
		"Stream URL"		"https://www.youtube.com/watch?v=15ry8nvYLdQ?autoplay=1"
		"Station ID"		"30"
	}
}

Last edited by TrappaTroopa; 09-26-2017 at 16:58.
TrappaTroopa is offline
dubbeh
Senior Member
Join Date: Jul 2007
Old 09-26-2017 , 17:11   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #589

Hey, The links for the YouTube videos have to be modified a little bit (Need to make sure they're embedded for MOTD Fixer).

Hopefully these small changes fix it:
Code:
"Radio Stations"
{
	"Use Genres"		"0"


	"More Music Coming Soon!"
	{
		"Stream URL"		"https://www.youtube.com/watch?"
		"Station ID"		"1"
	}

	"Blackbear IDFC Tarro Remix (Tarro Remix)"
	{
		"Stream URL"		"https://www.youtube.com/embed/gxE4ngu78Ro?autoplay=1"
		"Station ID"		"2"
	}

	"SIDI - Trip"
	{
		"Stream URL"		"https://www.youtube.com/embed/4gIk9XrCYVc?autoplay=1"
		"Station ID"		"3"
	}

	"Noclu - Ciggarettes & Smoke"
	{
		"Stream URL"		"https://soundcloud.com/noclu/noclu-cigarettes-and-ashes"
		"Station ID"		"4"
	}

	"METAHESH - Gold (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/G_ayXSHB-4Q?autoplay=1"
		"Station ID"		"5"
	}

	"METAHESH - Gold (Trap) (Bass Boosted)"
	{
		"Stream URL"		"https://www.youtube.com/embed/XePr-KXzJPA?autoplay=1"
		"Station ID"		"6"
	}

	"JAEGER - Until Dawn (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/U8T6wocw4so?autoplay=1"
		"Station ID"		"7"
	}

	"JAEGER - Until Dawn (Trap) (Bass Boosted)"
	{
		"Stream URL"		"https://www.youtube.com/embed/6kAFJ7NuxYw?autoplay=1"
		"Station ID"		"8"
	}

	"Valesco - Cloud 9 [Argofox] (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/Rxcp0SiyhIk?autoplay=1"
		"Station ID"		"9"
	}

	"Woofax - The Edge ft. SHRKY (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/9VH0-gBeY8c?autoplay=1"
		"Station ID"		"10"
	}

	"Blvk Sheep & Holly - LGI (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/Y_g7CY4kUgw?autoplay=1"
		"Station ID"		"11"
	}

	"Ship Wrek - Abyss (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/nsFMn0wUElw?autoplay=1"
		"Station ID"		"12"
	}

	"Flux Pavilion X Ekali - I Can't Stop (Just A Tune Flip) (Trap)"
	{
		"Stream URL"		"https://www.youtube.com/embed/BUcrK9YCmjA?autoplay=1"
		"Station ID"		"13"
	}

	"Bass Boosted Best Trap Mix"
	{
		"Stream URL"		"https://www.youtube.com/embed/Ar8QqHmuM18?autoplay=1"
		"Station ID"		"14"
	}
	"Bass Booosted Trap Mix"
	{
		"Stream URL"		"https://www.youtube.com/embed/BXECkuYVB2s?autoplay=1"
		"Station ID"		"15"
	}

	"Stephen - Remembering Myself (Future)"
	{
		"Stream URL"		"https://www.youtube.com/embed/15ry8nvYLdQ?autoplay=1"
		"Station ID"		"30"
	}
}
Only need to replace the "watch?v=" with "embed/" and add "?autoplay=1" at the end.

If you still have problems, feel free to give me a shout and will look into it.
__________________
SM Plugins - dubbeh.net - Plugin requests are welcome
dubbeh is offline
TrappaTroopa
Senior Member
Join Date: Feb 2016
Old 09-26-2017 , 17:23   Re: [ANY] Radio v2.0.0.8 FINAL (21/08/2017)
Reply With Quote #590

Quote:
Originally Posted by dubbeh View Post
Hey, The links for the YouTube videos have to be modified a little bit (Need to make sure they're embedded for MOTD Fixer).

Hopefully these small changes fix it:

Only need to replace the "watch?v=" with "embed/" and add "?autoplay=1" at the end.

If you still have problems, feel free to give me a shout and will look into it.
Ahh I did see the autoplay part in your last post but missed the embed part. I really need to work on my attention to detail xD. Thanks!

Edit I do remember you saying there wouldn't be volume control for YT before I even started doing this. Is this because you need to add the function into the plugin itself? Is there a value I can already edit and recompile?

Or is it controlled by PHP scripts on your webserver?

Last edited by TrappaTroopa; 09-26-2017 at 17:36.
TrappaTroopa is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode