wavestreaming / jquery-shoutcast Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin to communicate with SHOUTcast DNAS v2 via JSON-P
Home Page: http://www.wavestreaming.com
License: MIT License
jQuery plugin to communicate with SHOUTcast DNAS v2 via JSON-P
Home Page: http://www.wavestreaming.com
License: MIT License
While attempting to set up the script on a site,
Discovered script does not function as described & produces following message in error console.
I also tested the example.html as found at the bottom of the page https://github.com/Wavestreaming/jquery-shoutcast/wiki/Easy-Setup which produced no output, and the same error.
Shoutcast server is V2.0 Build 29 running on Debian 6.
`Timestamp: 07/10/2012 03:43:36
Error: SyntaxError: invalid regular expression flag M
Source File: http://neotox.in:8000/stats?sid=1&json=1&callback=jQuery17104574587589301996_1349577150963&_=1349577815992
Line: 1, Column: 162
Source Code:
is there a way to make the stream status change offline to red and On Air to green and Awaiting Connection to orange
I have downloaded the plugin, installed it on my server and I followed the easy setup but I cant get any of the shoutcast info to display on my website.
I added this code to the page - have I put everything in the right place? can you please advise me?
<title>My Radio Station</title> <h1 data-shoutcast-value="servertitle"></h1>
<p>Now Playing: <span data-shoutcast-value="songtitle"></span></p>
<p>Listeners: <span data-shoutcast-value="currentlisteners"></span>/<span data-shoutcast-value="maxlisteners"></span></p>
<h2>You just missed</h2>
<ul id="played"></ul>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="jquery.shoutcast.easy.min.js?host=http://67.228.177.153/&port=5740"></script>
Hi ! I trying with this settings but not display any data from server
`
<title>My Radio Station</title> <h1 data-shoutcast-value="servertitle"></h1>
<p>Now Playing: <span data-shoutcast-value="songtitle"></span></p>
<p>Listeners: <span data-shoutcast-value="currentlisteners"></span>/<span data-shoutcast-value="maxlisteners"></span></p>
<h2>You just missed</h2>
<ul id="played"></ul>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="jquery.shoutcast.easy.min.js?host=212.108.200.53:7210&port=7210"></script>
How it's possible to solve this ?
Hello:
I tried this and it never worked.
if(this.onAir()){
$('#songtitle').text(this.get('songtitle'));
}
also, your code has a variable for connected listeners... but I don't see a way to use it
Any clue?
Regards
Hello!
How can i make it work with this url http://162.243.61.236:2199/tunein/-stream/tomillo.pls ?
Hi
Great Code I love it !!! Coud you add in the Playing/Album Art to the code ?
Blue
I'm getting this errors:
Uncaught SyntaxError: Unexpected token < stats:1
Uncaught TypeError: Object # has no method 'call' jquery.shoutcast.min.js:2
Resource interpreted as Script but transferred with MIME type text/xml: "http://sunbow.be:8000/stats?sid=1&json=1&callback=jQuery17105398041873704642_1366226925758&_=1366227057714". jquery.min.js:4
How does one make a table with the played status?
I'm trying to use Your script, but it seems not to work with Shoutcast 1.9.
For example this is link to radio:
http://fantasyradioru.no-ip.biz:8008/
It hasn't stats page:
http://fantasyradioru.no-ip.biz:8008/stats?sid=1
The same with another source:
http://188.165.206.81:8130/stats_proxy.php?sid=1
Why Your script doen't work with shoutcast 1.9. Could You help me with that, please?
Many thanks.
the script does not work on https pages.
Can you solve this?
I made a small, but useful change to jquery-shoutcast.js and I want to send a pull request. To be able to send a complete pull request I also want the change to be reflected in jquery-shoutcast.min.js and jquery-shoutcast.easy.min.js.
First of all, I wonder what the difference is between jquery-shoutcast.min.js and jquery-shoutcast.easy.min.js and secondly I'd like to know which tools you used for minification, so I can use the same for recreating the minified versions. Thank you.
I've successfully installed the script but I've encountered some trouble with accented characters.
Here's an example printscreen taken directly from my shoutcast admin page:
On the web site, it outputs like this:
Is there something I should do to make the accented characters output like they should?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.