So when I take out the & in the URL as in /Download?var1=32var2=32 it works fine obviously I don't get the values of var1 and var2 in my code but the flowplayer works. When the '&' is added back into the URL it doesn't work. After installing Adobe's debugger i get the following message pop to my screen:
Error: Unterminated string literal
at com.adobe.serialization.json::JSONTokenizer/parseError()
at com.adobe.serialization.json::JSONTokenizer/readString()
at com.adobe.serialization.json::JSONTokenizer/getNextToken()
at com.adobe.serialization.json::JSONDecoder/nextToken()
at com.adobe.serialization.json::JSONDecoder/parseObject()
at com.adobe.serialization.json::JSONDecoder/parseValue()
at com.adobe.serialization.json::JSONDecoder/parseArray()
at com.adobe.serialization.json::JSONDecoder/parseValue()
at com.adobe.serialization.json::JSONDecoder/parseObject()
at com.adobe.serialization.json::JSONDecoder/parseValue()
at com.adobe.serialization.json::JSONDecoder()
at com.adobe.serialization.json::JSON$/decode()
at org.flowplayer.config::ConfigLoader$
http://flowplayer.org/core/internal::parseConfig() at org.flowplayer.view::Launcher/createFlashVarsConfig()
at org.flowplayer.view::Launcher/initPhase1()
at flash.display::DisplayObjectContainer/addChild()
at org.flowplayer.view::Preloader/init()
Why the parser is all the way down in the playlist seems odd but here is my config:
<script>
$(window).load(function() {
$("#pl").scrollable();
var api = $("#pl").scrollable();
$("a.prevPage").click(function() { api.prevPage(500); });
$("a.nextPage").click(function() { api.nextPage(500); });
$f("player", "/flowplayer-3.0.0-rc4.swf", {
clip: {
autoPlay: false,
autoBuffering: true,
scaling: 'fit'
},
plugins: {
controls: {
url: '/flowplayer.controls-3.0.0-beta7.swf',
timeColor: '#ffb301',
progressColor: '#7a5c01',
bufferColor: '#fff4d6',
buttonColor: '#a49f88',
buttonOverColor: '#bdb292',
sliderColor: '#000000',
durationColor: '#ffffff',
progressGradient: 'medium',
bufferGradient: 'none',
sliderGradient: 'none'
}
},
canvas: {
backgroundColor: '#000000',
backgroundGradient: 'none'
}
}).playlist("div.entries",{loop:true});
});
</script>
<a id="player" name="player" href="/DownloadMedia?key1=12&key2=13" class="player"></a>
<div id="pl" style="display: none">
<a class="prevPage"></a>
<div class="entries">
<a href="/DownloadMedia?key1=12&key2=13">Media 1<em>00:03:31</em></a>
</div>
<a class="nextPage"></a>
</div>