- Centova Cast - Client Usage Guide
- Centova Cast - Client Reference Manual
Stream Status Summary
About the Widget
The Stream Status Summary widget shows the current song of your stream in one line of text on your web page. The
text is the title information that your autoDJ or your live source sends, for example Artist Name - Track Title.
If no source is connected to the stream, the widget shows None. The widget updates the text in real time when the
song changes.
If the widget code names no mount point, the widget shows the mount point /stream. To show a different mount point,
select it in the Mount Point box of the Widgets page before you copy the code.
Widget Code
The anchor code is a <span> element with the class cc_streaminfo and the attribute data-type="song". Before the
widget loads, the element shows the text Loading ....
The script code loads the streaminfo widget script. The Stream Details widget uses the same script. For more
information, see the Stream Details section.
Advanced Customization
Configurable Options
The advanced code sets these options:
setVisibility
Controls whether the widget hides the Buy this album element of the Stream Details widget when the track has no album URL. This option has no effect on the Stream Status Summary widget. The default isfalse.useEffects
Controls whether the widget fades out the old text and fades in the new text when the information changes. The default istrue.
Example:
<script type="text/javascript">
(function(){ (window.$CC||(window.$CC={})).streaminfo = {
setVisibility: false,
useEffects: false,
};})();
</script>
CSS
The widget uses this CSS class:
/* each element that shows stream information */
.cc_streaminfo {
}
/* added for 0.3 seconds while the text fades out, if useEffects is true */
.cc_streaminfo.fade-out {
}