diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 5dadd7d2f9..d7fa719b4b 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -8,6 +8,8 @@ * Add builder for `PlayerNotificationManager`. * Library restructuring: * `DebugTextViewHelper` moved from `ui` package to `util` package. + * Spherical UI components moved from `video.spherical` package to + `ui.spherical` package, and made package private. * Remove deprecated symbols: * Remove `Player.DefaultEventListener`. Use `Player.EventListener` instead. diff --git a/library/core/src/main/java/com/google/android/exoplayer2/util/GlUtil.java b/library/common/src/main/java/com/google/android/exoplayer2/util/GlUtil.java similarity index 100% rename from library/core/src/main/java/com/google/android/exoplayer2/util/GlUtil.java rename to library/common/src/main/java/com/google/android/exoplayer2/util/GlUtil.java diff --git a/library/core/src/main/java/com/google/android/exoplayer2/util/TimedValueQueue.java b/library/common/src/main/java/com/google/android/exoplayer2/util/TimedValueQueue.java similarity index 100% rename from library/core/src/main/java/com/google/android/exoplayer2/util/TimedValueQueue.java rename to library/common/src/main/java/com/google/android/exoplayer2/util/TimedValueQueue.java diff --git a/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/FrameRotationQueue.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/FrameRotationQueue.java similarity index 97% rename from library/core/src/main/java/com/google/android/exoplayer2/video/spherical/FrameRotationQueue.java rename to library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/FrameRotationQueue.java index d464bf04fa..8299ecd000 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/video/spherical/FrameRotationQueue.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/FrameRotationQueue.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.google.android.exoplayer2.video.spherical; +package com.google.android.exoplayer2.ui.spherical; import android.opengl.Matrix; import com.google.android.exoplayer2.util.TimedValueQueue; @@ -27,7 +27,7 @@ import com.google.android.exoplayer2.util.TimedValueQueue; *
The decoder does not perform CRC checks at the moment. */ -public final class ProjectionDecoder { +/* package */ final class ProjectionDecoder { private static final int TYPE_YTMP = 0x79746d70; private static final int TYPE_MSHP = 0x6d736870; diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/ProjectionRenderer.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/ProjectionRenderer.java index 9a8c787e77..1f0f2017d6 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/ProjectionRenderer.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/ProjectionRenderer.java @@ -22,7 +22,6 @@ import android.opengl.GLES20; import androidx.annotation.Nullable; import com.google.android.exoplayer2.C; import com.google.android.exoplayer2.util.GlUtil; -import com.google.android.exoplayer2.video.spherical.Projection; import java.nio.FloatBuffer; /** diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/SceneRenderer.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/SceneRenderer.java index 674826e387..2b6e3f1ead 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/SceneRenderer.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/SceneRenderer.java @@ -29,9 +29,6 @@ import com.google.android.exoplayer2.util.GlUtil; import com.google.android.exoplayer2.util.TimedValueQueue; import com.google.android.exoplayer2.video.VideoFrameMetadataListener; import com.google.android.exoplayer2.video.spherical.CameraMotionListener; -import com.google.android.exoplayer2.video.spherical.FrameRotationQueue; -import com.google.android.exoplayer2.video.spherical.Projection; -import com.google.android.exoplayer2.video.spherical.ProjectionDecoder; import java.util.Arrays; import java.util.concurrent.atomic.AtomicBoolean; import org.checkerframework.checker.nullness.qual.MonotonicNonNull; diff --git a/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/TouchTracker.java b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/TouchTracker.java index 20b7dc0319..9c0d3c6cec 100644 --- a/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/TouchTracker.java +++ b/library/ui/src/main/java/com/google/android/exoplayer2/ui/spherical/TouchTracker.java @@ -44,7 +44,7 @@ import androidx.annotation.Nullable; * a nicer UI. An even more advanced UI would reproject the user's touch point into 3D and drag the * Mesh as the user moves their finger. However, that requires quaternion interpolation. */ -/* package */ class TouchTracker extends GestureDetector.SimpleOnGestureListener +/* package */ final class TouchTracker extends GestureDetector.SimpleOnGestureListener implements View.OnTouchListener, OrientationListener.Listener { /* package */ interface Listener { diff --git a/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/FrameRotationQueueTest.java b/library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/FrameRotationQueueTest.java similarity index 98% rename from library/core/src/test/java/com/google/android/exoplayer2/video/spherical/FrameRotationQueueTest.java rename to library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/FrameRotationQueueTest.java index 227a827679..dfa9c73004 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/FrameRotationQueueTest.java +++ b/library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/FrameRotationQueueTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.google.android.exoplayer2.video.spherical; +package com.google.android.exoplayer2.ui.spherical; import static com.google.common.truth.Truth.assertThat; diff --git a/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/ProjectionDecoderTest.java b/library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/ProjectionDecoderTest.java similarity index 98% rename from library/core/src/test/java/com/google/android/exoplayer2/video/spherical/ProjectionDecoderTest.java rename to library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/ProjectionDecoderTest.java index 8cabd85fad..9cdf1727f7 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/ProjectionDecoderTest.java +++ b/library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/ProjectionDecoderTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.google.android.exoplayer2.video.spherical; +package com.google.android.exoplayer2.ui.spherical; import static com.google.common.truth.Truth.assertThat; diff --git a/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/ProjectionTest.java b/library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/ProjectionTest.java similarity index 98% rename from library/core/src/test/java/com/google/android/exoplayer2/video/spherical/ProjectionTest.java rename to library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/ProjectionTest.java index 1a889bbaa7..3578ae1bb4 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/video/spherical/ProjectionTest.java +++ b/library/ui/src/test/java/com/google/android/exoplayer2/ui/spherical/ProjectionTest.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.google.android.exoplayer2.video.spherical; +package com.google.android.exoplayer2.ui.spherical; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals;