Open
Description
It would be nice to have flashvars decoded so they can be easily read.
Example for a flash video player:
<object name="something" id="something" data="http://example.com/player.swf" type="application/x-shockwave-flash" height="40" width="800">
<param value="true" name="allowfullscreen">
<param value="always" name="allowscriptaccess">
<param value="id=something&file=http%3A%2F%2Fexample.com%2Fvideo.mp4&config=http%3A%2F%2Fexample.com%2Fplayer.config&thumb=http%3A%2F%2Fexample.com%2Fvideo.jpg" name="flashvars">
</object>
-
We can extract the
flashvars
value:id=something&file=http%3A%2F%2Fexample.com%2Fvideo.mp4&config=http%3A%2F%2Fexample.com%2Fplayer.config&thumb=http%3A%2F%2Fexample.com%2Fvideo.jpg
-
Split the parameters:
id = something file = http%3A%2F%2Fexample.com%2Fvideo.mp4 config = http%3A%2F%2Fexample.com%2Fplayer.config thumb = http%3A%2F%2Fexample.com%2Fvideo.jpg
-
And then decode them:
id = something file = http://example.com/video.mp4 config = http://example.com/player.config thumb = http://example.com/video.jpg
- If you haven't noticed, the flashvars value is just a Query String
- Adobe flashvars info
I'm not yet sure what would be the best place to display the decoded value