how to load json in separate method
Posted
by frosty
on Stack Overflow
See other posts from Stack Overflow
or by frosty
Published on 2010-03-15T16:47:29Z
Indexed on
2010/03/15
16:49 UTC
Read the original article
Hit count: 279
I need to generate the playlist dynamically. What is the best way to extract the playlist so that the playlist json below is separated into a different method or variable.
$f(videoid, "/swf/flowplayer-3.1.5.swf", {
playlist: [
{
url: videoUrl
},
{
url: '59483.flv',
title: 'Palm trees and the sun'
},
{
url: '58192.flv',
title: 'Happy feet in a car'
},
{
url: '63617.flv',
title: 'People jogging'
}
],
wmode: 'opaque',
plugins: {
gatracker: {
url: "/swf/flowplayer.analytics-3.1.5.swf",
trackingMode: "Bridge",
debug: false
}
}
});
© Stack Overflow or respective owner