-
- All Implemented Interfaces:
-
java.lang.Runnable
public abstract class MediaEncoder extends Thread
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMediaEncoder.MediaEncoderListener
-
Constructor Summary
Constructors Constructor Description MediaEncoder(MediaMuxerWrapper muxer, MediaEncoder.MediaEncoderListener listener)
-
Method Summary
Modifier and Type Method Description UrigetOutputUri()SurfacegetInputSurface()Returns the encoder's input surface. booleanframeAvailableSoon()the method to indicate frame data is soon available or already available voidrun()encoding loop on private thread -
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MediaEncoder
MediaEncoder(MediaMuxerWrapper muxer, MediaEncoder.MediaEncoderListener listener)
-
-
Method Detail
-
getOutputUri
Uri getOutputUri()
-
getInputSurface
Surface getInputSurface()
Returns the encoder's input surface.
-
frameAvailableSoon
boolean frameAvailableSoon()
the method to indicate frame data is soon available or already available
-
run
void run()
encoding loop on private thread
-
-
-
-