Connect Jack with Web audio context - web-audio-api

Is it possible to interconnect the Web Audio context with the Jack audio connection kit?
My browser doesn't appear in QjackCtl, only the system sound is available. So I can't connect my audio web app as an audio element, for example a sound effect.

I guess it would depend on the browser. Firefox had a jack audio back-end at some point, maybe it could be resurrected ?

Related

Issue in streaming audio with PeerJS

I have a problem with PeerJS and audio. In particular, I use the stream coming from mediaDevices (both audio and video). In the transmitter page I can see the stream with both audio and video tracks. Instead in the receiver page I can see only the video, and the stream doesn't contain the audio track. What could be problem?
I'm working on Windows 11 with Edge browser, both transmitter and receiver websites are in the same network and I access them through ip.
Thank you!

iOS capturing audio via jack port

I know ios audio programming can route the audio signal to headphone jack port instead the speakers.
But How to treat the headphone jack port as input mic (and be able to capture the signal)?
is that possible?
this is what I need
cool video explaining what I need
thanks in advance
Dario
Apple has a nice demonstration project about using Audio Queue Services
http://developer.apple.com/library/ios/#samplecode/SpeakHere/Introduction/Intro.html
I would suggest going through this project, and it should show you what you need.

Is it possible to put audio into 'phone' mode?

By this I mean, use the speaker and phone microphone but don't use the speaker in the handsfree style.
So the use case is:
1. User is listening to the app via the phones speaker
2. They wish to put the phone to their ear so they choose an option which changes the audio to be as if they were talking on the phone (i.e. non-hands free mode)
Does this make sense? Or should this happen automatically?
You'll want to set the audio session category to AVAudioSessionCategoryPlayAndRecord:
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayAndRecord];
This will route all audio output to the receiver--"the small speaker you hold to your ear when on a phone call". See Audio Session Programming Guide: Configuring the Audio Session for more details.

Streaming Audio FROM iPhone to Browser. Ideas?

I have seen plenty of articles and SO questions about streaming TO an iPhone app, but my question is the reverse, that is, streaming FROM an iPhone app.
I have audio content in an iPhone app, that I want to stream to a browser. So the idea is that the browser can connect to a server running on the iphone. The server on the iphone will give the audio to the browser. The browser will play the endless stream.
I already have seamless looping content on the phone with AudioQueue. I already know how to setup a server running on the phone with CocoaHTTPServer. Is there a third piece that can make the AudioQueue (or a FileStream) stream to a browser connected to the internal iPhone server?
Anybody have any thoughts on how to implement this?
Well, there are a few good open source projects to dissect, port, or imitate for this. What I would suggest is looking at how Icecast and streamTranscoderv3 operate together. The latter will take an audio source and send it to an Icecast server as a source. Port parts of both and run them locally on the iPhone and you'd have a solution. I imagine that Bonjour could be used so that other systems on the LAN could find and listen to the iPhone.
Or send the streamTranscoder output to an Icecast server elsewhere and make it available for the world.
Unfortunately, neither project is over engineered - the code isn't super modular but it is comprehensible and modestly cross platform.

How do I stream video and play it?

How can I stream video data from the network and play it on an iPhone?
First, are you developing a Web app optimized for iPhone or a native application ?
In the first case, your only option is to transcode your video files to Quicktime H.264 (m4v or mp4 extension). You can use Quicktime Pro (use the export menu) or VLC (as a free alternative). Then simply add a hyperlink to the video file on your HTTP server. Make sure it presents the right content-type and stuff (read Safari Web Content Guide for iPhone OS: Configuring Your Server). That'll work for web and native apps (in a native app you would use the MPMoviePlayerController view). So can "stream" (technically called progressive download of a Quicktime movie file).
If you're talking about streaming live content (i.e. content that you produce live or transcode a live feed) there is currently no official way of doing it (as of iPhone OS 2.2). iPhone OS does not support RTSP/RTP streaming. A number of native iPhone applications (such as UStream.tv and Orb Live) have created their custom live streaming solution (most of them transfer a delayed streams with many seconds of latency over HTTP then somehow decode it on the phone using FFmpeg or other libraries).
Are you trying to stream video in your app or just streaming on your iPhone? For streaming video through an app, use the MPMoviePlayerController and pass the URL of your video to it. The MPMoviePlayerController will itself stream the video and play it for you.
If you're looking for a server based solution (with a very affordable Amazon EC2 option), be sure to check out Wowza at http://www.wowzamedia.com/advanced.php
It streams directly to iPhone/iPod Touch without a custom app.
note: I'm not affiliated with them at all... just a fan/customer.
edit: Just noticed how old this question was. :)