More Related Content
More from رياض خليفة (20)
15 تسجيل الصوت بلا واجهة مستخدم باستخدام فون جاب
- 3. الصىت هسجل
Microphone
1-إى البالج إضافة إلى ًحتاج:
cordova plugin add cordova-plugin-media-
capture
cordova plugin add cordova-plugin-media
2-إضافة إلى ًحتاجسىرسللCordova.js
<script type="text/javascript“
charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8"
src="json2.js"></script>
- 6. الصىت هسجل
Microphone
function onSuccess() {
alert(‘Recording Successfully');
}
function onError(error) {
alert('code: ' + error.code + 'n' +
'message: ' + error.message + 'n');
}
function setAudioPosition(position) {
document.getElementById('audio_position').innerHTM
L = position; }