{"id":42,"date":"2020-03-09T17:15:52","date_gmt":"2020-03-09T17:15:52","guid":{"rendered":"https:\/\/erplayer.pro.radio\/manual\/?post_type=knowledgebase&#038;p=42"},"modified":"2020-03-15T09:22:25","modified_gmt":"2020-03-15T09:22:25","slug":"creating-a-radio-channel","status":"publish","type":"knowledgebase","link":"https:\/\/erplayer.pro.radio\/manual\/knowledge-base\/radio\/creating-a-radio-channel\/","title":{"rendered":"Creating a radio channel"},"content":{"rendered":"<h2>How to add the radio channels to the player?<\/h2>\n<p>There are<strong> 3 ways<\/strong> to add the <strong>radio channels<\/strong>:<\/p>\n<ol>\n<li><strong>Method 1:\u00a0 <\/strong>radio channel post type<strong>:<\/strong> a static archive of radio channels, re-usable <strong>for any instance of the player<\/strong>.<br \/>\nCreate the channels only once, and they will be available for any player with a click.<\/li>\n<li><strong>Method 2: <\/strong>widget settings add the channels directly inline in the player settings.<\/li>\n<li><strong>Method 3: <\/strong>mixed method<strong> &#8211; <\/strong>use the radio channels post types and custom channels added in the widget settings.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><strong>Method 1: Radio Channel post type<\/strong><\/h2>\n<p>This is the recommended method useful to re-use the same radio channels across multiple player instances.<\/p>\n<p>To create a channel click <strong>Radio Channels &gt; Add new channel.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-72 size-full\" src=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.35.48.png\" alt=\"\" width=\"562\" height=\"135\" srcset=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.35.48.png 562w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.35.48-300x72.png 300w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/p>\n<p><a href=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.42.52.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-73 size-full\" src=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.42.52.png\" alt=\"\" width=\"1201\" height=\"865\" srcset=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.42.52.png 1201w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.42.52-300x216.png 300w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.42.52-1024x738.png 1024w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-11.42.52-768x553.png 768w\" sizes=\"(max-width: 1201px) 100vw, 1201px\" \/><\/a><\/p>\n<ol>\n<li><strong>Radio title:<\/strong> the name of the radio channel<\/li>\n<li><strong>MP3\/AAC Stream URL:<\/strong> the URL of your stream (see dedicated sections for each provider ofr more info).<br \/>\n<strong>Please notice that if your website is in HTTPS, your streaming URL needs to be in HTTPS as well.<\/strong><\/li>\n<li><strong>Subtitle:<\/strong> any additional info, will be replaced with song titles if available<\/li>\n<li><strong>Logo:<\/strong> upload any logo image, recommended about 300x300px, squared. You can optionally display the logo as blurry background for the player, in the design settings of the player<\/li>\n<li><strong>Server type:<\/strong> choose among Shoutcast, Icecast, Radio.co, Airtime, Meta information (automatic) or other. More details in the dedicated sections. If you <strong>don&#8217;t know <\/strong>the<strong> format of your stream,<\/strong> you have to <strong>ask to your streaming provider.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79\" src=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.19.17.png\" alt=\"\" width=\"735\" height=\"276\" srcset=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.19.17.png 735w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.19.17-300x113.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><br \/>\n<\/strong><\/li>\n<li><strong>Exclude<\/strong> from playlist: as this is a global playlist of channels, you can optionally hide a specific channel by checking this option<\/li>\n<li><strong>Use proxy:<\/strong> this option is useful<strong> if your streaming provider doesn&#8217;t have the proper CROSS (cross origin resource sharing) permissions set in their server.<\/strong> It is a built-in server proxy to fetch the song title using a cUrl request, instead of an ajax request<br \/>\n<strong>This is NOT an audio proxy,<\/strong> only works on the json song titles call.<br \/>\nIMPORTANT: if your radio stream is on alternative ports, like 8000, or any other port like 1234 (you&#8217;ll see your URL containing for example &#8220;:5274&#8221;) the proxy can only work if your server is NOT blocking the connections.<br \/>\nIf the proxy doesn&#8217;t work for you, or you see a console error &#8220;unexpected character at line&#8230;&lt;&#8221; it means your server is blocking the proxy calls.<br \/>\nThe are only 2 solution:<\/p>\n<ol>\n<li>Ask your <strong>streaming<\/strong> provider to <a href=\"https:\/\/enable-cors.org\/server.html\" target=\"_blank\" rel=\"noopener noreferrer\">enable the CORS\u00a0<\/a> (and disable the proxy) <strong>OR<\/strong><\/li>\n<li>Ask your <strong>website hosting provider<\/strong> to <strong>allow<\/strong> the connection on your specific streaming port number.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2><strong>Method 2: Add channel as widget setting<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-77\" src=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.18.31.png\" alt=\"\" width=\"416\" height=\"906\" srcset=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.18.31.png 416w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.18.31-138x300.png 138w\" sizes=\"(max-width: 416px) 100vw, 416px\" \/><\/p>\n<ol>\n<li><strong>Include radio channels archive:<\/strong> load the channels created using the method 1<\/li>\n<li><strong>Set a radio logo fallback:<\/strong> upload a picture to be used if a channel has no logo<\/li>\n<li><strong>Album background opacity:<\/strong> use the logo or album cover as background. Will be blurred to reduce lo-res noise. You can, in alternative, <strong>set a backgrund color or custom image <\/strong>in the Background section.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-81\" src=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.26.50.png\" alt=\"\" width=\"410\" height=\"378\" srcset=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.26.50.png 410w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.26.50-300x277.png 300w\" sizes=\"(max-width: 410px) 100vw, 410px\" \/><\/p>\n<ol>\n<li><strong>Add radio channel items:<\/strong> create the channels inline, using the same fields described in the Method 1.<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82\" src=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.28.40.png\" alt=\"\" width=\"936\" height=\"973\" srcset=\"https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.28.40.png 936w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.28.40-289x300.png 289w, https:\/\/erplayer.pro.radio\/manual\/wp-content\/uploads\/2020\/03\/Screen-Shot-2020-03-10-at-12.28.40-768x798.png 768w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/p>\n<h2>Server details: required to display song titles<\/h2>\n<p>Depending on your streaming server format (Shoutcast V2, Icecast, Airtime or others) please <strong>follow the specific documentation page<\/strong> to add the channel properly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to add the radio channels to the player? There are 3 ways to add the radio channels: Method 1:\u00a0 radio channel post type: a static archive of radio channels, re-usable for any instance of the player. Create the channels only once, and they will be available for any player with a click. Method 2: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[5],"class_list":["post-42","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-radio"],"_links":{"self":[{"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/knowledgebase\/42"}],"collection":[{"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":8,"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/knowledgebase\/42\/revisions"}],"predecessor-version":[{"id":165,"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/knowledgebase\/42\/revisions\/165"}],"wp:attachment":[{"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/erplayer.pro.radio\/manual\/wp-json\/wp\/v2\/knowledgebase_cat?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}