To play an mp3 you should have a look at the example application: http://www.openlaszlo.org/lps4.9/lps/utils/viewer/viewer.jsp?file=/examples/music/music.lzx
Sebastian 2012/5/2 augusto callejas <[email protected]> > 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. > -- Sebastian Wagner https://twitter.com/#!/dead_lock http://www.openmeetings.de http://www.webbase-design.de http://www.wagner-sebastian.com [email protected]
