Information from ICEcast [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a Dutch Radio Station called FinioxFM and I would like to get information from my ICEcast server to my website. I'm using Airtime, I've searched all over the internet and I couldn't find a answer. I saw a lot op options but they were all from 2007 or 2010 and I didn't know if they would still work now. My question is how do I get this information from my ICEcast server. Or is there a simple way with Airtime? Do I use HTML, Java Script or PHP? What are my options?
Using Airtime V2.5.1 and a direct link to my stream is http://radio.finiox.com:8000/live - My website is http://www.finiox.com
Thanks for helping me out!

You're using a rather old version of Icecast, that leads to three options:
Upgrade to latest version (2.4.1) and use the JSON API. (Official packages for many distributions available at http://icecast.org/download/)
Retrofit the JSON API files (status-json.xsl and xml2json.xslt) and put them in your webroot
Write custom XSLT and access that. Some old examples are here: http://ruecker.fi/foss/icecast/xslt/
Please note that both option 2 and 3 mean that you need to do the query and inclusion on the server side. While on Icecast 2.4.1 or newer you also query that data directly from the client web browser, as Icecast supports sending CORS ACAO headers. (See default config and documentation)

Related

Accesing camera via Javascript, taking a picture and sending it to Firebase CloudStorage [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Good morning, I´m studiyng and have this problem to solve. I have to create the logic in Javascript with nodejs, to access the device camera (this is a webApp, not Android, thats why is coded in JS), then take a picture and then send it to my backend and save it in Firebase Cloud Storage. I´m not asking for a complex code, but if u know any source, or any repository to start working will be appreciated.
Thanks in advance :D
Happy coding!
When using Node.js as part of a web application it is used for the server-side component of the application and doesn't have access to any cameras on devices accessing it.
You need to use client-side code to do that.
iOS and Android devices tend to make the camera available as an option when you use a regular <input type="file"> so you can use a normal HTML form and your usual multipart-capable body parsing library (not body-parser although its documentation list some options) on your server.
If you want access to a webcan cam then you'd need to look into WebRTC.

simulate a server vs running the html file [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I recently started some web-design and when I look for tutorials on youtube I often see people, when checking their code, using some kind of virtual server to upload and then see their page. I was wondering what difference would there be to simply lunch the html file I'm working and see it through my browser? Does it really make a difference to use a local server? and if yes which ways would you recommend to achieve that?
Thanks!
If you just have pure html and css then opening the file in the browser is the exact same as opening it in a server. However, the real difference is with javascript. If you try to make an HTTP request using js to your own site, it will work on a server but will not work if you open it as a file. If you want to start a server, python has a SimpleHTTPServer module, and most code editors have some sort of plugin, like VS Live Server for VS Code.

Are there any ways to integrate fingerprint biometrics on HTML5 or JavaScript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
The community reviewed whether to reopen this question 10 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I have this new project that requires fingerprint bio metrics.
A Regular fingerprint scanner device will be used but I have less idea on how to use web technologies(HTML,JS,etc...) with this device, I already know that one way to do this is through Java. I was wondering if it is possible that this could be done using basic web technologies like JavaScript, HTML5 or even PHP.
All I need to do is to save the image of the scanned fingerprint to a specific file but I am not sure if HTML5 or JavaScript alone can do this.
I need to know if this is really possible and how.
Any solutions will do.
Welcome to 2019
You can now implement Web_Authentication_API https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API
Firstly let me explain you the basic concept. For any external devices to interact , you need a device driver in the PC and a software that co-ordinates with the device driver to receive input and send outputs to the device.
You cannot do that with the sole HTML/JS alone.Also PHP is meant meant only for server side.
If possible your SDK/software supports uploading to internet, you can post & verify the data from the internet using PHP server.
If you prefer to go with JAVA, you can refer the below post:
How to capture biometric information on a webpage by using Java
The WebAuthn is the newest browsers feature that helps you to Authenticate users by Fingerprint Biometric on Mobile devices and Security devices on Desktop devices.

Quickest way to implement a basic REST/SOAP server and client for a beginner? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I would really appreciate some help and also I apologize if this is the incorrect type of question for this site.
Basically, as part of my University coursework I have been tasked with creating a REST/SOAP server and client that allows users to store playlist/song information and update it etc.
My problem however is that all the tutorials provided by the university are for Visual Basic, a program and language that I have yet to learn. Additionally the tutorials seem to consist of "open a new project, copy and paste this code, now run it".
I am aware that REST/SOAP can be implemented in a variety of ways and so I would like to find out what the easiest way for me to learn would be.
I am comfortable with javascript/jquery so any solutions involving those would be preferable. I also wouldn't mind using the opportunity to learn Python if it's feasible.
PHP is great, it has a built in SoapClient and is huge in industry as a SOAP/RESTful API language. Anything non-Microsoft will usually use PHP.
As for the client, javascript can very easily work with SOAP objects, as an alternative to SOAP see JSON as a more lightweight communication protocol.
As a starting point, install WAMP if you are on windows, or LAMP on linux and I think MAMP for mac. This sets up a server on your local machine.
Write some php code and run it from your browser to see it spit out raw data. From there you should be able to start learning php basics. http://php.net will have some tutorials.
Regarding the client, check this out it is about jquery processing SOAP responses. Is it possible to parse a SOAP response with a jQuery xml handler?

Voice chat in the browser? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
We are looking to implement a group -voice- chat in the browser using node.js on the server. Is this possible?
If you want your solution to be purely JavaScript based on both, server and client side, then you would probably have to wait for the WebRTC, Device API or media capture API and then implement node.js backend for it.
Other than that it is, I would say, a question of Flash oriented APIs on the client side (for accessing devices such as cameras or microphones) and some kind of interoperability with node.js backend in case you don't want to take advantage of Flash Media Server or Red5.
I'm researching and working on the same problem.
This is my proposed stack:-
capturing voice on the client
https://github.com/jiehanzheng/Recorderjs/blob/master/README.md
encoding the captured speech so that it can be shared via Node
https://github.com/jpemartins/speex.js
sharing voice data with multiple users
node.js and socket.io
Somebody wrote a THESIS on this. good read but some missing code in the samples
http://pure.ltu.se/portal/files/36285511/LTU-EX-2012-36247736.pdf
relevant question on so. in particular look at answer by sirjamm
How to Call SPEEX Audio Decode/Encode in HTML5 / JavaScript (Without Flash)
If I get it working, will post the github ref here.
hth

Categories

Resources