https://github.com/vydd/cachedmediaplayer
Android MediaPlayer wrapper that supports caching via internal proxy
https://github.com/vydd/cachedmediaplayer
Last synced: 11 months ago
JSON representation
Android MediaPlayer wrapper that supports caching via internal proxy
- Host: GitHub
- URL: https://github.com/vydd/cachedmediaplayer
- Owner: vydd
- License: mit
- Created: 2015-02-17T16:56:59.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-17T17:37:11.000Z (over 11 years ago)
- Last Synced: 2025-03-26T03:51:15.457Z (over 1 year ago)
- Language: Java
- Size: 195 KB
- Stars: 25
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cachedmediaplayer
Android MediaPlayer wrapper that supports caching via internal proxy.
## Instructions
Add CachedMediaPlayer.java to your Android project and import where needed.
After initializing a new CachedMediaPlayer object, set your cache directory:
```java
...
CachedMediaPlayer cmp = new CachedMediaPlayer();
cmp.setCacheDir(CACHE_VIDEOS_LOCATION);
...
```
Other methods are extended from MediaPlayer, so you don't need to change anything else.
## Notes
It hasn't been battle tested yet.
Proxy needs some improvements, specifically regarding its cleanup after streaming is completed.