00:00
00:00
Newgrounds Background Image Theme

Jesspionic just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Embedded Ng Audio Player Play Off

915 Views | 7 Replies
New Topic Respond to this Topic

Embedded Ng Audio Player Play Off 2012-08-11 01:01:34


I have found out how to embed the Newgrounds audio player with ease using html. In Firefox, go onto Tools>Web Developer>Inspect, left-click the player outline, click the down arrow in the box above it and click copy outer html. It seems you can alter some of the existing variables in the code but it seems impossible to from autoplaying.

I was just wondering if anyone can find a fix for this problem, which has been outlined on this blog I came across - http://my-dl.tumblr.com/


Some Folks Are Hollow, Got No Tomorrow...

Response to Embedded Ng Audio Player Play Off 2012-08-11 01:10:37


"but it seems impossible to *stop it from autoplaying" Sorry I didn't proof read =P


Some Folks Are Hollow, Got No Tomorrow...

Response to Embedded Ng Audio Player Play Off 2012-08-11 19:04:46


Why not block it entirely, if you find it annoying.

http://flash.ngfiles.com/audio_player/audioplayer.swf

there, done.

Response to Embedded Ng Audio Player Play Off 2012-08-11 21:42:41


At 8/11/12 07:04 PM, Wurfel-Waffles wrote: Why not block it entirely, if you find it annoying.

http://flash.ngfiles.com/audio_player/audioplayer.swf

there, done.

I'm not sure what you mean, I'm not trying to block anything =P. I'm talking about taking the code from an audio track like this -

<object id="player" data="http://flash.ngfiles.com/audio_player/audioplayer.swf" type="application/x-shockwave-flash" height="290" width="590"><param name="movie" value="http://flash.ngfiles.com/audio_player/audioplayer.swf "><param name="bgcolor" value="#0F0B0C"><param name="allowscriptaccess" value="always"><param name="allowfullscreen" value="true"><param name="flashvars" value="filename=http%3A%2F%2Faudio.ngfiles.com%2F496000%2F49 6009_Kirbys-Adventure-Remix.mp3&amp;length=170&amp;artist=Ps yguy&amp;name=Kirby%27s%20Adventure%20Remix&amp;loop=0&amp;i con=http://aicon.ngfiles.com/496/496009.png"><param name="wmode" value="direct"><param name="allowfullscreeninteractive" value="true"></object>

Put it on a page and you've got yourself an embedded audio track. How would you go about stopping it from autoplaying though? It's fine while on NG because you're only going to the page for that audio track to listen to it right? There might possibly be a param variable that you can call to stop it but that's the best idea I have... It would be good if NG had support for embedded audio because the player is awesome.


Some Folks Are Hollow, Got No Tomorrow...

Response to Embedded Ng Audio Player Play Off 2012-08-11 22:24:02


At 8/11/12 09:42 PM, Nukerkid wrote: I'm not sure what you mean, I'm not trying to block anything =P. I'm talking about taking the code from an audio track like this -

Of course, it should work. I would be impressed if your discovery won't happen. You have the source. You know what I laugh hard on your reply.

Below you get the file audioplayer.swf. SWF is a Flash executable file. Object name is player. parameter is name. Then color frame, black.

<object id="player" data="http://flash.ngfiles.com/audio_player/audioplayer.swf" type="application/x-shockwave-flash" height="290" width="590"><param name="movie" value="http://flash.ngfiles.com/audio_player/audioplayer.swf "><param name="bgcolor" value="#0F0B0C">

Allow scripts to execute and access on client side. Allow full screen script to access (you can not full screen alone with the direct flash file)

<param name="allowscriptaccess" value="always"><param name="allowfullscreen" value="true">

Here is the part, why does it play the song:

http%3A%2F%2Faudio.ngfiles.com%2F496000%2F49 6009_Kirbys-Adventure-Remix.mp3

is

http://audio.ngfiles.com/49600/496009_Kirbys-Adventure-Remix.mp3

that's where you download the damn file. Now:

&amp;length=170&amp;artist=Psyguy&amp;name=Kirby%27s%20Adventure%20Remix

In order: length; artist name; song title
Why does it auto play and I am so dump to turn it off:

&amp;loop=0

And last but not least, Icon and allowing client-side to interact with the flash file.

&amp;icon=http://aicon.ngfiles.com/496/496009.png"><param name="wmode" value="direct"><param name="allowfullscreeninteractive" value="true"></object>
Put it on a page and you've got yourself an embedded audio track. How would you go about stopping it from autoplaying though? It's fine while on NG because you're only going to the page for that audio track to listen to it right? There might possibly be a param variable that you can call to stop it but that's the best idea I have... It would be good if NG had support for embedded audio because the player is awesome.

I am aware of that. Problem with flash embedding is XSS, HTML and JS injection. You may be aware of me might perform attack on NG?

Response to Embedded Ng Audio Player Play Off 2012-08-11 22:26:25


At 8/11/12 10:24 PM, Wurfel-Waffles wrote: http%3A%2F%2Faudio.ngfiles.com%2F496000%2F49 6009_Kirbys-Adventure-Remix.mp3

is

http://audio.ngfiles.com/49600/496009_Kirbys-Adventure-Remix .mp3

It should be http://audio.ngfiles.com/496000/496009_Kirbys-Adventure-Remi x.mp3

Damn! Missed a 0!

Response to Embedded Ng Audio Player Play Off 2012-08-12 06:15:27


At 8/11/12 10:24 PM, Wurfel-Waffles wrote:
Why does it auto play and I am so dump to turn it off:

&amp;loop=0

The loop function doesn't have anything to do with auto play =P. I appreciate that you are trying to help though.

At 8/11/12 10:44 PM, citricsquid wrote: it doesn't appear to be possible to disable the autoplay. setting the "autoplay" parameter to "0", "false", "no" and "null" don't do anything. if you want to embed Newgrounds audio it might be better to find an external player and use the Newgrounds MP3 URL with that.

no idea wtf Wurfel-Waffles is talking about, maybe he's drunk.

Lol, I was getting confused reading his whole response too. I have read that for auto play to work there has to be more than one frame on the timeline, which I'm guessing the NG audio player does not have? Anyway, I didn't think about putting the file URL into another web player, I'll do that, thanks! Any that you'd recommend?


Some Folks Are Hollow, Got No Tomorrow...