вывод звука на андроид
20 USDВ общем есть некая страница- программа. Клиент связи с водителями такси, через браузер.
При появление нового заказа на планшете должна проиграться мелодия.
сейчас это происходит при помощи браузера фаерфокс
и файла js.
Но к сожалению данные звук работает не на всех планшетах, хотя все они под управлением андроид 4 и выше.
Хотелось бы чтоб звук воспроизводился не в виде какого-то отдельного файла а посредством стандартных системных звуков. Например пиликала как будто смс-ка пришла. Естественно при рабочем браузере где страница обновляется с переодичностью 30 сек.
текст js файла
var myWin;
var hitSound = new Audio('zvon.mp3');
function play() {
var MSIE=navigator.userAgent.indexOf("MSIE");
var OPER=navigator.userAgent.indexOf("Opera")
var FFOX=navigator.userAgent.indexOf("Firefox");
var CHROM=navigator.userAgent.indexOf("Chrome");
var SAFAR=navigator.userAgent.indexOf("Safari");
var MSAFAR=navigator.userAgent.indexOf("MobileSafari");
// alert( navigator.userAgent);
// alert( 'IE=' + MSIE +'/n' + 'OPER='+OPER +'/n' + 'FFOX='+FFOX+'/n' + 'CHROM='+CHROM+'/n' + 'SAFAR='+SAFAR+'/n' + 'MSAFAR='+MSAFAR );
if (SAFAR>-1) {
hitSound.play();
}
if (MSIE>-1) {
myWin = open( 'zvon.mp3' );
setTimeout( "myWin.close()", 9000 );
}
if ( (OPER>-1) || (FFOX>-1) || (CHROM>=1) ) {
var hitSound = new Audio('nazn.mp3');
hitSound.play();
}
}
function play2() {
var MSIE=navigator.userAgent.indexOf("MSIE");
var OPER=navigator.userAgent.indexOf("Opera")
var FFOX=navigator.userAgent.indexOf("Firefox");
var CHROM=navigator.userAgent.indexOf("Chrome");
var SAFAR=navigator.userAgent.indexOf("Safari");
var MSAFAR=navigator.userAgent.indexOf("MobileSafari");
if (SAFAR>-1) {
var hitSound = new Audio('nazn.mp3');
hitSound.play();
}
if (MSIE>-1) {
var hitSound = new Audio('nazn.mp3');
hitSound.play();
}
if ( (OPER>-1) || (FFOX>-1) || (CHROM>=1) ) {
var hitSound = new Audio('nazn.mp3');
hitSound.play();
}
}
Client's review of cooperation with Ivan Zakharchuk
вывод звука на андроидСпасибо за качественно выполненную работу.
За данный проект взялся только этот фрилансер. Всё было выполнено учитывая все мои пожелания, со знанием дела. Также ввиду того что банковская система в Крыму временно не работает, с оплатой также пошли мне на встречу и дали возможность оплатить единственным возможным способом.
![]()
Freelancer's review of cooperation with client
вывод звука на андроидЗаказчик хорошо сформулировал задание. По ходу дела, четко следовал моим инструкциям для решения задачи.
-
Winning proposal2 days20 USD
153 5 0 Winning proposal2 days20 USDЗдраствуйте!
Готов помочь. Пишите: [email protected]
П.С, Единственный вариант это корректно использовать HTML5 аудиоелемент, т.к. "родные" звуки Android возможно воспроизводить только посредством нативных java приложений, т.е. это другая область задач.
Current freelance projects in the category Javascript and Typescript
Development of the AM Mobility platform (car service, parking, insurance, car rental)
5770 USD
We are looking for a team or an experienced Full Stack developer to create the MVP of the AM Mobility platform. AM Mobility is a unified digital ecosystem for motorists, combining in one application and web platform: parking; car service; tire fitting; car wash; car rental;… Javascript and Typescript, Web Programming ∙ 5 days 4 hours back ∙ 113 proposals |
Gsap animations
22 USD
Good day. Corrections need to be made in the current project. A specialist is needed who works well with gsap/lenis. Animation of cards needs to be done. Detailed specifications here:… Javascript and Typescript, Web Programming ∙ 5 days 10 hours back ∙ 21 proposals |
I am looking for a mentor with Claude Code to launch a web project from scratch.Brief about the task: I am a beginner with no programming experience. I have a ready specification for website development (42 pages, Next.js, PostgreSQL). I want to implement it myself using Claude Code - I need a specialist who will set up the environment and teach me how to… Javascript and Typescript, Tuition ∙ 7 days 9 hours back ∙ 19 proposals |
Website design updateIt is necessary to update the design of the existing website using HTML, CSS, JS: refresh the appearance, make it modern and responsive for mobile devices. Smooth animations and interactive elements need to be added. HTML & CSS, Javascript and Typescript ∙ 8 days 3 hours back ∙ 97 proposals |
Consultation and audit of the current project on Odoo 19 Community EditionWe are looking for an Odoo Developer — a solo developer with experience in Odoo 19 Community Edition, including using Claude Code. We need a specialist who has successfully implemented projects in Odoo and practical experience in development using Claude Code. Important: we only… C & C++, Javascript and Typescript ∙ 8 days 8 hours back ∙ 8 proposals |