Web Audio API - record all tab sounds - javascript

Is there a way to intercept and record all sounds happening in a browser tab using Audio API or some other method.
Let's say I am watching simultaneously three YouTube videos in one tab, can I record that using Audio API?

This isn't really directly possible (for security and privacy reasons). As a user, it's possible to set it up - by setting a loopback audio driver as your audio output driver for the YT tabs - but not in a totally automated way.
(This is a duplicate, btw - of Cross application audio analysis with the Web Audio API, et al.)

You can use http://goldfirestudios.com/blog/104/howler.js-Modern-Web-Audio-Javascript-Library this javascript library.
This link has full documentation, features and usage. This library works great for games and audio-related web apps. Hope this will help you.

Related

How does soundcloud web make an android notification

I am talking about this notification:
Somehow SoundCloud (the website) makes this notification appear and it has working controls. I do not have the app installed, that notification originates from com.android.chrome. I don't really need to know this to reproduce it, but I'm curious as to how it accomplishes this and perhaps in what other ways you can use it.
This is accomplished with Chrome Media Notifications. https://developers.google.com/web/updates/2015/07/media-notifications
To get the playback controls, and other information on the notification, you can customise them by providing meta data with the Media Session API. https://developers.google.com/web/updates/2017/02/media-session
When Android is programmed, it gets certain features that allow it to communicate with web hosts and websites. The website will have to be built a certain way that allows it to be communicative, but that seems to be what's happening in this situation.

Can I use the Web API & Play Button Widget for a 3rd Party Spotify Mobile App?

I started building a Spotify Client for BlackBerry 10 using the Web API and the Play Button Widget but still have not published to the store since I want to clear up things first.
Please can anyone tell me if it's okay to use the Web API and the Play Button Widget in my 3rd Part Spotify Mobile App?
I use the Web API for authorization, loading playlists, tracks, albums etc, and I plan to use the Play Button Widget to play the full song.
I also plan to make money from it via Removing the Ads that I will integrate.
Link the the App's Details and Screenshots: http://forums.crackberry.com/blackberry-10-apps-f274/spo2fy-native-spotify-client-blackberry-10-a-948673/
Can somebody advise please?
Right now the Developer Terms of Use forbid monetisation either directly or via adverts for applications that stream audio. The Developer ToS can be found here.
Also, the Play Button widget doesn't work on mobile platforms like Blackberry - it requires a desktop machine as it remote controls either the Web Player or Desktop client.
Additionally, although not part of your question — your app looks like a direct copy of Spotify's own UI. In general, this isn't a good idea. This isn't a threat per se, but it's close enough to potentially look like an "official" client, which is also forbidden by the ToS.

Audio recording with HTML5

I'm trying to implement audio recording in a website. Basically the user should be able to press a button and speak something into the microphone. The recorded audio should then be sent to the server for further processing. I realise that you can do this with Flash, but for now I'm trying to avoid that.
I found several resources on the internet about it (i.e. link) but as it seems, this functionality is not widly supported yet. I experienced differences betweet the used browser and between the used operating system. For instance, the Chrome Browser doesn't seem to access any microphone on Linux correctly. So i was wondering if anyone knows a good resource to dive into this. Or maybe someone tried to set up something like this himself, and can help with some suggestions about where the limitations of HTML5 and the JavaScript Web Audio API are right now.
Thanks!
As of Chrome Version 27.0.1453.56 beta Mac, audio recording works with this demo application https://github.com/mattdiamond/Recorderjs
This app returns back a WAV file for the user which can be uploaded to the server.
If you want a truly robust solution that works on most desktop web browsers, you may need to resort to Flash.
This article covers up pretty well the current state of audio video capture possibilites using HTML5:
http://hdfvr.com/html5-video-recording
Also for just audio capture, here's a gitHub project that records audio to mp3 directly from the browser:
https://github.com/nusofthq/Recordmp3js

Looking for a cross-mobile browser compatible way to record from a built in microphone?

I want to make a very simple web app that takes the audio signal from the phone's microphone and varies some simple graphics on the page in as near to real-time as possible.
I'd prefer the app to be web-based (rather than iOS/Android apps) so that users can be directed to the page in a more rapid way. (I.e. go to sh.ort/url and the web app starts straight away)
Is this currently possible?
I'm not sure how well supported the web audio API is, or some of the more modern HTML5 features.
Thanks
This gives you a nice tutorial on how to record audio through the HTML5 API: http://www.html5rocks.com/en/tutorials/getusermedia/intro/
Unfortunately, as seen in this post, Apple doesn't support any API for this yet: Mobile Safari Audio Recording from Microphone

How do I block/prevent video downloader addins or programmes?

I have a video site using a HTML5 video player. Users pay money to join the site. But the download manager (in mozilla) or real player download manager can download our videos from the server.
I want to prevent or block these applications. How can I prevent the programs from running?
There is no DRM (Digital Rights Management) in the HTML5 spec, so you cannot do it with HTML5 video.
There are attempts to add DRM to HTML 5 (Encrypted Media Extensions)
With tech companies abandoning the proprietary Flash and Silverlight
media players for HTML5, it was inevitable somebody would try to
inject DRM into the virgin spec.
Microsoft, Google and Netflix are that “somebody”, having submitted a
proposed modification to HTML5 to the World Wide Web Consortium (W3C)
for “encrypted media extensions”.
http://www.theregister.co.uk/2012/02/23/microsoft_google_netflix_html5_drm_infection/
However, such extensions are not available today and will not be for some time, if indeed the proposal is even adopted.
If you need DRM, you will need to use a video technology that supports it.
Even with DRM you simply can't - whatever you've sent to client (keys/content/whatever), client can simply save and replay when he needs decoded stream again. The only solution that would reliably delay decoding, is some hardware solution, but as I understand you'll be going over regular HTTP and browser.
Your problem is legal one and should be solved with legal means.
Overlay their unique user ID onto the video, so if they do capture it, then legal action can be taken as you can prove it's them that downloaded it.
other than that, nothing you can do really...

Categories

Resources