- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Olá amigos,
Vi diversos tutoriais na internet de como criar um App para rádio online.
Mas ambos não usam com AAC com IP:PORTA (ex.: radio http://184.172.113.139:9842)
Crio o App, e adiciono o player de audio do Intel XDK, insiro o ip e a porta no src.
Mas quando vou testa o app no preview, a radio demora entre 3 a 5 minutos para começar a tocar.
Se possivel, se alguem tiver uma solução, ficaria muito grato.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Você chegou a fazer o debug para saber o motivo da demora? É em alguma rotina do APP ou após ocorrer a chamada do streaming?
Com o debug você deve ter alguma ideia melhor do que está ocorrendo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Vinicius - Which plugin did you use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Fiz tudo certo também igual ao VINICIUS H. porém o meu se quer está tocando... vou até esperar o play por cinco minutos também para vê se toca... mais está difícil...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Daniel - You are saying that you are streaming radio and it takes 5 minutes to start? Have you tried using the Debug tab as Hamilton suggested?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A Intel tem que melhorar este aspecto, pois o usuário não vai querer esperar, ele vai logo desintalar a aplicação. Testei de todas as formas e também ocorre o mesmo com o player.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ramon,
As far as we know this is not an XDK issue, as other users are successfully streaming without such a delay.
If you have not built with Crosswalk, try that. Crosswalk provides better results. Also, using the Debug Tab will help you see what is happening - where execution is being delayed as your app is running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pamela, visto que muitos passam por este problema, pois você e eu vimos que não sou apenas eu que passei por isto, porque a Intel não faz um tutorial para resolver pelo menos problema da rádio e mostra em quais situações o app pode mostrar problemas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
E não vi nenhum comentário sobre o sucesso que você citou. Desculpe, não quero levantar aqui uma discussão, mas estou sendo sincero e autêntico.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ramon,
You are correct, others have had the same problem. I will see if we can create a tutorial or sample that addresses this issue.
Meanwhile, if you would like to zip your project and send that to me in a PM, I will take a look at it to see if I can find the problem.
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ola, estou com o mesmo problema, no intel sdk so permite rodar streaming que tenha saidas em mp3, porem a maioria das empresas vendem com servico e aac, ai esta o problema, ja li varios posts na internet e nenhum solucionou este problema, gostaria de saber se é possivel fazer com que minha radio que tem o endereço de IP e porta, para rodar no SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Gilliard - if you have not yet found a solution, try the 3 audio options in the audio sample app to see if any of those work.
@Vanderson,
I am checking several things. I have not tested mp3 vs. AAC, because I need to clarify some things first. By the way, I I LOVE your "About us" page - the write up is very nicely stated.
I have tested a few things. I need to better understand what your app is expected to do. What I have found from the testing I have done:
- When I run your app in the emulator, your home page (or maybe it's a splash screen) appears but nothing happens. This happens because your index.html file states that you have an mpeg file in www/audio. But you don't have an audio directory in www.
- When I run on-device (my Android tablet) in the cloud via the Test tab it starts streaming audio, then it crashes with a message that it can't find a file, but continues streaming the audio until I press OK on the crash message. Again, I believe this happens because your index.html file is directing your app to seek a file that is missing.
- When I build Android Crosswalk and install the ARM build on my Galaxy Tab 4 the app behaves exactly the same as in the Test tab (image attached).
- When I build and install on a Windows 8 tablet/PC and try to open the app, it crashes immediately - I don't even get a splash screen. But maybe you don't intend to make it work for Windows.
Conclusion - your app plays a local music file, if that file cannot be found, audio streams. I understand this may be an intermediate stage of your app design. But I need to understand where you are and where you are trying to go so that I can figure out the best way to help you.
There are two things you can do.
- There is a very helpful sample app that demonstrates how to use 3 different options audio options (Audio Player App) - you can modify its index.html and app.js to test AAC. You can try all 3 of those options.
- But I see that you used App Designer . . . so I wonder if you are not yet very familiar with HTML and JavaScript. In that case, if you send me an mp3 file and an AAC file, I can run some tests. I may not have time to do that in the next several days, but I would like to figure this out.
Cheers,
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Olá
Ainda não obtive resultado algum com relação à reprodução do audio na saida em AAC.
Não sou programador e foi por isso que utilizei o formato designer, no entanto meus conhecimentos são meio limitados onde tentei usar os 3 exemplos como foram sugeridos e nada consegui.
Esclarecendo.....assim como o VINICIUS eu estou tentando reproduzir um som em formato de saida AAC onde o arquivo não é rodado localmente e sim direto ao vivo tendo como endereço IP+PORTA......173.208.235.230:9596.........no caso seria esse o audio a ser tocado.
Fico no aguardo de mais alguem em que possa me dar alguma dica, obrigado ate o momento.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bom dia Vinicius
Alguma novidade na solução deste problema??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Estou com o mesmo problema, o meu app demora 1 minuto e meio para começar a tocar.
quando muda para essa outra radio usando ip, então funciona imediatamente
<audio src="http://173.193.195.155:9956/;" controls="controls" autoplay="autoplay" >
</audio>
======================
mas se uso esta outra estação com o mesmo player, demora 1,30 minutos
<audio src="http://stm30.srvstm.com:22890/;" controls="controls" autoplay="autoplay" >
</audio>
mas em ambos os casos se abro via browser funcionam bem.
=================================================
usei assim tambem: mas continua a mesma coisa:
<link rel="stylesheet" type="text/css" href="./css/leanbackPlayer.default.css"/>
<script type="text/javascript" src="./js/leanbackPlayer.pack.js"></script>
<script type="text/javascript" src="./js/leanbackPlayer.en.js"></script>
---------------------
<div class="leanback-player-audio" width="350px">
<audio preload="metadata" controls>
<source src="http://stm30.srvstm.com:22890/;" type='audio/mp4; codecs="mp4a.40.2"'/>
</audio>
</div>
vejam o exemplo funcioando nesse link via browser: www.goianiadigital.com.br/digitalaovivocidade.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Joedes - I will take a look at this.Give me a few days - I have a few other projects I am working on.
Pamela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
usei este codigo, e funcionou, mas ainda demora 12 segundos, para começar a tocar, enquanto outros aplicativos levam em medias 5 segundos para começar.
codigo funcionando com 12 segundos para começar:
<audio id="audio">
<source src="rtsp://rtmp1.srvstm.com/23606/23606.stream" type="audio/mpeg">
audio.play();
</audio>
<div>
<a href="#" onclick="play()"> <img style=' padding: 7px; ' src="images/play.png" width="40" > </a>
<a href="#" onclick="pause()"> <img style=' padding: 7px; 'src="images/pause.png" width="40" > </a>
<a href="#" onclick="diminuir_volume()"> <img style=' padding: 7px; 'src="images/volumemenus.png" width="40" > </a>
<a href="#" onclick="aumentar_volume()"> <img style=' padding: 7px; 'src="images/volumemais.png" width="40" > </a>
</div>
<script>
audio = document.getElementById('audio');
function play(){
audio.play();
}
function pause(){
audio.pause();
}
function stop(){
audio.pause();
audio.currentTime = 0;
}
function aumentar_volume(){
if( audio.volume < 1) audio.volume += 0.1;
}
function diminuir_volume(){
if( audio.volume > 0) audio.volume -= 0.1;
}
function mute(){
if( audio.muted ){
audio.muted = false;
}else{
audio.muted = true;
}
}
</script>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
joedes M. wrote:
I used this code, and it worked, but it still takes 12 seconds to start playing, while other applications take into medium 5 seconds to start.
code running 12 seconds to get started:
Joedes -- there is no way to insure how quickly your audio will begin playing when you are retrieving it over the Internet:
<audio id="audio"> <source src="rtsp://rtmp1.srvstm.com/23606/23606.stream" type="audio/mpeg"> audio.play(); </audio>
I suggest you use the Chrome DevTools debugger console in either the Emulate tab or the Debug tab to monitor the network activity. See this for help > https://developers.google.com/web/tools/chrome-devtools/profile/network-performance/resource-loading?hl=en
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Olá, alguem resolveu? Estou tendo o mesmo problema.....
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page