Update Logs v.1.9.0 (May 21th, 2022)

※ Changes
■ Major refactorying works
- Complete refactorying of C# scripts (Unity)
- Complete refactorying of Java scripts (Android)
- Complete refactorying of Objective-C scripts (iOS)
■ Sample scene layout rework
■ Custom inspector design rework
- Added new layouts
- Added new icons
- Added Android 12 Media Style Notification preview to custom inspector (AndroidSettings.cs)
■ UI components are divided to individual scripts
- MediaButton.cs : Add this to your media buttons (play/pause/stop/fast-forward/rewind/next/previous/loop/shuffle)
- SeekBar.cs : Add this to your seek bar
- VolumeBar.cs : Add this to your volume bar
■ Native settings are divided to Android and iOS settings
■ Playlist/Media Metadata rework (MediaItems.cs)
■ Both native sides now send metadatas as strings to Unity when a new metadata is ready
■ Native side now can send volume information directly to Unity's volume bar (This updates the volume bar properly if there is a volume change on the native side)
■ Default media metadata settings are moved to MediaMetadataRetriever.cs
■ Android media metadata handling scripts reworked
■ Added extra runnable to track current position of the player (to reduce delay with Unity UI components)
■ Added OnInit registerer/callbacks
■ Added Date validator/converter to Android side
■ All shuffle modes now behaves like ExoPlayer
■ Previous() now seeks to 0 when the current position is more than 1

※ New Methods
■ bool HasNextMediaItem() - returns true if next track is available
■ bool HasPreviousMediaItem() - returns true if previous track is available
■ string RetrieveTitle() - returns the current title
■ string RetrieveArtist() - returns the current artist
■ string RetrieveAlbumTitle() - returns the current album title
■ string RetrieveAlbumArtist() - returns the current album artist
■ string RetrieveGenre() - returns the current genre
■ string RetrieveReleaseDate() - returns the current release date
■ string RetrieveArtwork() - returns the current artwork (in Base64 encoded data format)
■ Added prefix/suffix options for default metadatas
■ Added disable condition to Next and Previous buttons

※ New Variables
(NativeMediaPlayerManager.cs)
■ int PreBufferDuration - manage how much data (in seconds) is buffered before player starts playing
(iOSSettings.cs)
■ bool UseSeekBar - turn on/off the seek bar that shows on the MPRemoteCommandCenter (iOS background media controller).

※ Bugfixes v.1.9.0
■ AVPlayer now returns the correct isPlaying value
■ AutoSave now works properly 
- loads when player is initiated
- saves when loading a new media item
■ Default Media Metadata issues resolved
■ void GetCurrentMediaItemIndex(NativeMediaPlayer.cs) now returns the unshuffled index number

'Native Media Player > Update Logs' 카테고리의 다른 글

Update Logs v.1.8.0 (April 19th, 2022)  (0) 2022.06.01

Update Logs v.1.8.0 (April 19th, 2022)

 Bugfixes 
■ ExoPlayer notification will now apply its channel name

※ Changes
■ Custom inspector layouts enhanced
■ Added shared album metadata management to MediaItems.cs
■ Added extra notification settings to AndroidConfigurations.cs
■ Added AudioAttributes support to AndroidConfigurations.cs
■ Added AudioFocusRequest support to AndroidConfigurations.cs

'Native Media Player > Update Logs' 카테고리의 다른 글

Update Logs v.1.9.0 (May 21th, 2022)  (0) 2022.06.02