0

setsrc audio from in file java

asked 2014-04-27 02:10:46 +0800

thantienbut gravatar image thantienbut
1 1

i have a tag <audio>. i want to setSrc for <audio> from file java. Please turtorial for me, thanks every body

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-27 03:35:25 +0800

RaymondChao gravatar image RaymondChao
386 1 4

Hello.

Refers to the document and javadoc, you can assign src property by using setSrc("sound\sample.map") in Java.

ZK supports HTML5 audio tag since 7.0.0, so multiple sources can be specified in order to provide audio encoded in different formats for different browsers. For example: setSrc("sample.wav, sample.mp3") or simply use setSrc(List<String>) method.

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: 2014-04-27 02:10:46 +0800

Seen: 10 times

Last updated: Apr 27 '14

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