Java Audio API vs Web Audio API

I am trying to build an administrative application which can run on my cloud server and can produce a continuous stream of music for end users to access. All music files will be on the server and some may be stored on a local machine with a web client where I can interrupt the main server-side stream and use local files temporarily. When I am done, I can hand over back to the server.

I can't seem to wrap my head around generating a continuous stream without a client/server style interaction. I am thinking. the server-side must generate the stream and I can then use a separate web-app to interrupt the stream temporarily and resume when finished. this means i must be able to pull the stream given a url(kind of like the way desktop applications can pull updates and access online content etc). I have never built a desktop application.

I initially started out with Spring MVC, but it is a web framework and I am not sure if what I am trying to accomplish should be a traditional web client/server approach. If I build a web-app using WEB Audio API , when the admin-user terminates the window, computer goes down, the stream will go dead.

Presently, I am thinking about building a simple java class, build my audio processing using beads or the raw Java Audio api. I will compile a class file and run the programme on the server indefinitely. But how do I talk to such a programme from a web-app interface ?

How do I access the stream from a web-app for playback, much like an internet radio?

Please forgive if there are any ambiguity. Thanks Guys

Category:java Views:3 Time:2018-06-07

Related post

  • Streaming Large Audio Files for Web Audio API 2011-06-08

    Does anyone have any examples or suggestions on how to go about streaming large audio files for the Web Audio API? Reading the W3C spec, they recommend streaming when the files are large versus an XMLHTTPRequest (note: there is currently a bug preven

  • RESTful API vs Web Service API 2009-07-15

    I am looking at doing a small web application for learning purposes, using .NET. My conundrum is whether I should be exposing application logic to other sites and applications via a REST API, or a set of Web Services. I am familiar with web services,

  • Web Audio API Memory Leaks on Mobile Platforms 2014-06-09

    I am working on an application that will be using Audio quite heavily and I am in the research stages of deciding whether to use Web Audio API on devices that can support it. I have put together a very simple test bed that loads an MP3 sprite file (~

  • HTML5 Web Audio API, porting from javax.sound and getting distortion 2011-05-15

    I have a requirement to generate audio on the fly (generating from wav or mp3 files is not an option). Luckily the new WebAudio API (FF4 and Chrome 13) provides this functionality. I have some Java code i'm porting to Javascript that looks like this:

  • Web Audio Api JavaScriptAudioNode and number of channels 2011-10-06

    I'm currently playing with Web Audio API. I have a mono synthesizer of my creation in javascript, so I created a JavaScriptAudioNode element with 0 inputs and 1 output, conected with the audioDestinationNode of my context. Everytime the process funct

  • Web Audio API WaveShaperNode 2011-10-20

    How do you use the waveshapernode in the web audio api? particular the curve Float32Array attribute? --------------Solutions------------- Feel free to look at an example here. In detail, I create a waveshaper curve with this function: WAAMorningStar.

  • Web Audio API: How Can I Re-start the Playback Of a Sound? 2011-10-22

    I've written a basic script in Chrome that uses the new Web Audio Api to load 3 sound files (over XMLHTTPRequest) and play each of them back individually. I've provided a separate button for each sound that allows the user to start and stop each soun

  • Is there a way to use the Web Audio API to sample audio faster than real-time? 2011-11-10

    I'm playing around with the Web Audio API & trying to find a way to import an mp3 (so therefore this is only in Chrome), and generate a waveform of it on a canvas. I can do this in real-time, but my goal is to do this faster than real-time. All t

  • Extracting the song frequency of an mp3 file using HTML5 web audio API 2012-01-02

    I am using the HTML5 web audio API to analyse a song and create markers when the average sound frequency drops below a certain value. Using the existing AudioNode infrastructure, I managed to do this but the sound is analyzed only and only when the s

  • Web Audio API on Windows? 2012-01-09

    I'm trying to run a Web Audio API demo using a nightly build of WebKit on Windows. The demo won't run, and the console throws an error (ReferenceError: Can't find variable: webkitAudioContext). Does anyone know if it's currently possible to use the W

  • Web Audio API in Aptana Studio 3 or Komodo 2012-01-12

    Is there a way to get a autocomplete/code assist for the Web Audio API with Aptana Studio 3 or Komodo, or maybe a way to build my own code assist with the API? Cheers, Rainer --------------Solutions------------- Komodo autocomplete support can be ext

  • Making an impulse with a JavaScriptNode (Web Audio API) 2012-02-09

    I'm working with the Web Audio API, and I'm trying to make a JavaScriptNode that outputs an impulse. That is, I want a node that will output a 1 followed by a whole bunch of zeros, and nothing else. I thought the code below would be a sensible way to

  • Get All Samples from AudioData / Web Audio APIs 2012-03-03

    I'm trying to create a scrollable display of the waveform for a video soundtrack, so I need to have all of the samples for the entire audio track available at once, and I would really prefer to not have to make an AJAX request for the binary media da

  • Is there a way to get the data of currently playing audio on the computer/browser with Web Audio API? 2012-03-09

    I was wondering if it is possible to get audio that is currently playing on the computer, or the browser (Chrome) using the Web Audio API, or does the API have access to any microphone on the computer? This way I can make a music visualizer for what

  • How can I play audio in reverse with web audio API? 2012-03-26

    How can I play audio in reverse with the web audio API? I can't seem to find anything in the API docs... --------------Solutions------------- You could do something like this: var context = new AudioContext(), request = new XMLHttpRequest(); request.

  • Setting playbackRate on audio element connected to web audio api 2012-04-20

    I've been experimenting with connecting an audio element to the web audio api using createMediaElementSource and got it to work but one thing I need to do is change the playback rate of the audio tag and I couldn't get that to work. If you try to run

  • How to convert mono audio to stereo audio using Web Audio API 2014-01-31

    I am getting a remote media stream in which both audio and video resides. In this stream i am getting mono audio while i need stereo audio. So how can i convert mono audio to stereo audio using Web Audio API --------------Solutions------------- I am

  • Gracenote Rhythm API - is it possible to stream it with web audio? 2014-03-12

    I just started to discover interesting Gracenote Rhythm API - https://developer.gracenote.com/rhythm-api It says that it includes metadata, music recognition and an Internet Radio API, but I didn't find any possiblity to stream it with for example We

  • Java, Alfresco Web Service API and Unicode NamedValues 2008-10-10

    I'm using Java for accessing Alfresco content server via it's web service API for importing some content into it. Content should have some NamedValue properties set to UTF-8(cyrillic) string. I keep getting the Sax parser exception: org.xml.sax.SAXPa

  • How to get video and audio streams from web cameras with Java? 2010-03-26

    How can I get video and audio streams from web cameras with Java (in a cross-platform way)? For example, we have a computer with 3-4 USB web cameras; we want to get their streams and make them visible in the user interface. How can we perform such a

  • Web Search API for Java 2010-04-23

    I need a Java library for doing web searches ( any search engine is good ). I should be able to to write code such as: WebSearch search = new WebSearch("Apple"); System.Out.Println("Results = " + search.Results.Count); Does such a library/API exist ?

  • Using p/invoke and win-api to monitor audio line-in (C#) 2010-10-14

    In the last few days I was trying to write small program to monitor the audio line-in using win-api (winmm.dll). I can pinvoke api functions such as waveInOpen but I can't figure out how to use these functions to achieve my target. the question is -

  • Java API for web scraping or web mining 2011-03-09

    I'm looking for a good Java api to do web scraping. I tried WEB-Harvest api http://web-harvest.sourceforge.net/usage.php but I think it's a bit clunky. Any other suggestions? --------------Solutions------------- I've used httpunit to do just this tas

  • Mix two audios using Xuggler's MediaTool API 2012-04-16

    I want to read the data from two audio files and after mixing it write it to a new audio file. Both audios have the same duration, samplerate & number of channels and I want to take the left channel of audio1 and the right channel of audio2 to ma

  • Web Browser API in Java that works 2014-11-13

    I am trying to make a web browser in java. I have tried with this code, it works but the page appears blue private JEditorPane display; display.setPage("https://www.google.se"); Tried with "Lobo-Browser" it does not work. Please do not suggest premiu

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.218 (s). 11 q(s)