Skip to content

Replaced the old video player with ExoPlayer

Compare
Choose a tag to compare
@SungjunApp SungjunApp released this 12 Nov 08:51

What's improved

  • ExoPlayer is now the video player in the SDK.
  • The video loading speed is faster.
  • The problem of content not displaying intermittently is fixed.
  • The issue of playing the video background is fixed.

What's changed

PXLPhotoProductView and PXLPhotoRecyclerView

Play and stop the video

  • Option 1: Automatic using androidx.lifecycle.Lifecycle(Jetpack)
    • You just update the SDK the this version, the SDK will work automatically.
  • Option 2: Manual (use this if you want to play, stop and release the video when you need)
    • we renamed from playVideo() to playVideoOnResume()
    • we renamed from stopVideo() to stopVideoOnPause()
    • we added playVideoOnStart()
    • we added stopVideoOnStop()

PXLPhotoView

  • we removed releaseAllVideos()
  • you use pxlPhotoView.playVideo() to play the video
  • you use pxlPhotoView.pauseVideo() to pause the video