media player don't play audio


Ava Rashidi

Hi David,

I have a media player that takes different source in different parts of my program,

I want use it but Sometime, when run my program with chrome browser, i have this error:"uncaught (in promise) domexception"

what's problem?

my cod:

MediaStop "MediaPlayer"

MediaSetVolume "MediaPlayer" "100"

MediaSetSource "MediaPlayer" "" "app/files/GetStar.mp3" "" ""

MediaPlay "MediaPlayer"

Thank you


DecSoft

Hello Ava,

We are talking about an error or a warning? In other words, the app can continue working or it's stopped after the error? On the other hand, please, refer here the complete error message: maybe we can view something useful in that error message that help us to help.



Ava Rashidi

Hi David,

yes, we have a warning, the app can continue working but my sound didn't play.

also I solved my problem, I should stopped all media player after that played 1 media player

we can not play some media player with each other!

I have a photo from this warning, how can I send you?

Thank you


DecSoft

Hello Ava,

The point is that you got it! Of course, you can send me the referred image to info@decsoftutils.com, so I can take a look.



Ava Rashidi

I sent the image to you

I appreciate it.


DecSoft

Hello Ava,

I ask you for the image, and, certainly can help, but, maybe not in this particular case. :-( The point is that if I modify the "SimpleVideo" sample just to copy the first MediaPlayer, so we have two of them, and then place a simple Push Button, in order to play both MediaPlayers... that works as expected, Ava: both MediaPlayers play as expected.

So I am not very sure about what to say right now... maybe you can prepare a small app in which we can reproduce the problem? Please, take a look anyway at the below app, which is the modified "SimpleVideo" sample. Try it and check if works for you too:

* Copy the above XML code and save it into a file named like "MyApp.ab", then open that file with DecSoft App Builder and run the app.

P.S. Probably you already check it... but apparently the error message refers to some "uncaught promise"... maybe some of the media files that you want to use don't exists? Maybe the error is not specify related with the MediaPlayer control? Are you tried the app in other browsers? Can you see in the Firefox's console, for example, the same error message?


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.