Skip to content

Instantly share code, notes, and snippets.

View gwokudasam's full-sized avatar
:octocat:
Focusing

gwokudasam gwokudasam

:octocat:
Focusing
View GitHub Profile
@gwokudasam
gwokudasam / AndroidEncryptedMP3LocalHTTPServer.java
Created January 3, 2016 17:31 — forked from thedumbtechguy/AndroidEncryptedMP3LocalHTTPServer.java
A Local HTTP Streaming Server (LocalHTTPServer) for Android. This version was specifically made to stream encrypted MP3 files using a CipherInputStream to MediaPlayer but should be easily modified to work on ordinary files. It has been tested on API 9+ and works fine on large files (tested on up to 20MB files) and also supports range requests. I…
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;