0

Chrome Audio Problem

asked 2017-02-20 08:24:12 +0800

bbolek gravatar image bbolek
98 1 5

Hello;

I add audio component in zul

<audio id="audio" controls="true" />

And in Java I add this :

File f = new File("C:\\cartoon001.wav");
AAudio media = new AAudio(f);
audio.setContent(media);

This works in firefox, but does not work in chrome v56..

The controls are greyed..

Can you help me? ZK Version: 8.0.0, also I tried 7.0.2 Thanks.

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2017-02-24 14:30:58 +0800

bbolek gravatar image bbolek
98 1 5

Hi again;

I created a zkfiddle

Chrome and IE Audio Problem

Thanks.

This works in Firefox;

link publish delete flag offensive edit
0

answered 2017-02-22 07:06:59 +0800

Darksu gravatar image Darksu
1991 1 4

Hello ,

I made a fiddle and used the following code to test the audio component which works on chrome and ZK8.

<zk>
  <window border="normal" title="hello" apply="pkg$.TestComposer">

    <audio src="http://www.wavsource.com/snds_2017-02-05_1692732105491832/movie_stars/davis/bargain_not.wav" controls="true"></audio>
  </window>
</zk>

There is a chance that the audio file you are using is not supported.

Best Regards

link publish delete flag offensive edit
0

answered 2017-02-22 09:17:37 +0800

bbolek gravatar image bbolek
98 1 5

Hello again. Thanks for your response.

It works when I use url in src attribute like you. But it does not work when I read file via java..

Thanks

link publish delete flag offensive edit
Your answer
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: 2017-02-20 08:24:12 +0800

Seen: 28 times

Last updated: Feb 24 '17

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