Languages

Menu
Sites
Language
Audio streaming

Hello,

I have a problem on my web application, I would like play music streaming with audio tag (html5).

  • Index.html:

<audio controls>
            <source src="http://mp3.live.tv-radio.com/nrj/all/nrj_113225.mp3" type="audio/mpeg"></source>
                  Your browser does not support the audio tag.
            </audio>

  • Config.xml:

<access origin="http://mp3.live.tv-radio.com/nrj/all/nrj_113225.mp3" subdomains="true"/>

 

So on the emulator, I can see the player but when I click play, nothing happens.

What is wrong?

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

22 Replies
Lakshmi Grandhi
I tried accessing the above url in internet application, its thowing error "no permission to access file on server"
Benoit JOUANIGO
Do you know why? Because when I test it on Tizen Web Simulator Application (and on google chrome) the link works.
Marco Buettner
On config.xml never use the correct string, just the domain. Should enough
< access origin="http://tv-radio.com/" subdomains="true"/>
But you can also add
< access origin="http://live.tv-radio.com/" subdomains="true"/>
< access origin="http://mp3.live.tv-radio.com/" subdomains="true"/>
or u use
< access origin="*" subdomains="true"/>
Benoit JOUANIGO
Thanks for your reply, I have the same problem with this config: < access origin="*" subdomains="true"/> I can't use http://live.tv-radio.com/ or http://mp3.live.tv-radio.com/ because we don't have access
Marco Buettner
Just a theory, but I think I found the problem in your case. When you test on browser, you will redirected to the URL http://95.81.146.2. The Simulator is just a Webbrowser Toolkit, not very device and Tizen nearly! The simulator as no problem to access http://95.81.146.2 because a never read the config.xml :) But access origin doesn't allows IP, only domains can be add there. So I think thats the problem of your case! The redirecting from http://mp3.live.tv-radio.com/ to http://95.81.146.2 isnt allowed!
Marco Buettner
sooo maybe you can try to add < access origin="http://95.81.146.2" subdomains="true" />
Benoit JOUANIGO
Thanks but I tested both: < access origin="http://95.81.146.2" subdomains="true" /> < access origin="*" subdomains="true"/> And I have the same problem
Marco Buettner
Than is it so like I wrote above. Tizen doesn't allow IP on source/config as URL.
Varsamis
Hi, I'm testing audio streaming using the html audio tag. After many tries (all kinds of URLs) I noted that only .ogg sources work. In the media tutorial (https://developer.tizen.org/documentation/audio-video-playback-tutorial) the URL used is also .ogg. Is it the only one supported? What about .mp3, stream links etc.?
Denis Miroshnikov

+1 same problem with try to play stream MP3  with <audio> ....   how 2 resolve :(  ?

Denis Miroshnikov

tag <Audio>  is played mp3 stream but can't hear sound ...  silnence that all  , but play / pause button is work

    why no sound?   on Gear S - real device .

daniel kim

Hi,

I could hear audio sound by following code in Gear S. I think that you can check it with this code again.

  <audio id="audio"
            src="http://81310752d5730fb4ef3c-221b4998ec12974102282b6d4a8fafbe.r2.cf1.rackcdn.com/3rds.mp3" preload="auto"      controls  loop autoplay>
        </audio>
 

Regards

Denis Miroshnikov

ok, but just try to connect with real device to this stream (MP3 VBR320) 

http://air.radiorecord.ru:8101/rr_320
 

daniel kim

Hi,

It seems that this link is not accessable now.

            http://air.radiorecord.ru:8101/rr_320

Regards

Denis Miroshnikov

no is ok for now, just open link in browser (FFox is ok)

alternative working stream  http://air.radiorecord.ru:8101/rr_320

Try

AVSukhov

daniel,

as i understand, this is radio stream. And it works on z1, z3 devices but not on gear device.

Denis Miroshnikov

exactly ! also in any browsers and TAG <audio>. but in Gear just NO SOUND , playng yes, but silence :(( 
 

AVSukhov

Hi,

I have tested app on gear s on Debug mode on Network tab and i can see one request to http://air.radiorecord.ru:8101/rr_320 with Pending status. Also, controls doesn't work.

Could you launch your app in Debug as mode?

Denis Miroshnikov

no , in debug no try...  but  what is can cange?  

I think is error of integrated browser with TAG audio  :(( 

  because in simulator and emulator is all OK

AVSukhov

Hello,

You can try post your query to tizen bug tracker:

https://bugs.tizen.org/jira/secure/Dashboard.jspa

 

AVSukhov

Hello,

Try to add internet privilege, and access ttag to config.xml

Denis Miroshnikov

Yes . addeded , but result is the same :(