com.google.android.exoplayer2.video.spherical.CameraMotionListener Java Examples
The following examples show how to use
com.google.android.exoplayer2.video.spherical.CameraMotionListener.
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 clearCameraMotionListener(CameraMotionListener listener) { verifyApplicationThread(); if (cameraMotionListener != listener) { return; } for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_CAMERA_MOTION) { player .createMessage(renderer) .setType(C.MSG_SET_CAMERA_MOTION_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 clearCameraMotionListener(CameraMotionListener listener) { verifyApplicationThread(); if (cameraMotionListener != listener) { return; } for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_CAMERA_MOTION) { player .createMessage(renderer) .setType(C.MSG_SET_CAMERA_MOTION_LISTENER) .setPayload(null) .send(); } } }
Example #3
Source File: SimpleExoPlayer.java From Telegram with GNU General Public License v2.0 | 6 votes |
@Override public void clearCameraMotionListener(CameraMotionListener listener) { verifyApplicationThread(); if (cameraMotionListener != listener) { return; } for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_CAMERA_MOTION) { player .createMessage(renderer) .setType(C.MSG_SET_CAMERA_MOTION_LISTENER) .setPayload(null) .send(); } } }
Example #4
Source File: SimpleExoPlayer.java From MediaSDK with Apache License 2.0 | 5 votes |
@Override public void setCameraMotionListener(CameraMotionListener listener) { verifyApplicationThread(); cameraMotionListener = listener; for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_CAMERA_MOTION) { player .createMessage(renderer) .setType(C.MSG_SET_CAMERA_MOTION_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 setCameraMotionListener(CameraMotionListener listener) { verifyApplicationThread(); cameraMotionListener = listener; for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_CAMERA_MOTION) { player .createMessage(renderer) .setType(C.MSG_SET_CAMERA_MOTION_LISTENER) .setPayload(listener) .send(); } } }
Example #6
Source File: SimpleExoPlayer.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public void setCameraMotionListener(CameraMotionListener listener) { verifyApplicationThread(); cameraMotionListener = listener; for (Renderer renderer : renderers) { if (renderer.getTrackType() == C.TRACK_TYPE_CAMERA_MOTION) { player .createMessage(renderer) .setType(C.MSG_SET_CAMERA_MOTION_LISTENER) .setPayload(listener) .send(); } } }
Example #7
Source File: Player.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Sets a listener of camera motion events. * * @param listener The listener. */ void setCameraMotionListener(CameraMotionListener listener);
Example #8
Source File: Player.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Clears the listener which receives camera motion events if it matches the one passed. Else * does nothing. * * @param listener The listener to clear. */ void clearCameraMotionListener(CameraMotionListener listener);
Example #9
Source File: Player.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Sets a listener of camera motion events. * * @param listener The listener. */ void setCameraMotionListener(CameraMotionListener listener);
Example #10
Source File: Player.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Clears the listener which receives camera motion events if it matches the one passed. Else * does nothing. * * @param listener The listener to clear. */ void clearCameraMotionListener(CameraMotionListener listener);
Example #11
Source File: Player.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Sets a listener of camera motion events. * * @param listener The listener. */ void setCameraMotionListener(CameraMotionListener listener);
Example #12
Source File: Player.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Clears the listener which receives camera motion events if it matches the one passed. Else * does nothing. * * @param listener The listener to clear. */ void clearCameraMotionListener(CameraMotionListener listener);