0

Audio shows disabled controls

asked 2014-07-07 21:19:30 +0800

neonomaly gravatar image neonomaly
3 1

updated 2014-07-07 21:20:28 +0800

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!

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-07-07 21:19:30 +0800

Seen: 9 times

Last updated: Jul 07 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More