AIMP Forum

Разное => Архив => Вопросы (архив) => Topic started by: tango3d on April 05, 2016, 19:56:25

Title: Problem with online radio
Post by: tango3d on April 05, 2016, 19:56:25
Hello everyone,
I spent a long time trying to listen my favourite online radio station on aimp but had no success, I always receive the same message "buffering ..." and then nothing.
The radio page is http://fmrockandpop.com/ if anyone can help I would appreciate. :)
Title: Re: Problem with online radio
Post by: Алексей Долматов on April 05, 2016, 21:27:25
What is URL you using?
I try http://up.tzone.qaotic.net/a02/rocknpop_radio1_high-20057/manifest.f4m
But get http access error: error: HTTP/1.1 403 Access denied.
Because i can't JS http://statics.fluvio.tv/integration/js/pdk.js correct using in my brain
// TODO excluir en futuro
            if (  config.asset == "rocknpop_radio1_high-20057"){

               var innerHTML = '<object type="application/x-shockwave-flash" name="StrobeMediaPlayback" data="https://command.fluvio.tv/resources/players/strobemediaplayback.swf" width="300" height="100" id="StrobeMediaPlayback" style="visibility: visible;">\
                  <param name="allowFullScreen" value="true">\
                  <param name="allowScriptAccess" value="always">\
                  <param name="wmode" value="direct">\
                  <param name="flashvars" value="autoPlay=true&src=http://up.tzone.qaotic.net/a02/rocknpop_radio1_high-20057/manifest.f4m"></object>';

               configuration.htmlElement.innerHTML = innerHTML;

               return;
            }

            var query = 'asset=' + config.asset;
            query += '&type=' + config.assetType;
            query += '&autoplay=' + config.autoplay;
            query += '&pdk=' + res.ver;
            
            if (config.dynamicIndex){
               query += '&dynamicIndex=' + config.dynamicIndex;
            }

            if (typeof config.playerMode != 'undefined')
               query += '&playerMode=' + config.playerMode;

            configuration.iframeURL = res.urls.embed + "?" + query;
            
            configuration.htmlElement.innerHTML = '<iframe src="' + configuration.iframeURL + '" style="height:' + config.height + ';width:' + config.width + ';" frameborder="0" allowfullscreen></iframe>';
            configuration.iframe = configuration.htmlElement.getElementsByTagName("iframe")[0];

            configuration.iframe.onload = function(){
               postMessage({ event: "onConnection", playerId:  configuration.id, configuration: config});

When parsing open URL
rtmp://server4.stweb.tv:1935/rockpop - Server error: Failed to play ; stream not found.
[0000000003504c00] avcodec access error: Failed to open rtmp://server4.stweb.tv:1935/rockpop: Operation not permitted
[00000000040eaba0] core input error: open of `rtmp://server4.stweb.tv:1935/rockpop' failed

rtmp://rp.stweb.tv:1935/rockpop/live - Unknown connect error (unsupported authentication method?)
[rtmp @ 00000000045f3160] Server error: Connection failed: Application folder ([install-location]/applications/rockpop) is missing.
[0000000003505740] avcodec access error: Failed to open rtmp://rp.stweb.tv:1935/rockpop/live: Unknown error
[00000000040ebfe0] core input error: open of `rtmp://rp.stweb.tv:1935/rockpop/live' failed



Only rtmp://server4.stweb.tv:1935/rockpop/live
Work in VLC - AIMP not supported RTMP
Title: Re: Problem with online radio
Post by: tango3d on April 06, 2016, 16:07:39
Wooowww! Thank you very much Долматов Алексей!
I have no memories of having received aid like this in other forums on other issues :)
Its sad that aimp not support RTMP, but the good thing is that I can listen my radio on vlc now!
Maybe in the next aimp update I can use it again! :)
Thanks again for the explanation, for the effort and for your time! :D