언어 설정

Menu
Sites
Language
audio controls

function playAudio(src) { if (device.platform == ('tizen') { src = '/www/' + src; } var media = new Media(src, success, error_error); media.play(); } function success() { // ignore } function error_error(e) { alert('great error'); alert(e.message); }

Home
Edited by: venkadesh P on 16 12월, 2014

Responses

5 댓글
AVSukhov

Hello,

Could you please privide code of playAudio method?

ezhilarasan b

helo vekadesh,

https://developer.tizen.org/documentation/articles/accessing-native-audio-playback-and-recorder-controls-web-applications

venkadesh P
Home
AVSukhov

Hello,

For playing audio in Tizen Web app you mau use:

- html5 audio element

https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/guide/w3c_guide/media_guide/html5_audio_video.htm

- web audio api

https://developer.tizen.org/documentation/articles/working-web-audio-api

- native service

Dhamo Dharan

https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API

 

refer this concept it  may usefull for u !!!!!