com.google.android.exoplayer2.video.VideoFrameMetadataListener Java Examples
The following examples show how to use
com.google.android.exoplayer2.video.VideoFrameMetadataListener.
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: SimpleExoPlayer.java From MediaSDK with Apache License 2.0 | 6 votes |
@Override public void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener) { verifyApplicationThread(); if (videoFrameMetadataListener != listener) { return; } for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_VIDEO) { player .createMessage(renderer) .setType(C.MSG_SET_VIDEO_FRAME_METADATA_LISTENER) .setPayload(null) .send(); } } }
Example #2
Source File: SimpleExoPlayer.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@Override public void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener) { verifyApplicationThread(); if (videoFrameMetadataListener != listener) { return; } for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_VIDEO) { player .createMessage(renderer) .setType(C.MSG_SET_VIDEO_FRAME_METADATA_LISTENER) .setPayload(null) .send(); } } }
Example #3
Source File: SimpleExoPlayer.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener) { verifyApplicationThread(); if (videoFrameMetadataListener != listener) { return; } for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_VIDEO) { player .createMessage(renderer) .setType(C.MSG_SET_VIDEO_FRAME_METADATA_LISTENER) .setPayload(null) .send(); } } }
Example #4
Source File: SimpleExoPlayer.java From MediaSDK with Apache License 2.0 | 5 votes |
@Override public void setVideoFrameMetadataListener(VideoFrameMetadataListener listener) { verifyApplicationThread(); videoFrameMetadataListener = listener; for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_VIDEO) { player .createMessage(renderer) .setType(C.MSG_SET_VIDEO_FRAME_METADATA_LISTENER) .setPayload(listener) .send(); } } }
Example #5
Source File: SimpleExoPlayer.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public void setVideoFrameMetadataListener(VideoFrameMetadataListener listener) { verifyApplicationThread(); videoFrameMetadataListener = listener; for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_VIDEO) { player .createMessage(renderer) .setType(C.MSG_SET_VIDEO_FRAME_METADATA_LISTENER) .setPayload(listener) .send(); } } }
Example #6
Source File: SimpleExoPlayer.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void setVideoFrameMetadataListener(VideoFrameMetadataListener listener) { verifyApplicationThread(); videoFrameMetadataListener = listener; for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_VIDEO) { player .createMessage(renderer) .setType(C.MSG_SET_VIDEO_FRAME_METADATA_LISTENER) .setPayload(listener) .send(); } } }
Example #7
Source File: Player.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Sets a listener to receive video frame metadata events. * * <p>This method is intended to be called by the same component that sets the {@link Surface} * onto which video will be rendered. If using ExoPlayer's standard UI components, this method * should not be called directly from application code. * * @param listener The listener. */ void setVideoFrameMetadataListener(VideoFrameMetadataListener listener);
Example #8
Source File: Player.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Clears the listener which receives video frame metadata events if it matches the one passed. * Else does nothing. * * @param listener The listener to clear. */ void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener);
Example #9
Source File: Player.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Sets a listener to receive video frame metadata events. * * <p>This method is intended to be called by the same component that sets the {@link Surface} * onto which video will be rendered. If using ExoPlayer's standard UI components, this method * should not be called directly from application code. * * @param listener The listener. */ void setVideoFrameMetadataListener(VideoFrameMetadataListener listener);
Example #10
Source File: Player.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Clears the listener which receives video frame metadata events if it matches the one passed. * Else does nothing. * * @param listener The listener to clear. */ void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener);
Example #11
Source File: Player.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Sets a listener to receive video frame metadata events. * * <p>This method is intended to be called by the same component that sets the {@link Surface} * onto which video will be rendered. If using ExoPlayer's standard UI components, this method * should not be called directly from application code. * * @param listener The listener. */ void setVideoFrameMetadataListener(VideoFrameMetadataListener listener);
Example #12
Source File: Player.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Clears the listener which receives video frame metadata events if it matches the one passed. * Else does nothing. * * @param listener The listener to clear. */ void clearVideoFrameMetadataListener(VideoFrameMetadataListener listener);