Comments (2)
Sounds like something that should be doable, but cryptography with JS isn't secure for DRM or against man-in-the-middle attacks.
On 9 Sep 2013, at 14:39, Andrei Stoicescu [email protected] wrote:
I'm still going through the docs and all, but basically I want to deliver a file from a server (say like you would normally do with an mp3) but add some sort of on the fly encryption (something simple for starters, say delivering a base64 string representation of the mp3 file) and play it on the client
Can you guys tell me if this is even remotely possible using this framework?
—
Reply to this email directly or view it on GitHub.
from aurora.js.
Yeah, that should be possible. It's not something that we'll add to the core framework, but easily accomplished using a third party library. Basically, you need to put something between the source and the demuxer. You can that by wrapping the source class you want to use (e.g. HTTPSource
), receiving data events from the wrapped source and doing your decryption, then finally re-emitting data events. Since your wrapper will basically act as a source, make sure you implement the methods described here and basically call the implementations of the original source from them.
Hope that wasn't too complicated an explanation. The basic gist is that you wrap the source to do some processing before emitting data events. Good luck!
from aurora.js.
Related Issues (20)
- How do I decode to raw, resample to 44,1khz and split stereo into dual mono buffers?
- "Something is wrong in HTTPSource.loop" while using AV.Asset.fromURL(remoteUrl)
- [Solved]switch backend from Speaker to PortAudio(naudiodon)
- Aurora not playing certain flac files with no error
- Live decoding on Android
- Node example HOT 1
- No default jsDelivr CDN file set
- Problems with 24-bit WAV files
- Questions about memory manage.
- Is decoding a specific part of a gargantuan file supported efficiently? HOT 3
- HTTP requests still sending to server even if HTTP error is returned
- Unit tests fail on master branch
- Chrome browser change for same site cookies
- gyp build fail HOT 1
- build for browser
- m4a demuxer fails when processing a file with co64 atom
- Window Not Defined
- decode fail
- How to install additional codecs? HOT 1
- Uncaught SyntaxError: Unexpected identifier 'key'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aurora.js.