Hi,

Is there a way to stream a resource and then pass the resource location onto
a hard coded javascript string. If I hard code the mp3 location I get errors
because u cant access local resources, even if there placed on the server
For example: 

localFile = c:/music/play.mp3

IResourceStream resourceStream = new FileResourceStream(new
File(localFile));

streamedLocation = *the location of the streamed local file*

String js = "$(document).ready(function(){$(\"#jpId\").jPlayer({ ready:
function () { " +
                "this.element.jPlayer(\"setFile\", \""+ streamedLocation +"\");
this.play();}})});";             
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Stream-Resource-into-Javascript-tp2262751p2262751.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to