[web2py] Re: Not able to embed audio files in web2py

2010-08-16 Thread titan
it plays the music for me (in the > first case in the browser, in the second case embedded in the > generic.html view). > > Perhaps I do not understand what the problem is. > > On Aug 14, 4:51 am, titan wrote: > > > Actually I can download this file if I set the content-

[web2py] Re: Not able to embed audio files in web2py

2010-08-14 Thread titan
Actually I can download this file if I set the content-disposition tag in the http header , but I am not able to stream the file on the browser , although I can stream mp3 files from other sites on my browser. My browser tries to stream this file but gives an error "Could not open location; you mi

[web2py] Not able to embed audio files in web2py

2010-08-13 Thread titan
I want to embed an audio file in my web-page. I am using the following code :- mp3_file=URL(r=request,c='static',f='1.mp3') def test_embed(): embed_mp3=XML('' %mp3_file) return dict(mp3=embed_mp3) However this is not working . I can't get the file 1.mp3 to play in the browser . Can somebo