public class MediaFileSource extends BaseMediaSource
MediaSource interface that reads media data from a File.
The content length will be initialized to the file length, the last
modified time to the file modification time, and the name of the source
will be the name (last path element) of the file.MediaSourceMediaSource.OutputcontentLength, etag, lastModified, mediaType, name| Constructor and Description |
|---|
MediaFileSource(java.io.File mediaFile,
java.lang.String mediaType) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream() |
java.io.File |
getMediaFile() |
java.io.OutputStream |
getOutputStream() |
getContentLength, getContentType, getEtag, getLastModified, getName, setContentLength, setEtag, setLastModified, setName