Available Methods
- TIME_UNSET
- INDEX_UNSET
- LENGTH_UNSET
- MICROS_PER_SECOND
- RESULT_END_OF_INPUT
- TRACK_TYPE_VIDEO
- POSITION_UNSET
- TRACK_TYPE_AUDIO
- TIME_END_OF_SOURCE
- TRACK_TYPE_TEXT
- PcmEncoding ( )
- ENCODING_PCM_16BIT ( )
- ENCODING_INVALID
- Encoding ( )
- BUFFER_FLAG_KEY_FRAME
- RESULT_FORMAT_READ
- RESULT_BUFFER_READ
- SELECTION_REASON_UNKNOWN
- ENCODING_PCM_FLOAT
- ENCODING_AC3 ( )
- TYPE_HLS
- AUDIO_SESSION_ID_UNSET
- ENCODING_PCM_32BIT ( )
- RESULT_NOTHING_READ
- TYPE_OTHER
- ENCODING_PCM_24BIT ( )
- TYPE_DASH
- BufferFlags ( )
- TRACK_TYPE_UNKNOWN
- usToMs ( )
- msToUs ( )
- TYPE_SS
- ContentType ( )
- SelectionFlags ( )
- ENCODING_PCM_MU_LAW
- TRACK_TYPE_METADATA
- RoleFlags ( )
- SELECTION_REASON_ADAPTIVE
- NetworkType ( )
- SELECTION_FLAG_DEFAULT
- ENCODING_PCM_8BIT ( )
- PERCENTAGE_UNSET
- STREAM_TYPE_USE_DEFAULT
- AudioUsage ( )
- STREAM_TYPE_NOTIFICATION
- STREAM_TYPE_MUSIC
- ENCODING_PCM_A_LAW
- StereoMode ( )
- DATA_TYPE_MANIFEST
- PLAYREADY_UUID
- USAGE_NOTIFICATION_RINGTONE
- MSG_SET_VOLUME
- SELECTION_REASON_INITIAL
- USAGE_NOTIFICATION
- WIDEVINE_UUID
- CryptoMode ( )
- ENCODING_DTS_HD
- STEREO_MODE_MONO
- NETWORK_TYPE_OFFLINE
- ENCODING_E_AC3 ( )
- STREAM_TYPE_SYSTEM
- StreamType ( )
- STREAM_TYPE_DEFAULT
- NETWORK_TYPE_UNKNOWN
- DATA_TYPE_MEDIA_PROGRESSIVE_LIVE
- DATA_TYPE_MEDIA
- USAGE_VOICE_COMMUNICATION_SIGNALLING
- NETWORK_TYPE_ETHERNET
- USAGE_ASSISTANCE_SONIFICATION
- USAGE_ALARM
- ROLE_FLAG_MAIN
- STREAM_TYPE_ALARM
- NETWORK_TYPE_4G ( )
- AudioContentType ( )
- DATA_TYPE_DRM
- USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
- CLEARKEY_UUID
- ROLE_FLAG_COMMENTARY
- TRACK_TYPE_NONE
- BUFFER_FLAG_ENCRYPTED
- STREAM_TYPE_RING
- ENCODING_DOLBY_TRUEHD
- ENCODING_E_AC3_JOC ( )
- BITS_PER_BYTE
- STEREO_MODE_STEREO_MESH
- STREAM_TYPE_VOICE_CALL
- DEFAULT_BUFFER_SEGMENT_SIZE
- ColorTransfer ( )
- STEREO_MODE_LEFT_RIGHT
- TRACK_TYPE_DEFAULT
- CENC_TYPE_cenc ( )
- ENCODING_AC4 ( )
- CENC_TYPE_cens ( )
- COLOR_TRANSFER_ST2084 ( )
- SELECTION_FLAG_AUTOSELECT
- USAGE_MEDIA
- VIDEO_OUTPUT_MODE_SURFACE_YUV
- DEFAULT_METADATA_BUFFER_SIZE
- PROJECTION_RECTANGULAR
- USAGE_ASSISTANCE_ACCESSIBILITY
- USAGE_NOTIFICATION_COMMUNICATION_REQUEST
- CONTENT_TYPE_SPEECH
- BUFFER_FLAG_LAST_SAMPLE
- USAGE_NOTIFICATION_COMMUNICATION_INSTANT
- SELECTION_FLAG_FORCED
- ROLE_FLAG_ALTERNATE
- ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY
- STREAM_TYPE_DTMF
- NETWORK_TYPE_CELLULAR_UNKNOWN
- MSG_SET_AUX_EFFECT_INFO
- UUID_NIL
- MSG_SET_SURFACE
- SANS_SERIF_NAME
- NETWORK_TYPE_WIFI
- MSG_SET_AUDIO_ATTRIBUTES
- USAGE_UNKNOWN
- COLOR_RANGE_FULL
- COLOR_RANGE_LIMITED
- SERIF_NAME
- ROLE_FLAG_SUPPLEMENTARY
- NANOS_PER_SECOND
- USAGE_GAME
- NETWORK_TYPE_3G ( )
- USAGE_NOTIFICATION_EVENT
- NETWORK_TYPE_OTHER
- USAGE_VOICE_COMMUNICATION
- STEREO_MODE_TOP_BOTTOM
Related Classes
- java.util.Arrays
- java.util.Collections
- android.content.Context
- android.util.Log
- java.util.UUID
- android.os.Handler
- android.net.Uri
- java.nio.ByteBuffer
- android.text.TextUtils
- android.support.annotation.Nullable
- java.io.EOFException
- androidx.annotation.Nullable
- android.util.Pair
- org.xmlpull.v1.XmlPullParser
- org.xmlpull.v1.XmlPullParserException
- com.google.android.exoplayer2.upstream.DefaultDataSourceFactory
- com.google.android.exoplayer2.source.MediaSource
- com.google.android.exoplayer2.util.Util
- com.google.android.exoplayer2.trackselection.DefaultTrackSelector
- com.google.android.exoplayer2.ExoPlaybackException
- com.google.android.exoplayer2.upstream.DataSource
- com.google.android.exoplayer2.Player
- com.google.android.exoplayer2.source.TrackGroupArray
- com.google.android.exoplayer2.trackselection.TrackSelection
- com.google.android.exoplayer2.source.hls.HlsMediaSource
Java Code Examples for com.google.android.exoplayer2.C#VIDEO_OUTPUT_MODE_SURFACE_YUV
The following examples show how to use
com.google.android.exoplayer2.C#VIDEO_OUTPUT_MODE_SURFACE_YUV .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleDecoderVideoRenderer.java From MediaSDK with Apache License 2.0 | 6 votes |
/** * Renders the specified output buffer. * * <p>The implementation of this method takes ownership of the output buffer and is responsible * for calling {@link VideoDecoderOutputBuffer#release()} either immediately or in the future. * * @param outputBuffer {@link VideoDecoderOutputBuffer} to render. * @param presentationTimeUs Presentation time in microseconds. * @param outputFormat Output {@link Format}. * @throws VideoDecoderException If an error occurs when rendering the output buffer. */ protected void renderOutputBuffer( VideoDecoderOutputBuffer outputBuffer, long presentationTimeUs, Format outputFormat) throws VideoDecoderException { lastRenderTimeUs = C.msToUs(SystemClock.elapsedRealtime() * 1000); int bufferMode = outputBuffer.mode; boolean renderSurface = bufferMode == C.VIDEO_OUTPUT_MODE_SURFACE_YUV && surface != null; boolean renderYuv = bufferMode == C.VIDEO_OUTPUT_MODE_YUV && outputBufferRenderer != null; if (!renderYuv && !renderSurface) { dropOutputBuffer(outputBuffer); } else { maybeNotifyVideoSizeChanged(outputBuffer.width, outputBuffer.height); if (renderYuv) { outputBufferRenderer.setOutputBuffer(outputBuffer); } else { renderOutputBufferToSurface(outputBuffer, surface); } consecutiveDroppedFrameCount = 0; decoderCounters.renderedOutputBufferCount++; maybeNotifyRenderedFirstFrame(); } }
Example 2
Source File: SimpleDecoderVideoRenderer.java From MediaSDK with Apache License 2.0 | 6 votes |
/** * Sets output surface. * * @param surface Surface. */ protected final void setOutputSurface(@Nullable Surface surface) { if (this.surface != surface) { // The output has changed. this.surface = surface; if (surface != null) { outputBufferRenderer = null; outputMode = C.VIDEO_OUTPUT_MODE_SURFACE_YUV; if (decoder != null) { setDecoderOutputMode(outputMode); } onOutputChanged(); } else { // The output has been removed. We leave the outputMode of the underlying decoder unchanged // in anticipation that a subsequent output will likely be of the same type. outputMode = C.VIDEO_OUTPUT_MODE_NONE; onOutputRemoved(); } } else if (surface != null) { // The output is unchanged and non-null. onOutputReset(); } }