Skip to content

Decode flashvars #296

Open
Open
@jomo

Description

@jomo

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&amp;file=http%3A%2F%2Fexample.com%2Fvideo.mp4&amp;config=http%3A%2F%2Fexample.com%2Fplayer.config&amp;thumb=http%3A%2F%2Fexample.com%2Fvideo.jpg" name="flashvars">
</object>
  1. 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
    
  2. 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
    
  3. And then decode them:

    id     = something
    file   = http://example.com/video.mp4
    config = http://example.com/player.config
    thumb  = http://example.com/video.jpg
    

I'm not yet sure what would be the best place to display the decoded value

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions