So even though you can't pass complex objects, you could pass the above (or
similar) as a single or multiple strings and have your own parsing class
inside a modified version of the JW player.

I have had to do this (write custom parsing) inside a JW media player for a
client before. Although in my case the player was passed a custom structured
XML file, which needed interpreting into a playlist / ads / etc.

I am not quite sure why you are adverse to having an XML file though. If it
needs to be dynamic, then you just have a PHP page (or whatever server-side
language of choice) to generate the correct XML structure which can then be
passed into the player. This is dynamic and will be non caching as long as
the request params are unique (e.g.
http://some.com/streamer.php?id=123456789)

If the player already handles the above XML structure natively, it will be a
lot less painful to make a server page to generate it than trying to
shoehorn in a flat flashvars structure into the player :)

Aran





On Thu, Dec 10, 2009 at 3:40 AM, Deke Kelby <[email protected]> wrote:

> I'm working with JW Player and implementing an advertising plugin from
> OpenX AdServer and need some advice on how to implement flashvars
> without the need of an external XML file.
>
> The problem is, the external XML file that is needed to make it all
> work has nested variables in it:
>
> <config>
>   <openadstreamer.title>
>       HTTP Example 02a - No Playlist Control
>   </openadstreamer.title>
>   <openadstreamer.json>
>       {
>          "deliveryType": "progressive",
>          "allowPlaylistControl": false,
>          "shows": {
>              "streams": [
>                   {
>                        "file":"http://streaming.openvideoads.org:81/
> shows/the-black-hole.mp4",
>                        "duration":"00:00:30"
>                   }
>              ]
>          },
>
>          "debug": {
>              "debugger": "firebug",
>              "levels": "fatal",
>          },
>
>          "ads": {
>              "playOnce": false,
>              "notice": { "textStyle": "smalltext" },
>              "server": {
>                  "type": "OpenX",
>                  "vastURL": "http://openx.openvideoads.org/openx/www/
> delivery/fc.php"
>              },
>              "schedule": [
>                  {
>                     "zone": "18",
>                     "position": "pre-roll"
>                  }
>              ]
>          }
>       }
>   </openadstreamer.json>
> </config>
>
> Somehow I need to figure out how to send the information pasted above
> to my JW Player via SWFObject.
>
> But from what I understand, you cannot pass complex flashvars into
> SWFObject, is that correct?
>
> I really don't want to have an external XML file that I point to,
> since this will all be dynamic and non-caching.
>
> Does anyone have any advice on how I go about passing the above
> information into SWFObject via flashvars?
>
> Thanks for any help or guidance.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.


Reply via email to