-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi guys. I tring to integrate audio player into my solution, but I have a problem:
Audio audio = new Audio();
AAudio aAudio = new AAudio(file.getName(), file.getContent());
audio.setContent(aAudio);
audio.setControls(true);
//getName - String, getContent - byte[]
Give me this in Chrome:
Request URL:http:// localhost:8080/ web/zkau/view/z_59q/sJBP0i/v881/1/deg.wav
Request Headers: CAUTION: Provision headers are shown
Accept-Encoding:identity;q=1, *;q=0
Range:bytes=0-
Referer:http:// localhost:8080/ web/main/
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
And after all I have audio component with disabled controls. But I can use generated link to open new tab (audio component on new tab also disable) and after File->Save As I can listen this file from disc normally.
What wrong with components or me, or both? Please help. Thanks!
Asked: 2014-07-07 21:19:30 +0800
Seen: 9 times
Last updated: Jul 07 '14