{"id":6552,"date":"2021-01-04T18:21:43","date_gmt":"2021-01-04T18:21:43","guid":{"rendered":"https:\/\/manuals.qantumthemes.xyz\/onair2\/?post_type=ht_kb&#038;p=6552"},"modified":"2021-01-04T18:23:50","modified_gmt":"2021-01-04T18:23:50","slug":"11-2-server-type-metadata","status":"publish","type":"ht_kb","link":"https:\/\/manuals.qantumthemes.xyz\/onair2\/knowledge-base\/11-2-server-type-metadata\/","title":{"rendered":"11.02 Server type &#8211; Metadata"},"content":{"rendered":"<h2 id=\"_\" ><a href=\"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6553\" src=\"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata.jpg\" alt=\"\" width=\"909\" height=\"147\" srcset=\"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata.jpg 909w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata-300x49.jpg 300w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata-768x124.jpg 768w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata-50x8.jpg 50w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata-600x97.jpg 600w, https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-content\/uploads\/2021\/01\/radio-stream-metadata-320x52.jpg 320w\" sizes=\"(max-width: 909px) 100vw, 909px\" \/><\/a><\/h2>\n<div class=\"article-content\">\n<p>&nbsp;<\/p>\n<p>This setting <strong>is based on the old original ICY metadata formatting from\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/SHOUTcast\" target=\"_blank\" rel=\"noopener noreferrer\">1998<\/a><\/strong>. If you have another way to display the titles (Icecast, Shoutcast or others) <strong>you should use that one instead.<\/strong><\/p>\n<p>The ICY metadata is<strong>\u00a0a portion of the audio stream containing the song titles<\/strong>. It&#8217;s like eating a piece of cake to know the name of the cake.\u00a0You can see it as the equivalent of ID3 tags for a radio stream.<\/p>\n<p>It&#8217;s a very old standard that is still nowadays used from many desktop clients or apps, but on a desktop client you don&#8217;t have to care much about the CPU consumption because the stream is directly connected to the machine.<\/p>\n<p>Compared to modern text-based formats like icecast or Shoutcast,\u00a0<strong>the Metadata protocol is very slow and heavy,<\/strong>\u00a0adds extra weight and consumes extra bandwidth on your server.<\/p>\n<p>Basically, your server needs to\u00a0<strong>read small pieces of the radio stream<\/strong>\u00a0and get the titles from a chunk of the stream, passing it to the HTML to print it.<\/p>\n<p><strong>Any other method, instead, is much faster and preferable.<\/strong><\/p>\n<p>So, you should consider this system only for Shoutcast V1 streams and other problematic server providers.<\/p>\n<h2 id=\"how-to-use-the-metadata-icy-headers-server-type-to-display-the-radio-titles\" >How to use the Metadata (ICY Headers) server type to display the radio titles:<\/h2>\n<p>Once you have set up your audio stream URl, and made sure it can play correctly, set the Server Type to Metadata.<\/p>\n<p>If your radio stream contains this information, the title and artist will instantly appear in the player.<\/p>\n<p><strong>No other setting is required.<\/strong><\/p>\n<h4 id=\"if-it-doesnt-work-there-are-2-possible-reasons\" >If it doesn&#8217;t work, there are 2 possible reasons:<\/h4>\n<ol>\n<li>Your website hosting is blocking the connection to the streaming provider<\/li>\n<li>Your streaming provider is not publishing the song information using the ICY metadata<\/li>\n<\/ol>\n<p>Generally speaking, this method always works, bu<strong>t you should avoid it if possible<\/strong>, to save CPU and bandwidth on your website hosting.<\/p>\n<h3 id=\"more-info-and-troubleshooting\" >More info and troubleshooting<\/h3>\n<p>This uses a\u00a0<strong>server side connection<\/strong>, which means that your web server requires to connect through the same port of your stream.<\/p>\n<p>So, if your stream URL is for example<\/p>\n<p><strong><em>https:\/\/servername.com:1234\/stream<\/em><\/strong><\/p>\n<p>Your port is \u201c1234\u201d and your website server has to allow connections on this port.\u00a0<strong>Only your hosting provider can verify this setting and eventually open the port for you.<\/strong><\/p>\n<p><strong>If it doesn\u2019t work<\/strong>\u00a0(no titles appear and the port is open) probably your\u00a0<strong>streaming<\/strong>\u00a0provider is not publishing the \u201cicy\u201d metadata.<\/p>\n<p><strong>Side info:<\/strong>\u00a0ICY stands for I Can Yell. ICYcast was also the name of the \u201cbeta\u201d builds of SHOUTcast.<\/p>\n<\/div>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht_kb_category":[654],"ht_kb_tag":[658,559,659],"class_list":["post-6552","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-radio-streaming-channel-set-up","ht_kb_tag-icy-metadata-icycast","ht_kb_tag-streaming","ht_kb_tag-titles"],"_links":{"self":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb\/6552"}],"collection":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/comments?post=6552"}],"version-history":[{"count":2,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb\/6552\/revisions"}],"predecessor-version":[{"id":6577,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb\/6552\/revisions\/6577"}],"wp:attachment":[{"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/media?parent=6552"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb_category?post=6552"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/manuals.qantumthemes.xyz\/onair2\/wp-json\/wp\/v2\/ht_kb_tag?post=6552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}