setDesTextureCount(int)setTextureTarget(int)EGLMediaPlayerImpl#setEGLTexImageAttribs(boolean, boolean).
See GLMediaPlayer.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | GLMediaPlayerImpl.
After |
| Modifier and Type | Field and Description |
|---|---|
| private String | acodec
Shall be set by the |
| private int | aid
Shall be set by the |
| private final HashMap | |
| private long | audio_scr_t0
System Clock Reference (SCR) of first audio PTS at start time. |
| private int | audioFrames
In frames. |
| private boolean | |
| protected AudioSink | |
| protected boolean | |
| private float | |
| private int | bps_audio
Audio bps. |
| private int | bps_stream
Stream bps. |
| private int | bps_video
Video bps. |
| private TextureSequence. | |
| protected Uri. | cameraPath
In case |
| protected Map | cameraProps
Optional camera properties, see |
| private volatile int | |
| private int | |
| private int | duration
In ms. |
| private final ArrayList | |
| private final Object | |
| private float | fps
Video avg. |
| private float | frame_duration
Video avg. |
| private int | height
Shall be set by the |
| private boolean | |
| private volatile TextureSequence. | |
| private long | |
| private static final int | MAX_FRAMELESS_MS_UNTIL_EOS
Help detect EOS, limit milliseconds without a valid frame. |
| private static final int | |
| private int | |
| private int | nullFrameCount
Help detect EOS, limit is |
| private volatile float | |
| private int | |
| private volatile GLMediaPlayer. | |
| private final Object | |
| private final boolean[] | |
| private static final int | |
| private volatile GLMediaPlayer. | |
| private Uri | streamLoc
User requested URI stream location. |
| private volatile GLMediaPlayerImpl. | |
| pack-priv static int | |
| private final int[] | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private int | |
| private final int[] | |
| private static final String | |
| private String | vcodec
Shall be set by the |
| private int | vid
Shall be set by the |
| private static final float | VIDEO_DPTS_COEFF
Cumulative coefficient, value . |
| private int | video_dpts_count
Cumulative video frames. |
| private float | video_dpts_cum
Cumulative video pts diff. |
| private static final int | VIDEO_DPTS_MAX
Maximum valid video pts diff. |
| private static final int | VIDEO_DPTS_NUM
Number of min frame count required for video cumulative sync. |
| private volatile int | |
| private int | video_scr_pts
System Clock Reference (SCR) PTS offset, i.e. first video PTS at start time. |
| private long | video_scr_t0
System Clock Reference (SCR) of first video frame at start time. |
| private int | videoFrames
In frames. |
| private Ringbuffer | |
| private Ringbuffer | |
| private TextureSequence. | |
| private boolean | videoSCR_reset
Trigger video PTS reset with given cause as bitfield. |
| private int | width
Shall be set by the |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addEventListener(final GLMediaPlayer.
Implements com. GLMediaEventListener to this player.
|
| protected final int | |
| public final Object | attachObject(final String name, final Object obj)
Implements com. |
| protected final void | |
| protected final void | |
| private final void | |
| protected TextureSequence. | |
| protected abstract TextureSequence. | |
| protected final Texture | |
| public final GLMediaPlayer. | destroy(final GL gl)
Implements com. attached user objects.
|
| private final GLMediaPlayer. | |
| protected abstract void | |
| protected void | |
| public final Object | detachObject(final String name)
Implements com. |
| private void | |
| public final int | getAID()
Implements com. |
| public final Object | getAttachedObject(final String name)
Implements com. |
| public final int | getAudioBitrate()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final String | getAudioCodec()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final int | getAudioFrames()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final int | |
| protected int | |
| public final AudioSink | getAudioSink()
Implements com. AudioSink, it's instance will be returned.
|
| public final float | getAudioVolume()
Implements com. |
| protected void | getAudioVolumeImpl()
Override if not using AudioSink, or AudioSink's |
| public final int | |
| public final int | |
| public final GLMediaPlayer. | getEventListeners()
Implements com. GLMediaEventListener of this player.
|
| public final float | getFramerate()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final int | getHeight()
Implements com. |
| public final TextureSequence. | getLastTexture()
Implements com. |
| protected final int | getNextSingleThreaded(final GL gl, final TextureSequence.
|
| public final TextureSequence. | getNextTexture(final GL gl)
Implements com. |
| protected abstract int | Returns: the last processed video PTS value, maybeTimeFrameI#INVALID_PTS if video frame is invalid or n/a.
Will be TimeFrameI#END_OF_STREAM_PTS if end of stream reached.valid and current GL instance, shall be gl, TextureSequence.null for audio only.the nextFrameTextureFrame to store the video PTS and texture data,
shall be null for audio only.Process stream until the next video frame, i.e. |
| public final String | getPerfString()
Implements com. |
| private final String | getPerfStringImpl(final int video_scr, final int video_pts, final int d_vpts, final int audio_scr, final int audio_pts, final int d_apts, final int video_dpts_avg_diff)
|
| public final float | getPlaySpeed()
Implements com. |
| public final int | |
| protected static final int | |
| public String | getRequiredExtensionsShaderStub()
Implements com. #extension GL_OES_EGL_image_external : enable |
| public final GLMediaPlayer. | |
| public final long | getStreamBitrate()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final GLMediaPlayer. | getStreamException()
Implements com. StreamException caught in the decoder thread, or null if none occured.
|
| public final int | |
| protected final int | |
| public final int | getTextureFragmentShaderHashCode()
Implements com. |
| public String | getTextureLookupFragmentShaderImpl()
Implements com.
vec4 funcName(in getTextureSampler2DType() image, in vec2 texCoord) {
vec4 texColor = do_something_with(image, texCoord);
return texColor;
}
|
| public String | getTextureLookupFunctionName(final String
desired lookup function name. If desiredFuncName)null or ignored by the implementation,
a build-in name is returned.Implements com. texture2D,
if not overridden by specialization.
|
| public final int[] | |
| public String | getTextureSampler2DType()
Implements com. sampler2D or samplerExternalOES
depending on getLastTexture().
|
| public final int | getTextureTarget()
Implements com. |
| protected final int | |
| public final int | getTextureUnit()
Implements com. |
| public final int[] | |
| public final Uri | getUri()
Implements com. initStream(Uri, int, int, int).
|
| public final int | getVID()
Implements com. |
| public final int | getVideoBitrate()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final String | getVideoCodec()
Implements com. Warning Optional information, may not be supported by implementation. |
| private final int | |
| public final int | getVideoFrames()
Implements com. Warning Optional information, may not be supported by implementation. |
| public final int | |
| public final int | getWidth()
Implements com. |
| public final void | initGL(final GL
current GL object. Maybe gl)null, for audio only.Implements com. |
| protected abstract void | initGLImpl(GL
null for audio-only, otherwise a valid and current GL object. gl)Shall initialize all GL related resources, if not audio-only. |
| public final void | initStream(final Uri
the stream location streamLoc, final int video stream id, see audio and video Stream IDs vid, final int video stream id, see audio and video Stream IDs aid, final int desired number of buffered textures to be decoded off-thread, will be validated by implementation.
The minimum value is reqTextureCount)TEXTURE_COUNT_DEFAULT.
Ignored if video is muted.Implements com. |
| protected abstract void | |
| public final boolean | isGLOriented()
Implements com. true if the video frame is oriented in
OpenGL's coordinate system, origin at bottom left.
|
| public final boolean | isTextureAvailable()
Implements com. getNextTexture(GL) and getLastTexture().
|
| private final void | |
| public final GLMediaPlayer. | pause(final boolean
if flush)true flushes the video and audio buffers, otherwise keep them intact.Implements com. |
| private final GLMediaPlayer. | |
| protected abstract boolean | |
| public final GLMediaPlayer. | play()
Implements com. |
| protected abstract boolean | |
| protected void | |
| protected void | |
| private final void | |
| public final void | removeEventListener(final GLMediaPlayer.
Implements com. GLMediaEventListener to this player.
|
| private void | |
| private void | |
| public final int | seek(int
absolute desired time position in milliseconds msec)Implements com. |
| protected abstract int | |
| public boolean | setAudioVolume(float v)
Implements com. |
| protected boolean | setAudioVolumeImpl(final float v)
Override if not using AudioSink, or AudioSink's |
| protected void | setFirstAudioPTS2SCR(final int pts)
To be called from implementation at 1st PTS after start w/ current pts value in milliseconds. |
| protected void | |
| public final boolean | setPlaySpeed(float rate)
Implements com. |
| protected boolean | setPlaySpeedImpl(final float rate)
Override if not using AudioSink, or AudioSink's |
| protected final void | |
| protected final void | |
| public final void | setTextureMinMagFilter(final int[] minMagFilter)
Implements com. GL#GL_NEAREST.
|
| protected final void | |
| protected final void | |
| public final void | setTextureUnit(final int u)
Implements com. |
| public final void | setTextureWrapST(final int[] wrapST)
Implements com. GL#GL_CLAMP_TO_EDGE.
|
| protected static final String | |
| protected static final String | |
| public final String | toString()
Overrides java. Implements com. |
| protected final void | updateAttributes(int vid, final int aid, final int width, final int height, final int bps_stream, final int bps_video, final int bps_audio, final float fps, final int videoFrames, final int audioFrames, final int duration, final String vcodec, final String acodec)
Called initially by |
| protected int | validateTextureCount(final int desiredTextureCount)
Returns the validated number of textures to be handled. |