hi-

in the view class:

  http://www.openlaszlo.org/lps4.9/docs/reference/lz.view.html

there is the method setSource:

  view.setSource(source : String, cache : String, headers : String, filetype : 
String);

the documentation states that the last argument can be a file type, like "mp3" 
or "jpg".

i call the setSource method on an existing view, with the filetype as "mp3":

  notifyMP3.setSource("../../resources/notify.mp3", "none", "", "mp3");

using chrome's javascript console, i see the following warning:

  Resource interpreted as Image but transferred with MIME type audio/x-mpeg: 
"http://localhost:8080/resources/notify.mp3

despite me specifying the filetype "mp3", its being interpreted by the 
generated javascript code as an image.

how do i use LzView.setSource with mp3s correctly?

thanks,
augusto.

Reply via email to