Polyv Help Center

Help Center

点播Android SDK 概述

Updated: 2026-09-18 17:10:53

Release Notes

2026-09-18 polyv-android-sdk-2.0.0-demo v2.28.0

Feature Enhancements & Bug Fixes

  • Web encrypted video now supports SDK screen casting functionality [Demo, SDK]

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.28.0'
implementation 'net.polyv.android:polyvDownload:2.28.0'
implementation 'net.polyv.android:polyvUpload:2.28.0'
implementation 'net.polyv.android:polyvSub:2.28.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.28.0 API.

2026-08-28 polyv-android-sdk-2.0.0-demo v2.27.3

Feature Enhancements & Bug Fixes

  • Custom tokens must be compatible with usage count and expiration time.
  • Improved log reporting within the SDK.

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.27.3'
implementation 'net.polyv.android:polyvDownload:2.27.3'
implementation 'net.polyv.android:polyvUpload:2.27.3'
implementation 'net.polyv.android:polyvSub:2.27.3'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.27.3 API

2026-07-17 polyv-android-sdk-2.0.0-demo v2.27.2

Feature Enhancements & Bug Fixes

  • Demo playback and download now use token by default
  • Adjusted default screenshot size to avoid blurry screenshots during half-screen playback
  • Optimized SDK internal log reporting format

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.27.2'
implementation 'net.polyv.android:polyvDownload:2.27.2'
implementation 'net.polyv.android:polyvUpload:2.27.2'
implementation 'net.polyv.android:polyvSub:2.27.2'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.27.2 API

2026-05-22 polyv-android-sdk-2.0.0-demo v2.27.1

Feature Enhancements & Bug Fixes

  • Fixed the failure of sub-accounts to download encrypted videos
  • Optimized the playback route switching logic

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.27.1'
implementation 'net.polyv.android:polyvDownload:2.27.1'
implementation 'net.polyv.android:polyvUpload:2.27.1'
implementation 'net.polyv.android:polyvSub:2.27.1'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.27.1 API

2026-05-15 polyv-android-sdk-2.0.0-demo v2.27.0

Feature Enhancements & Bug Fixes

  • Support for gesture-based zoom on video playback
  • Added method to retrieve playback logs
  • Added callback for playback error logs
  • Fixed known issues

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.27.0'
implementation 'net.polyv.android:polyvDownload:2.27.0'
implementation 'net.polyv.android:polyvUpload:2.27.0'
implementation 'net.polyv.android:polyvSub:2.27.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.27.0 API

2026-03-13 polyv-android-sdk-2.0.0-demo v2.26.0

Feature Enhancements & Bug Fixes

  • Adapted to 16KB page size
  • Adapted to Android 15 & Android 16

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.26.0'
implementation 'net.polyv.android:polyvDownload:2.26.0'
implementation 'net.polyv.android:polyvUpload:2.26.0'
implementation 'net.polyv.android:polyvSub:2.26.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during a coverage upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.26.0 API.

2026-01-16 polyv-android-sdk-2.0.0-demo v2.25.2

Feature Enhancements & Bug Fixes

  • Optimized playback log reporting
  • Adjusted switching route scheduling

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.25.2'
implementation 'net.polyv.android:polyvDownload:2.25.2'
implementation 'net.polyv.android:polyvUpload:2.25.2'
implementation 'net.polyv.android:polyvSub:2.25.2'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.25.2 API.

2025-12-26 polyv-android-sdk-2.0.0-demo v2.25.1

Feature Enhancements & Bug Fixes

  • Optimized HTTPDNS resolution functionality

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.25.1'
implementation 'net.polyv.android:polyvDownload:2.25.1'
implementation 'net.polyv.android:polyvUpload:2.25.1'
implementation 'net.polyv.android:polyvSub:2.25.1'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.25.1 API.

2025-12-09 polyv-android-sdk-2.0.0-demo v2.25.0

Feature Enhancements & Bug Fixes

  • Fixed a crash that occasionally occurred when retrieving video information
  • Optimized playback log reporting

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.25.0'
implementation 'net.polyv.android:polyvDownload:2.25.0'
implementation 'net.polyv.android:polyvUpload:2.25.0'
implementation 'net.polyv.android:polyvSub:2.25.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.25.0 API

2025-11-14 polyv-android-sdk-2.0.0-demo v2.24.3

Feature Enhancements & Bug Fixes

  • Added progress bar preview image interface

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.24.3'
implementation 'net.polyv.android:polyvDownload:2.24.3'
implementation 'net.polyv.android:polyvUpload:2.24.3'
implementation 'net.polyv.android:polyvSub:2.24.3'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.24.3 API.

2025-10-27 polyv-android-sdk-2.0.0-demo v2.24.2

Feature Enhancement & Bug Fixes

  • Replaced the screen casting service with a self-developed screen casting solution
  • Fixed compatibility for background downloads after Android 15 lock screen

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.24.2'
implementation 'net.polyv.android:polyvDownload:2.24.2'
implementation 'net.polyv.android:polyvUpload:2.24.2'
implementation 'net.polyv.android:polyvSub:2.24.2'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.24.2 API

2025-08-29 polyv-android-sdk-2.0.0-demo v2.24.1

Feature Enhancements & Bug Fixes

  • Subtitles now support LaTeX formula display
  • Speed preset adjustments
  • Fixed issues with offline video downloads causing decompression failures, playback error 20001, or frame skipping
  • Fixed playback issues with certain MP3 audio files
  • Optimized watch log reporting
  • Optimized underlying network requests

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.24.1'
implementation 'net.polyv.android:polyvDownload:2.24.1'
implementation 'net.polyv.android:polyvUpload:2.24.1'
implementation 'net.polyv.android:polyvSub:2.24.1'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.24.1 API.

2025-06-30 polyv-android-sdk-2.0.0-demo v2.24.0

Feature Enhancements & Bug Fixes

  • Fixed security vulnerabilities
  • Optimized playback statistics calculation rules

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.24.0'
implementation 'net.polyv.android:polyvDownload:2.24.0'
implementation 'net.polyv.android:polyvUpload:2.24.0'
implementation 'net.polyv.android:polyvSub:2.24.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.24.0 API.

2025-01-16 polyv-android-sdk-2.0.0-demo v2.22.4

Feature Enhancements & Bug Fixes

  • Support for displaying heatmaps
  • Support for custom label annotations
  • Underlying HTTPDNS optimization

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.22.4'
implementation 'net.polyv.android:polyvDownload:2.22.4'
implementation 'net.polyv.android:polyvUpload:2.22.4'
implementation 'net.polyv.android:polyvSub:2.22.4'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

For the API documentation, please refer to v2.22.4 API.

2024-12-13 polyv-android-sdk-2.0.0-demo v2.22.3

Feature Enhancements & Bug Fixes

  • [SDK] Fixed download video migration issue caused by initializing the download directory in a different order.
  • [SDK, Demo] Added methods and UI interactions for repairing videos that failed to migrate.
  • [SDK, Demo] Fixed video migration issues for multi-user downloads.
  • [Demo] Fixed the issue where the marquee font was too small in certain cases.
  • [SDK] Fixed a known intermittent download crash issue.
  • [SDK] Fixed the issue where videos without video tracks were played using audio mode.
  • [Demo] Fixed the issue where the player still responded to gravity sensor rotation after the device screen rotation was locked.

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.22.3'
implementation 'net.polyv.android:polyvDownload:2.22.3'
implementation 'net.polyv.android:polyvUpload:2.22.3'
implementation 'net.polyv.android:polyvSub:2.22.3'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during a coverage upgrade, the SDK will automatically migrate upon initialization. It is essential to strictly test whether locally cached videos have been successfully migrated.

API documentation can be found at v2.22.3 API

2024-09-11 polyv-android-sdk-2.0.0-demo v2.22.2

Feature Enhancements & Bug Fixes

  • 【SDK, Demo】Optimized dynamic changes in video width and height
  • 【SDK】Fixed IPv6 download failure for encrypted videos
  • 【SDK】Upgraded zip4j decompression library version
  • 【SDK, Demo】Added failure callback for expired video download tokens

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.22.2'
implementation 'net.polyv.android:polyvDownload:2.22.2'
implementation 'net.polyv.android:polyvUpload:2.22.2'
implementation 'net.polyv.android:polyvSub:2.22.2'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos have been successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir, otherwise the migration will fail and the videos will not be playable.

For the API documentation, please refer to v2.22.2 API.

2024-07-22 polyv-android-sdk-2.0.0-demo v2.22.1

Feature Enhancements & Bug Fixes

  • [SDK] Added API to clear playback duration
  • [SDK] Fixed null pointer exception thrown by the player
  • [SDK] Fixed crash when switching streams
  • [SDK] Fixed crash when uploading logs

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.22.1'
implementation 'net.polyv.android:polyvDownload:2.22.1'
implementation 'net.polyv.android:polyvUpload:2.22.1'
implementation 'net.polyv.android:polyvSub:2.22.1'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos are successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir; otherwise, the migration will fail and the videos will not be playable.

API documentation can be found at v2.22.1 API

2024-06-07 polyv-android-sdk-2.0.0-demo v2.22.0

Feature Enhancements & Bug Fixes

  • [Demo] Added ad skip functionality
  • [SDK, Demo] Added dual subtitles
  • [SDK, Demo] Added ad copy response to backend configuration
  • [SDK] Fixed partial video download failures
  • [SDK] Fixed resume playback failure issue
  • [SDK] Fixed hardcoding security vulnerability
  • [Demo] Fixed issue where questions were not displayed

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.22.0'
implementation 'net.polyv.android:polyvDownload:2.22.0'
implementation 'net.polyv.android:polyvUpload:2.22.0'
implementation 'net.polyv.android:polyvSub:2.22.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos have been successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir, otherwise the migration will fail and the videos will not be playable.

For the API documentation, please refer to v2.22.0 API.

2024-03-19 polyv-android-sdk-2.0.0-demo v2.21.2

Feature Enhancements & Bug Fixes

  • [SDK] Optimized and upgraded HTTPDNS
  • [SDK] Improved error log collection
  • [SDK] Maintained compatibility with legacy screen casting functionality
  • [SDK] Fixed known memory leak issues

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.21.2'
implementation 'net.polyv.android:polyvDownload:2.21.2'
implementation 'net.polyv.android:polyvUpload:2.21.2'
implementation 'net.polyv.android:polyvSub:2.21.2'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos have been successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir, otherwise the migration will fail and the videos will not be playable.

For the API documentation, please refer to v2.21.2 API.

2024-02-22 polyv-android-sdk-2.0.0-demo v2.21.1

Feature Enhancement

  • 【SDK】Optimized and upgraded HTTPDNS

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.21.1'
implementation 'net.polyv.android:polyvDownload:2.21.1'
implementation 'net.polyv.android:polyvUpload:2.21.1'
implementation 'net.polyv.android:polyvSub:2.21.1'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos have been successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir; otherwise, the migration will fail and the videos will not be playable.

For the API documentation, please refer to v2.21.1 API.

2024-01-05 polyv-android-sdk-2.0.0-demo v2.21.0

Feature Enhancements

  • 【SDK】Optimized seek speed for certain videos
  • 【SDK】Improved video playback experience under weak network conditions
  • 【SDK】Fixed the issue where auto-resume playback was not working
  • 【SDK】Fixed known issues that could cause crashes

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.21.0'
implementation 'net.polyv.android:polyvDownload:2.21.0'
implementation 'net.polyv.android:polyvUpload:2.21.0'
implementation 'net.polyv.android:polyvSub:2.21.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos are successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir, otherwise the migration will fail and the videos will not be playable.

API documentation can be found at v2.21.0 API

2023-09-01 polyv-android-sdk-2.0.0-demo v2.20.0

Feature Enhancements

  • 【SDK】Support cross-platform resume playback
  • 【SDK】Support traceable watermark
  • 【Demo】Optimize marquee display style
  • 【SDK, Demo】Remove unused imei and deviceId fields from previous versions

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.20.0'
implementation 'net.polyv.android:polyvDownload:2.20.0'
implementation 'net.polyv.android:polyvUpload:2.20.0'
implementation 'net.polyv.android:polyvSub:2.20.0'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos are successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir, otherwise the migration will fail and the videos will not be playable.

For the API documentation, please refer to v2.20.0 API.

2023-07-20 polyv-android-sdk-2.0.0-demo v2.19.1

Feature Enhancements & Bug Fixes

  • [SDK] Modified offline video authentication method
  • [SDK] Player supports setting the start playback position
  • [SDK] Optimized video playback experience under weak network conditions
  • [SDK] Fixed audio-video sync issues in some videos
  • [SDK] Fixed known crash-causing issues

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.19.1'
implementation 'net.polyv.android:polyvDownload:2.19.1'
implementation 'net.polyv.android:polyvUpload:2.19.1'
implementation 'net.polyv.android:polyvSub:2.19.1'

Migration Notes

When upgrading from version 2.18.x or below to version 2.19.1 or above, pay attention to the migration of video downloads.

Starting from version 2.19.1, the authentication method for local video playback has been adjusted. To ensure compatibility with previously downloaded videos from older versions during an upgrade, the SDK will automatically migrate upon initialization. It is mandatory to strictly test whether locally cached videos are successfully migrated. Ensure that client.settingsWithConfigString is called before initDownloadDir, otherwise the migration will fail and the videos will not be playable.

For the API documentation, please refer to v2.19.1 API.


2023-03-14 polyv-android-sdk-2.0.0-demo v2.18.4

Feature Enhancements & Bug Fixes

  • [SDK] Optimized player timeout reconnection
  • [SDK] Fixed crash caused by invalid vid
  • [SDK] Fixed vulnerability in GIF library
  • [SDK] Fixed crash caused by invalid token

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.18.4'//SDK核心包
implementation 'net.polyv.android:polyvDownload:2.18.4'
implementation 'net.polyv.android:polyvGif:2.2.3'
implementation 'net.polyv.android:polyvSub:2.18.4'

For the API documentation, please refer to v2.18.4 API.


2022-11-18 polyv-android-sdk-2.0.0-demo v2.18.3

Feature Enhancements & Bug Fixes

  • [SDK] Added VRM13 switch; fixed VRM13 playback anomaly

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.18.3'//SDK核心包

API documentation can be found at v2.18.3 API.


2022-10-31 polyv-android-sdk-2.0.0-demo v2.18.2

Feature Enhancements & Bug Fixes

  • 【Demo, SDK】Screen Casting upgraded to new version 1.1.5
  • 【SDK】Support for backend configuration of HttpDNS toggle
  • 【Demo, SDK】Player supports manual switching between software and hardware decoding
  • 【SDK】Fixed VRM13 software decoding playback issue

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.18.2'//SDK核心包
implementation 'net.polyv.android:polyvModuleABI:1.7.6'//SDK核心包
implementation 'net.polyv.android:polyvDownload:2.18.2'//SDK下载功能

For the API documentation, please refer to v2.18.2 API.


2022-09-23 polyv-android-sdk-2.0.0-demo v2.18.0

Feature Enhancements & Bug Fixes

  • 【SDK】Added support for playing VRM13 encrypted videos
  • 【Demo】Fixed an issue on some devices where the player was not destroyed after closing the small window playback
  • 【SDK】Fixed an issue where the onPlay callback was not triggered for some video playback

Modify Dependencies

// 修改对应的sdk依赖
implementation 'net.polyv.android:polyvPlayer:2.18.0'//SDK核心包
implementation 'net.polyv.android:polyvDownload:2.18.0'//SDK下载功能

API documentation can be found at v2.18.0 API


2022-09-05 polyv-android-sdk-2.0.0-demo v2.17.0

New Additions

  • 【SDK】Support local Token input for playing encrypted videos
  • 【Demo】Replace Lebo Screen Casting SDK with Muxiang Screen Casting SDK

Optimizations

  • [Demo] Optimized the issue where the status bar could not be fully hidden on certain devices

  • [Demo] Improved the marquee logic

    // 打开项目级别根目录的 build.gradle,补充MavenCentral源地址
    allprojects {
        repositories {
            //...省略
            //mavenCentral 源
            mavenCentral()
            //阿里云效关于central的镜像
            maven{
                url 'https://maven.aliyun.com/repository/central'
            }
            //阿里云效仓库,必须添加
            maven {
                credentials {
                    username '609cc5623a10edbf36da9615'
                    password 'EbkbzTNHRJ=P'
                }
                url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
            }
        }
    }
    
    // 修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
    implementation 'net.polyv.android:polyvPlayer:2.17.0'//SDK核心包
    implementation 'net.polyv.android:polyvDownload:2.16.6'//SDK下载功能
    implementation 'net.polyv.android:polyvUpload:2.3.4'//SDK上传功能
    implementation 'net.polyv.android:polyvSub:2.17.0'//弹幕、截图功能中使用
    

For the API documentation, please refer to v2.17.0 API.


Setting the Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set the unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting the unique student identifier.

Necessary Modifications

  • The old version has a queue error issue with downloads and is not forward compatible. Please use the latest version of the download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to the layer hierarchy issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and the live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories after Android Q. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted after Android Q, while Android Q and below are unaffected. At the same time, you can set requestLegacyExternalStorage to enable Android Q compatibility mode as a temporary transition.
  • Starting from 2.15.0, the screen casting SDK has been officially moved to the Demo layer. The old version of VOD screen casting can still be used, but the screen casting SDK will no longer be maintained or updated. The old screen casting SDK conflicts with com.easefun.polyv:polyvPlayer:2.15.0+. For details, see the Wiki 《7. Video Screen Casting》.
  • Starting from 2.15.2, the old version of the SDK will be deprecated due to Bintray's shutdown. Please use the new version v2.15.2+ for integration. The screen casting SDK has been moved to the Demo layer since 2.15.0 and will not be migrated or updated. Developers are advised to integrate the new version.

2022-06-21 polyv-android-sdk-2.0.0-demo v2.16.6

Optimization

  • 【SDK】Enhanced account security

  • 【SDK】Initialization supports simultaneous use of multiple encryption strings

  • 【SDK】Player supports HTTPS+IP access to servers with SNI verification enabled

  • 【SDK & Demo】Fixed missing elog error information issue

  • 【SDK】Fixed known issues

    // 打开项目级别根目录的 build.gradle,补充MavenCentral源地址
    allprojects {
        repositories {
            //...省略
            //mavenCentral 源
            mavenCentral()
            //阿里云效关于central的镜像
            maven{
                url 'https://maven.aliyun.com/repository/central'
            }
            //阿里云效仓库,必须添加
            maven {
                credentials {
                    username '609cc5623a10edbf36da9615'
                    password 'EbkbzTNHRJ=P'
                }
                url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
            }
        }
    }
    
    // 修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
    implementation 'net.polyv.android:polyvPlayer:2.16.6'//SDK核心包
    implementation 'net.polyv.android:polyvDownload:2.16.6'//SDK下载功能
    implementation 'net.polyv.android:polyvUpload:2.3.4'//SDK上传功能
    implementation 'net.polyv.android:polyvSub:2.16.6'//弹幕、截图功能中使用
    

For the API documentation, please refer to v2.16.6 API.


Set the Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set the unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting the unique student identifier.

Required Changes

  • The old version had queue errors during downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the live streaming SDK's danmaku rendering control must also be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while Android Q and below remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary transition.
  • Starting from 2.15.0, the screen casting SDK has been officially moved to the Demo layer. The old version of VOD screen casting can still be used, but the screen casting SDK will no longer be maintained or updated. The old screen casting SDK conflicts with com.easefun.polyv:polyvPlayer:2.15.0+. For details, see the Wiki 《7. Video Screen Casting》.
  • Starting from 2.15.2, the old SDK will be deprecated due to Bintray's shutdown. Please use the new version v2.15.2+ for integration. The screen casting SDK has been moved to the Demo layer since 2.15.0 and will not be migrated or updated. Developers are advised to integrate the new version.

2022-05-11 polyv-android-sdk-2.0.0-demo v2.16.5.1

Optimization

  • [SDK, Demo] Delayed the initialization of httpdns to prevent user privacy issues.

    // 打开项目级别根目录的 build.gradle,补充MavenCentral源地址
    allprojects {
        repositories {
            //...省略
            //mavenCentral 源
            mavenCentral()
            //阿里云效关于central的镜像
            maven{
                url 'https://maven.aliyun.com/repository/central'
            }
            //阿里云效仓库,必须添加
            maven {
                credentials {
                    username '609cc5623a10edbf36da9615'
                    password 'EbkbzTNHRJ=P'
                }
                url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
            }
        }
    }
    
    // 修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
    implementation 'net.polyv.android:polyvPlayer:2.16.5.1'//SDK核心包
    implementation 'net.polyv.android:polyvDownload:2.16.3'//SDK下载功能
    implementation 'net.polyv.android:polyvUpload:2.3.4'//SDK上传功能
    implementation 'net.polyv.android:polyvSub:2.16.5.1'//弹幕、截图功能中使用
    

For the API documentation, please refer to v2.16.5 API.


Set the Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set the unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

Required Changes

  • The old version had a queue error in downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while versions below Android Q remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary workaround.
  • Starting from 2.15.0, the screen projection SDK has been officially moved to the Demo layer. The old version of VOD screen projection can still be used, but the screen projection SDK will no longer be maintained or updated. The old screen projection SDK conflicts with com.easefun.polyv:polyvPlayer:2.15.0+. For details, see the Wiki 《7. Video Screen Projection》.
  • Starting from 2.15.2, the old SDK will be deprecated due to Bintray's shutdown. Please use the new version v2.15.2+ for integration. The screen projection SDK has been moved to the Demo layer since 2.15.0 and will not be migrated or updated. Developers should integrate the new version.

2021-10-28 polyv-android-sdk-2.0.0-demo v2.16.5

Due to the bintray shutdown, historical version dependencies will no longer be available. Users of older versions should upgrade to v2.15.2+. If integrating the Demo layer, it is recommended to update accordingly.

Feature Enhancements & Bug Fixes

  • 【SDK, Demo】Release Marquee 2.0, supporting local flashing, local scrolling, display time, stroke, and other property settings for the marquee.

Modify Dependencies

// 打开项目级别根目录的 build.gradle,补充MavenCentral源地址
allprojects {
    repositories {
        //...省略
        //mavenCentral 源
        mavenCentral()
        //阿里云效关于central的镜像
        maven{
            url 'https://maven.aliyun.com/repository/central'
        }
        //阿里云效仓库,必须添加
        maven {
            credentials {
                username '609cc5623a10edbf36da9615'
                password 'EbkbzTNHRJ=P'
            }
            url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
        }
    }
}

// 修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
implementation 'net.polyv.android:polyvPlayer:2.16.5'//SDK核心包
implementation 'net.polyv.android:polyvDownload:2.16.3'//SDK下载功能
implementation 'net.polyv.android:polyvUpload:2.3.4'//SDK上传功能
implementation 'net.polyv.android:polyvSub:2.16.5'//弹幕、截图功能中使用

For the API documentation, please refer to v2.16.5 API.


2021-08-02 polyv-android-sdk-2.0.0-demo v2.16.3

Due to the bintray shutdown, historical version dependencies will no longer be available. Users of older versions should upgrade to v2.15.2+. If integrating the Demo layer, it is recommended to update accordingly.

Feature Enhancements & Bug Fixes

  • 【SDK, Demo】Optimized resume playback rules
  • 【Demo】Added pause ad size parameters
  • 【SDK】Fixed the issue where seeking to 0 was not possible due to discontinuous start times in m3u8
  • 【SDK, Demo】Fixed the issue of duplicate danmaku appearing on high refresh rate screens

Modify Dependencies

// 打开项目级别根目录的 build.gradle,补充MavenCentral源地址
allprojects {
    repositories {
        //...省略
        //mavenCentral 源
        mavenCentral()
        //阿里云效关于central的镜像
        maven{
            url 'https://maven.aliyun.com/repository/central'
        }
        //阿里云效仓库,必须添加
        maven {
            credentials {
                username '609cc5623a10edbf36da9615'
                password 'EbkbzTNHRJ=P'
            }
            url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
        }
    }
}

// 修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
implementation 'net.polyv.android:polyvPlayer:2.16.3'//SDK核心包
implementation 'net.polyv.android:polyvDownload:2.16.3'//SDK下载功能
implementation 'net.polyv.android:polyvUpload:2.3.4'//SDK上传功能
implementation 'net.polyv.android:polyvSub:2.16.3'//弹幕、截图功能中使用

For the API documentation, please refer to v2.16.0 API.

Set the Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set the unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting the unique student identifier.

Required Changes

  • The old version had queue errors during downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and Live SDK are integrated, the live SDK's danmaku rendering control also needs to be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while Android Q and below remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary workaround.
  • Starting from 2.15.0, the screen casting SDK has been officially moved to the Demo layer. The old version of VOD screen casting can still be used, but the screen casting SDK will no longer be maintained or updated. The old screen casting SDK conflicts with com.easefun.polyv:polyvPlayer:2.15.0+. For details, see the Wiki 《7. Video Screen Casting》.
  • Starting from 2.15.2, the old SDK will be deprecated due to Bintray's shutdown. Please use the new version v2.15.2+ for integration. The screen casting SDK has been moved to the Demo layer since 2.15.0 and will not be migrated or updated. Developers are advised to integrate the new version.

2021-07-07 polyv-android-sdk-2.0.0-demo v2.16.2

Feature Enhancements & Bug Fixes

  • [SDK] Fixed the issue where setVideoPath() failed to play external links, and fixed the resume playback issue.

Modify Dependencies

//打开项目级别根目录的 build.gradle,补充MavenCentral源地址
allprojects {
    repositories {
        //...省略
        //mavenCentral 源
        mavenCentral()
        //阿里云效关于central的镜像
        maven{
            url 'https://maven.aliyun.com/repository/central'
        }
        //阿里云效仓库,必须添加
        maven {
            credentials {
                username '609cc5623a10edbf36da9615'
                password 'EbkbzTNHRJ=P'
            }
            url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
        }
    }
}

//修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
    implementation 'net.polyv.android:polyvPlayer:2.16.2'//SDK核心包

For API documentation, please refer to v2.16.0 API.

Required Changes

  • The old version had a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to the layer hierarchy between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories after Android Q. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted after Android Q, while versions below Android Q remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary workaround.
  • Starting from 2.15.0, the screen casting SDK has been officially moved to the Demo layer. The old version of VOD screen casting can still be used, but the screen casting SDK will no longer be maintained or updated. The old screen casting SDK conflicts with com.easefun.polyv:polyvPlayer:2.15.0+. For details, refer to the Wiki 《7. Video Screen Casting》.
  • Starting from 2.15.2, the old SDK will be deprecated due to Bintray's shutdown. Please use the new version v2.15.2+ for integration. The screen casting SDK has been moved to the Demo layer since 2.15.0 and will not be migrated or updated. Developers are advised to integrate the new version.

2021-07-01 polyv-android-sdk-2.0.0-demo v2.16.1

Feature Enhancements & Bug Fixes

  • [SDK] Adapted video playback and download under the DRM12 scheme
  • [SDK] Privatized the player
  • [SDK] Fixed the tag pointer issue for Android 11 devices in the player

Modify Dependencies

//打开项目级别根目录的 build.gradle,补充MavenCentral源地址
allprojects {
    repositories {
        //...省略
        //mavenCentral 源
        mavenCentral()
        //阿里云效关于central的镜像
        maven{
            url 'https://maven.aliyun.com/repository/central'
        }
        //阿里云效仓库,必须添加
        maven {
            credentials {
                username '609cc5623a10edbf36da9615'
                password 'EbkbzTNHRJ=P'
            }
            url 'https://packages.aliyun.com/maven/repository/2102846-release-8EVsoM/'
        }
    }
}

//修改对应的sdk依赖,注意groupId已经变更,请整个依赖复制修改,请勿仅改动版本号
    implementation 'net.polyv.android:polyvPlayer:2.16.1'//SDK核心包
    implementation 'net.polyv.android:polyvDownload:2.16.0'//SDK下载功能
    implementation 'net.polyv.android:polyvUpload:2.3.3'//SDK上传功能
    implementation 'net.polyv.android:polyvGif:2.2.2'//demo中课程讨论区显示的内容里用到的包
    implementation 'net.polyv.android:polyvSub:2.15.2'//弹幕、截图功能中使用
 
    implementation files("libs/source-lecast-release.aar")//乐播投屏sdk,2.15.0起改为demo层集成,详细说明见wiki文档

For the API documentation, please refer to v2.16.0 API.

Setting the Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set the unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn about the significance of setting the unique student identifier.

Required Changes

  • The old version had queue errors during downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and Live SDK are integrated, the live SDK's danmaku rendering control must also be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while Android Q and below remain unaffected. You can also set requestLegacyExternalStorage to enable Android Q compatibility mode as a temporary transition.
  • Starting from 2.15.0, the screen projection SDK has been officially moved to the Demo layer. The old version of VOD screen projection can still be used, but the screen projection SDK will no longer be maintained or updated. The old screen projection SDK conflicts with com.easefun.polyv:polyvPlayer:2.15.0+. For details, see the Wiki 《7. Video Screen Projection》.
  • Starting from 2.15.2, the old SDK will be deprecated due to Bintray's shutdown. Please use the new version v2.15.2+ for integration. The screen projection SDK has been moved to the Demo layer since 2.15.0 and will not be migrated or updated. Developers should integrate the new version.

2020-12-23 polyv-android-sdk-2.0.0-demo v2.14.0

Set Student Unique Identifier

Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.12.1/api/com/easefun/polyvsdk/PolyvSDKClient.html#setViewerId-java.lang.String- to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a student unique identifier.

Feature Enhancements & Bug Fixes

  • Local playback now supports playing video intros [SDK]
  • Added notification for disabling drag events [Demo, SDK]
  • Optimized screen casting functionality for video playback progress synchronization [Demo, SDK]
  • Fixed some known exception errors [SDK]

Required Changes

  • The old version has a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to the layer hierarchy between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while Android Q and below remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary workaround.

Modify Dependencies

Update the versions of the following dependencies:

implementation 'com.easefun.polyv:polyvPlayer:2.14.0'
implementation 'com.easefun.polyv:polyvScreencast:0.3.0'

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.13.1 API.

2020-11-19 polyv-android-sdk-2.0.0-demo v2.13.2

Set a Unique Student Identifier

Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.12.1/api/com/easefun/polyvsdk/PolyvSDKClient.html#setViewerId-java.lang.String- to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

Feature Enhancement & Bug Fixes

Added HttpDNS toggle, with IPv6 support [SDK]

Required Changes

  • The old version has a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while Android Q and below are unaffected. Additionally, you can set requestLegacyExternalStorage to enable Android Q compatibility mode as a temporary workaround.

Modify Dependencies

Update the versions of the following dependencies:

implementation 'com.easefun.polyv:polyvPlayer:2.13.2'

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.13.1 API.

2020-09-10 polyv-android-sdk-2.0.0-demo v2.13.1

Set a Unique Student Identifier

Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.12.1/api/com/easefun/polyvsdk/PolyvSDKClient.html#setViewerId-java.lang.String- to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

Feature Enhancements & Bug Fixes

  • Compressed images to reduce app size [Demo]
  • Fixed occasional crash in PolyvPlayerPreviewView [Demo]
  • Fixed issue where the receiver did not exit simultaneously when occasionally exiting screen casting [Demo]
  • Fixed crash issue on certain Android 4.x devices [SDK]

Required Changes

  • The old version has a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functions will be restricted on Android Q and above, while versions below Android Q remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary workaround.

Modify Dependencies

Update the versions of the following dependencies:

implementation 'com.easefun.polyv:polyvPlayer:2.13.1'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayerABI:1.9.6'//SDK核心包
implementation 'com.easefun.polyv:polyvUpload:2.3.1'//SDK上传功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.13.1 API.

2020-07-20 polyv-android-sdk-2.0.0-demo v2.13.0

Set a Unique Student Identifier

Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.12.1/api/com/easefun/polyvsdk/PolyvSDKClient.html#setViewerId-java.lang.String- to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

Feature Enhancements & Bug Fixes

  • SDK adapted to Android Q. Note that starting from this version, the download directory is limited to private directories only. [SDK, Demo]
  • Security upgrade. [SDK]
  • Optimized audio focus handling. [SDK]
  • Fixed crash exceptions caused by downloads and resolved error 30027. [SDK]
  • Fixed the issue where switching playback speed was ineffective for WAV format audio source files. [SDK]

Required Changes

  • The old version has a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer hierarchy issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.
  • Starting from 2.13.0, setting the download directory only supports private directories on Android Q and above. Developers are strongly advised to perform data migration in advance. If saved in a non-private directory, storage-related functionality will be restricted on Android Q and above, while Android Q and below remain unaffected. Additionally, you can enable requestLegacyExternalStorage to activate Android Q compatibility mode as a temporary workaround.

Modify Dependencies

Update the versions of the following dependencies:

implementation 'com.easefun.polyv:polyvPlayer:2.13.0'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayerABI:1.9.6//SDK核心包
implementation 'com.easefun.polyv:polyvDownload:2.13.0'//SDK下载功能'
implementation 'com.easefun.polyv:polyvUpload:2.3.0'//SDK上传功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

Please refer to the v2.13.0 API for the API documentation.

2020-06-02 polyv-android-sdk-2.0.0-demo v2.12.2

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a student unique identifier.

New Features

  • Added the PolyvVideoView.getRealPlayStatus() interface to obtain the real-time status of the video.

Feature Enhancements & Bug Fixes

  • Optimized statistical logging logic
  • Fixed compatibility issue between the player and Cloud Classroom version 0.12.0 and below

Necessary Changes

  • The old version had a queue error issue during downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and the live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.

Modify Dependencies

The polyvPlayer package and polyvDownload package need to be upgraded to the latest version simultaneously.

//compile 'com.easefun.polyv:polyvPlayer:2.12.1'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayer:2.12.2'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.9.2'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayerABI:1.9.3'//SDK核心包

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.12.2 API.

2020-05-15 polyv-android-sdk-2.0.0-demo v2.12.1

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a student unique identifier.

New Features

  • Added setting for preloading duration parameters: PolyvVideoView.setMaxCacheSize, PolyvVideoView.setMaxCacheDuration
  • Added configuration for player logo settings. Refer to the usage of PolyvPlayerLogoView in the demo.
  • Added configuration to disable progress bar dragging. Refer to the dragSeekStrategy member field of PolyvPlayerMediaController in the demo.

Feature Enhancements & Bug Fixes

  • Improved the retry mechanism for player playback failures.
  • Fixed the issue where listeners were still being called after the player was destroyed.

Required Changes

  • The old version has a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to the layer hierarchy between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for proper functionality. If both the VOD SDK and Live SDK are integrated, the danmaku rendering control in the Live SDK also needs to be changed to DanmakuView.

Modify Dependencies

The polyvPlayer package and polyvDownload package need to be upgraded to the latest version simultaneously.

//compile 'com.easefun.polyv:polyvPlayer:2.12.0'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayer:2.12.1'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.8.0'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayerABI:1.9.2'//SDK核心包

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

Please refer to the API documentation at v2.12.1 API.

2020-03-27 polyv-android-sdk-2.0.0-demo v2.12.0

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a student unique identifier.

New Features

  • Added the ability to fast-forward by long-pressing the screen.

Feature Enhancements & Bug Fixes

  • Optimized the request logic for HTTPDNS.
  • Fixed the issue where video playback failed due to token expiration.
  • Fixed the issue where sub-accounts could not download PPTs properly.
  • Fixed the issue where Q&A images were not displayed correctly.
  • Added a method to set the video orientation during full-screen playback.
  • Modified the behavior so that closing the danmaku (bullet comments) now hides the send danmaku button.

Necessary Changes

  • The old version has a queue error issue with downloads and is not backward compatible. Please use the latest version of the download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer hierarchy issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and Live SDK are integrated, the danmaku rendering control in the Live SDK also needs to be changed to DanmakuView.

Modify Dependencies

The polyvPlayer package and polyvDownload package need to be upgraded simultaneously.

//compile 'com.easefun.polyv:polyvPlayer:2.11.1'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayer:2.12.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.11.0'//SDK下载功能
implementation 'com.easefun.polyv:polyvDownload:2.12.0'//SDK下载功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

API documentation can be found at v2.12.0 API

2020-01-19 polyv-android-sdk-2.0.0-demo v2.11.1

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a student unique identifier.

Bug Fixes

  • Fixed a crash issue caused by the "-" character in tracking information.

Necessary Changes

  • The old version had queue errors during downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and the live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.

Modify Dependencies

The __polyvDownload package must be upgraded to the latest version.

//compile 'com.easefun.polyv:polyvPlayer:2.11.0'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayer:2.11.1'//SDK核心包

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.11.1 API.

2020-01-03 polyv-android-sdk-2.0.0-demo v2.11.0

Set a Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

New Interfaces

New Features

  • Added Android 8.0 Picture-in-Picture feature.

Feature Enhancements & Bug Fixes

  • Start foreground service when entering background playback.
  • Fix the issue where setViewLogParam2 was ineffective.
  • Optimize downloads to avoid decompression stalling due to package conflicts.
  • Improve the logging system by adding flow and seek logs.
  • Fix bugs that could cause crashes in certain operations.

Required Changes

  • The old version had a queue error issue with downloads and is not backward compatible. Please use the latest download queue. Refer to the diff.
  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to the layer hierarchy between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and the live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.

Modify Dependencies

The polyvPlayer package and polyvDownload package need to be upgraded simultaneously.

//compile 'com.easefun.polyv:polyvPlayer:2.10.0'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayer:2.11.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.9.0'//SDK下载功能
implementation 'com.easefun.polyv:polyvDownload:2.11.0'//SDK下载功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.11.0 API.

2019-9-19 polyv-android-sdk-2.0.0-demo v2.10.0

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a student unique identifier.

New Interfaces

New Features

  • Added the ability to play courseware in a three-panel layout.
  • Added support for displaying the loading speed of the video stream during video loading.

Feature Enhancements & Bug Fixes

  • Upgraded the Gradle version of the demo project.
  • Fixed an issue where seeking to the duration time point in certain videos prevented playback.
  • Fixed an issue where videos converted from live streams could not resume playback after the beginning was trimmed.
  • The blinking style of the marquee now supports gradient effects.
  • Fixed an issue where the sent danmaku style was not taking effect.
  • Fixed an issue where custom quizzes were not sending answer statistics.
  • Fixed an issue where custom quizzes were not cleared, causing the previous video's custom quiz settings to be displayed when switching videos.

Necessary Modifications

  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.

Modify Dependencies

The polyvPlayer package and polyvDownload package need to be upgraded simultaneously.

//compile 'com.easefun.polyv:polyvPlayer:2.9.0'//SDK核心包
implementation 'com.easefun.polyv:polyvPlayer:2.10.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.8.2'//SDK下载功能
implementation 'com.easefun.polyv:polyvDownload:2.9.0'//SDK下载功能
//compile 'com.easefun.polyv:polyvSub:2.9.0'//弹幕、截图功能中使用
implementation 'com.easefun.polyv:polyvSub:2.10.0'//弹幕、截图功能中使用

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.10.0 API.

2019-08-08 polyv-android-sdk-2.0.0-demo v2.9.0

Set a Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

New Interfaces

New Features

Feature Enhancements & Bug Fixes

  • Added showTime functionality to custom Q&A. See the example in the PolyvCustomQuestionBuilder class in the demo.
  • Added new error types PolyvPlayErrorReason.QUESTION_CLIENT_ERROR and PolyvPlayErrorReason.QUESTION_SERVER_ERROR for Q&A. The PolyvErrorMessageUtils class needs to be updated.
  • Updated httpdns obfuscation configuration.
  • Hidden virtual keys during fullscreen playback. See diff.
  • Added a new parameter to the send-danmaku API: Danmaku ID. Parameters for sending danmaku are now validated. See the callback method example in the PolyvPlayerDanmuFragment class and PolyvDanmakuManager.SendDanmakuListener in the demo.

Necessary Modifications

  • Starting from version 2.8.0, the rendering control of the player has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.
  • The custom Q&A feature has been refactored in this version and is not backward compatible. Upgrading to the current SDK version requires upgrading the custom Q&A feature. See the PolyvPlayerAnswerView class example in the demo.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.8.3'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.9.0'//SDK核心包
//compile 'com.easefun.polyv:polyvSub:2.8.0'//弹幕、截图功能中使用
compile 'com.easefun.polyv:polyvSub:2.9.0'//弹幕、截图功能中使用

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.9.0 API.

2019-06-18 polyv-android-sdk-2.0.0-demo v2.8.3

Set a Unique Student Identifier

Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.8.2/api/com/easefun/polyvsdk/PolyvSDKClient.html#setViewerId-java.lang.String- to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

Feature Enhancements & Bug Fixes

  • Fixed a potential concurrency issue that could occur when the player's destroy method and playback control methods are executed simultaneously.

Necessary Modifications

  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku (bullet screen) feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated simultaneously, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.8.2'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.8.3'//SDK核心包

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.8.3 API.

2019-06-10 polyv-android-sdk-2.0.0-demo v2.8.2

Set a Unique Student Identifier

Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.8.2/api/com/easefun/polyvsdk/PolyvSDKClient.html#setViewerId-java.lang.String- to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

New Interface

Feature Enhancements & Bug Fixes

  • Fixed an issue where calling the resume method after pausing the danmaku might fail to resume scrolling. Refer to the changes in PolyvPlayerDanmuFragment.
  • Fixed an issue where the danmaku did not pause when the app was sent to the background. Refer to the changes in PolyvPlayerActivity.

Necessary Modifications

  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku (bullet screen) feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK also needs to be changed to DanmakuView.

Modify Dependencies

Both need to be upgraded simultaneously.

//compile 'com.easefun.polyv:polyvPlayer:2.8.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.8.2'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.8.1'//SDK下载功能
compile 'com.easefun.polyv:polyvDownload:2.8.2'//SDK下载功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.8.2 API.

2019-05-21 polyv-android-sdk-2.0.0-demo v2.8.1

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting the student unique identifier.

New Interface

New Features

  • Added auto-resume playback for video URL playback.

Feature Enhancements & Bug Fixes

  • Added automatic retry logic for errors during video playback to improve the viewing experience.
  • Optimized the log reporting mechanism to enhance the SDK's error diagnosis capabilities.
  • Reduced the log output volume for the screen casting feature.
  • Fixed the issue where the player screen would not stay on. The previous method of setting the screen to stay on in the demo can now be removed.

Necessary Changes

  • Starting from version 2.8.0, the player's rendering control has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated, the danmaku rendering control of the live streaming SDK also needs to be changed to DanmakuView.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.8.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.8.1'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.8.0'//SDK下载功能
compile 'com.easefun.polyv:polyvDownload:2.8.1'//SDK下载功能
//compile 'com.easefun.polyv:polyvScreencast:0.2.0'//SDK投屏功能
compile 'com.easefun.polyv:polyvScreencast:0.2.1'//SDK投屏功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.8.1 API.

2019-05-06 polyv-android-sdk-2.0.0-demo v2.8.0

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here for the significance of setting the student unique identifier.

New Interfaces

New Features

  • Added custom Q&A functionality. Refer to the example code in the PolyvPlayerActivity method within showCustomQuestion() for usage.
  • Added multi-account download functionality. A new method openMultiDownloadAccount has been added to PolyvSDKClient for enabling multi-account. A new PolyvUserClient class has been added to the demo, providing user login and logout functionality.
  • Added precise seek support for video playback via link addresses.

Feature Enhancements & Bug Fixes

  • Optimized HTTPDNS-related logic to improve playback experience.
  • Enabled HTTPS video playback to resolve issues where HTTP requests were hijacked, preventing video playback.
  • Improved error handling logic for video playback. Added new error codes and updated the error prompt content in the demo for PolyvErrorMessageUtils.
  • Optimized the logic for fetching pre-roll video data to fix issues where certain video pre-rolls were not updated.
  • Fixed an issue where the player's screen would be cleared when returning from the background to the foreground in a paused state.
  • Optimized the screenshot feature, eliminating the need for network requests.
  • Disabled the load timeout and buffer timeout features by default in the player. These can be enabled using the setLoadTimeoutSecond and setBufferTimeoutSecond methods of PolyvVideoView.
  • Optimized the database update method for the download and upload features in the demo.
  • Added quiz statistics functionality.

Necessary Changes

  • The rendering control in this version of the player has been changed from SurfaceView to TextureView. Due to layer issues between rendering controls, if you are using the danmaku feature from the demo, the danmaku view needs to be changed to DanmakuView for normal operation. If both the VOD SDK and live streaming SDK are integrated simultaneously, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.
  • In this version, the player does not actively call the method to keep the screen on. You can use the view.setKeepScreenOn(true) method in the demo to set the screen to stay on.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.7.3'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.8.0'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.7.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayerABI:1.8.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.7.3'//SDK下载功能
compile 'com.easefun.polyv:polyvDownload:2.8.0'//SDK下载功能
//compile 'com.easefun.polyv:polyvUpload:2.2.2'//SDK上传功能
compile 'com.easefun.polyv:polyvUpload:2.2.3'//SDK上传功能
//compile 'com.easefun.polyv:polyvSub:2.7.3'//弹幕、截图功能中使用
compile 'com.easefun.polyv:polyvSub:2.8.0'//弹幕、截图功能中使用

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.8.0 API.

2019-03-28 polyv-android-sdk-2.0.0-demo v2.7.3

Set Student Unique Identifier

Please call the setViewerId method of PolyvSDKClient to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here for the significance of setting the student unique identifier.

New Interface

  • PolyvSDKClient adds the setViewerInfo method. This is to unify the interface across different platforms.
  • PolyvDownloaderManager Added methods getPolyvDownloader(vid, bitrate, fileType), isWaitingDownload(vid, bitrate, fileType), clearPolyvDownload(vid, bitrate, fileType), getKey(vid, bitrate, fileType).
  • PolyvDownloader Added fields FILE_VIDEO, FILE_AUDIO, and method delete.
  • PolyvDownloaderUtils Added methods deleteAudio, delete(vid, bitrate, fileType).
  • PolyvVideoUtil Added method validateMP3Audio.
  • PolyvVideoVO Added method getFileSizeMatchFileType(bitrate, fileType).
  • PolyvDownloaderErrorReason Added field AUDIO_NOT_EXIST.

New Features

  • Added double-tap gesture to control player pause and play, refer to the usage of videoView.setOnGestureDoubleClickListener in PolyvPlayerActivity.
  • Added network type detection and prompt before playing video, refer to the usage of PolyvNetworkDetection in PolyvPlayerActivity.
  • Added audio download functionality, refer to the usage of PolyvDownloaderManager.getPolyvDownloader(vid, bitrate, fileType) in PolyvDownloadListViewAdapter.

Feature Enhancements & Bug Fixes

  • Optimized the error interaction logic for video playback failures. To improve user experience, see PolyvPlayerPlayErrorView, PolyvPlayerPlayRouteView, and updated error prompt PolyvErrorMessageUtils content.
  • Fixed an issue where occasionally several videos could not be played when batch downloading videos simultaneously.
  • Fixed an issue where the progress bar would jump to the end if the network was interrupted during playback of a live-to-recorded video.
  • Fixed an issue where non-encrypted videos could not be downloaded in the multi-account feature.
  • Added an interval setting for the reappearance of the scrolling marquee. Refer to the setReappearTime method in videoView.setMarqueeView of PolyvPlayerActivity.
  • Adjusted the calculation rules for tracking viewing duration.
  • Differentiated single-choice and multiple-choice in the Q&A section, along with related optimizations. Refer to the changes in PolyvPlayerAnswerView.
  • Optimized the gesture trigger position for adjusting volume/brightness.
  • Upgraded the bullet chat library. Resolved version conflicts of the bullet chat library when integrating the Cloud Classroom SDK for some customers.
  • Upgraded the video database. Resolved upgrade issues with the SDK for some customers.
  • PolyvErrorMessageUtils added error prompt types for audio downloads.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.7.2'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.7.3'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.7.1'//SDK下载功能
compile 'com.easefun.polyv:polyvDownload:2.7.3'//SDK下载功能
//compile 'com.easefun.polyv:polyvSub:2.5.2'//弹幕、截图功能中使用
compile 'com.easefun.polyv:polyvSub:2.7.3'//弹幕、截图功能中使用

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.7.3 API.

2019-03-12 polyv-android-sdk-2.0.0-demo v2.7.2

Set a Unique Student Identifier

Please call the setViewerId method of PolyvSDKClient to set a unique student identifier. This allows you to receive better technical support from Polyv. Click here to learn the significance of setting a unique student identifier.

New Interfaces

New Features

  • Added multi-line switching functionality, using PolyvVideoView.changeRoute.
  • Added precise seek functionality, using PolyvVideoView.setSeekType.
  • Added screen recording prevention functionality, using PolyvVideoView.disableScreenCAP.

Feature Enhancements & Bug Fixes

  • Optimized the retry logic for playback failures.
  • Optimized the download progress callback. See IPolyvDownloaderProgressListener, IPolyvDownloaderProgressListener2.
  • Adjusted the default interval for download speed callbacks to 1 second.
  • Fixed an issue where, when auto-resume playback was enabled, the playback progress was saved after video completion, preventing the next entry from playing.
  • Optimized the SDK to address occasional database operation anomalies.
  • Added display state settings for controls during small window playback.
  • Fixed an issue where the video might still be playing when exiting the playback interface.
  • Added support for triggering seek by clicking on the progress bar markers.
  • Optimized the logic for using the seek method within the onPrepared callback.
  • Fixed an issue on Android 9.0 where the network type was incorrectly obtained for screen casting.
  • Fixed a crash issue that could occur after selecting a file in the upload feature.
  • Upgraded the video database to resolve upgrade issues for some customers.

Adding and Removing Configurations

  • Screen casting related: Add the permission <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  • Screen casting related: Remove sdk-lecast-release.aar, now imported via polyvScreencast:0.2.0

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.7.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.7.2'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.7.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayerABI:1.7.1'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.6.0'//SDK下载功能
compile 'com.easefun.polyv:polyvDownload:2.7.1'//SDK下载功能
//compile 'com.easefun.polyv:polyvScreencast:0.1.0'//SDK投屏功能
compile 'com.easefun.polyv:polyvScreencast:0.2.0'//SDK投屏功能
//compile 'com.easefun.polyv:polyvUpload:2.2.1'//SDK上传功能
compile 'com.easefun.polyv:polyvUpload:2.2.2'//SDK上传功能

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.7.2 API.

2019-01-08 polyv-android-sdk-2.0.0-demo v2.7.0

Set Student Unique Identifier

__Please call the PolyvSDKClient method setViewerId to set the student unique identifier. This allows you to receive better technical support from Polyv. Click here for the significance of setting a student unique identifier.

New Features

  • Added video landscape lock screen functionality
  • Added screen casting feature to the SDK

Feature Enhancements & Bug Fixes

  • Optimized SDK: Fixed the issue where switching playback speed and then changing resolution would reset the speed to 1x.
  • Optimized the style of the quiz tab for on-demand videos.
  • Optimized the video download logic.
  • Improved the handling logic for abnormal MP4 video playback.
  • Added display of the first frame when playing MP3 source files.
  • Fixed abnormal playback when a video only has a post-roll ad.
  • Added the ability to control whether playback continues when entering the background.
  • Added the ability to pause the danmaku in the player's pause callback.

New Configuration

  • Screen casting related: screen casting dependency library in build.gradle, core library required for screen casting in libs, screen casting obfuscation configuration in proguard-rules, and screen casting initialization configuration in PolyvApplication.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.6.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.7.0'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.6.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayerABI:1.7.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.5.0'//SDK下载功能
compile 'com.easefun.polyv:polyvDownload:2.6.0'//SDK下载功能
compile 'com.easefun.polyv:polyvScreencast:0.1.0'//SDK投屏功能

New Obfuscation

###jmdns
-keep class javax.jmdns.** { *; }
-dontwarn javax.jmdns.**

###CyberGarage-upnp
-keep class org.cybergarage.** { *; }
-dontwarn org.cybergarage.**

###plist
-keep class com.dd.plist.** { *; }
-dontwarn com.dd.plist.**

###Lebo
-keep class com.hpplay.**{*;}
-keep class com.hpplay.**$*{*;}
-dontwarn com.hpplay.**

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

API documentation can be found at v2.7.0 API.

2018-12-11 polyv-android-sdk-2.0.0-demo v2.6.1

Feature Enhancements & Bug Fixes

  • Fixed a potential crash issue after the player is released.
  • Improved the logic related to player loading timeout.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.6.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.6.1'//SDK核心包

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.6.1 API.

2018-11-28 polyv-android-sdk-2.0.0-demo v2.6.0

New Features

  • Added support for top subtitles
  • Added functionality to set playback timeout and buffering timeout

New Interfaces

  • Added method lastPositionWithVid to retrieve video viewing progress in PolyvVodPlayerUtil, and method lastPositionTimestampWithVid to get the timestamp for saving video viewing progress.

Feature Enhancements & Bug Fixes

  • Optimized the occasional 20016 error when playing/downloading videos
  • Improved the issue of excessive volume adjustment range when using gesture sliding
  • Fixed occasional crashes during video playback
  • Optimized the incomplete black background overlay when switching videos
  • Fixed incorrect subtitle initialization selection and ordering
  • Dynamically updated the httpdns refresh time
  • Fixed a crash issue caused by database downgrade
  • Adjusted to ignore switching to the same bitrate during playback, without triggering the PolyvPlayErrorReason.CHANGE_EQUAL_BITRATE (30007) error
  • Adjusted to not trigger the PolyvPlayErrorReason.EXCEPTION_COMPLETION (30017) error during weak network or disconnection; instead, the player stays on the current screen
  • Unified player errors. See the PolyvPlayerActivity section in videoView.setOnErrorListener for detailed comments

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.5.2'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.6.0'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.6.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayerABI:1.6.1'//SDK核心包

Others

  • Since dependencies can now be used to download and link source packages, the previous source packages have been removed.

Both JAR and SO files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.6.0 API.

2018-10-16 polyv-android-sdk-2.0.0-demo v2.5.2

New Features

  • Added video bookmarking functionality

Feature Enhancements & Bug Fixes

  • Fixed the issue where the default save path for network screenshots could not be written to.
  • Fixed the issue where reverting to 0 seconds after an incorrect answer in Q&A did not take effect.
  • Fixed the occasional abnormal issue of an empty folder in log records.
  • Fixed the null object exception in the player control bar when the gesture feature is disabled without setting a player control bar.
  • Improved the comments for the PolyvVideoView, setViewerId, and setViewLogParam2 methods in PolyvVideoView to clarify their correspondence with the backend's audience nickname and custom ID.
  • Updated the request addresses for the interfaces used to send and retrieve danmaku.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.5.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.5.2'//SDK核心包
//compile 'com.easefun.polyv:polyvSub:2.3.1'//弹幕、截图功能中使用
compile 'com.easefun.polyv:polyvSub:2.5.2'

Upgrade Source Packages

  • polyvPlayerSources2.5.1.jar -> polyvPlayerSources2.5.2.jar
  • polyvSubSources2.5.1.jar -> polyvSubSources2.5.2.jar

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.
For the API documentation, please refer to v2.5.2 API.

2018-8-23 polyv-android-sdk-2.0.0-demo v2.5.1

Feature Enhancement & Bug Fixes

  • Fixed the issue of abnormal error log output
  • Optimized internal network requests, removed trace logs

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.5.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.5.1'//SDK核心包

Upgrade Source Package

  • polyvPlayerSources2.5.0.jar -> polyvPlayerSources2.5.1.jar

Both JAR and SO files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.5.1 API.

2018-8-13 polyv-android-sdk-2.0.0-demo v2.5.0

New Features

  • Added download queue functionality to the demo.

Feature Enhancements & Bug Fixes

  • Fixed an issue where the playback progress was not saved when audio playback encountered an error.
  • Fixed an issue in the demo where the cover image was not displayed when replaying after an audio playback error.
  • Modified the shared text content in the demo.
  • Corrected typos in error messages in the demo. See PolyvErrorMessageUtils.

New Interfaces/Fields

  • Added an interface for downloading callback video information. Added the setPolyvDownloadVideoInfoListener(IPolyvDownloaderVideoInfoListener l) listener method in PolyvDownloader.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.4.0'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.5.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.4.0'//SDK下载功能 
compile 'com.easefun.polyv:polyvDownload:2.5.0'//SDK下载功能

New Dependencies

compile "com.daimajia.swipelayout:library:1.2.0@aar"//demo中下载列表使用

Upgrade Source Packages

  • polyvPlayerSources2.4.0.jar -> polyvPlayerSources2.5.0.jar
  • polyvDownloadSources2.4.0.jar -> polyvDownloadSources2.5.0.jar

Both JAR and SO files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.5.0 API.

2018-7-24 polyv-android-sdk-2.0.0-demo v2.4.0

New Features

  • Added audio/video switching functionality

New Interfaces/Fields

  • Video caching mechanism refactored, in the PolyvApplication method within setDownloadDir().
  • Fixed the issue where videos stored in internal (non-removable) storage could not be played after inserting an SD card.
  • Adopted a new interface for obtaining the storage path. In the PolyvStorageUtils class.
  • Added getSubDirList() and setSubDirList(ArrayList<File>) interfaces in PolyvSDKClient.
  • Added the setVidWithStudentId interface in PolyvVideoView.

Feature Enhancements & Bug Fixes

  • Optimized the retry logic for playback failures.
  • Fixed the issue where local DNS resolution failure caused video playback to fail.
  • Optimized the decompression logic for video download resources.
  • Optimized the cleanup logic when the player is destroyed.
  • Refactored the video caching mechanism.
  • Optimized the retrieval of total video duration.
  • Improved the Q&A interface.
  • Fixed the issue where concatenated videos from transfers could not play to completion normally.
  • Fixed the issue where mosaic artifacts appeared at the beginning of certain videos.
  • Fixed the issue where triggering landscape mode at the start of video playback caused all operation buttons to display when the screen was tapped. See polyv_controller_media_center_set.xml.
  • Optimized the error prompt method. See the showErrorView() method in PolyvPlayerActivity.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.3.3'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.4.0'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.4.0'//SDK核心包 
compile 'com.easefun.polyv:polyvPlayerABI:1.6.0'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.3.3'//SDK下载功能 
compile 'com.easefun.polyv:polyvDownload:2.4.0'//SDK下载功能

Upgrade Source Packages

  • polyvPlayerSources2.3.3.jar -> polyvPlayerSources2.4.0.jar
  • polyvDownloadSources2.3.3.jar -> polyvDownloadSources2.4.0.jar

Both JAR and SO files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.4.0 API.

2018-6-7 polyv-android-sdk-2.0.0-demo v2.3.3

New Features

  • Added audio/video switching functionality

New Interfaces/Fields

  • PolyvVideoView Added setPriorityMode, changeMode, getCurrentMode, setOnChangeModeListener interfaces
  • PolyvPlayErrorReason Added AUDIO_URL_EMPTY, NOT_LOCAL_AUDIO, CAN_NOT_CHANGE_AUDIO, CAN_NOT_CHANGE_VIDEO, LOCAL_AUDIO_ERROR fields

Feature Enhancements & Bug Fixes

  • Optimized progress callbacks for downloading regular videos
  • Improved handling of network disconnection during video playback

Known Unfixed Bugs

  • Merged videos from transfer cannot play through normally.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.3.2'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.3.3'//SDK核心包
//compile 'com.easefun.polyv:polyvDownload:2.3.1'//SDK下载功能 
compile 'com.easefun.polyv:polyvDownload:2.3.3'//SDK下载功能 
compile 'de.hdodenhof:circleimageview:2.2.0'//圆形imageview,音频封面图使用,新增

Upgrade Source Packages

  • polyvPlayerSources2.3.2.jar -> polyvPlayerSources2.3.3.jar
  • polyvDownloadSources2.3.1.jar -> polyvDownloadSources2.3.3.jar

Both JAR and SO files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.3.3 API.

2018-5-24 polyv-android-sdk-2.0.0-demo v2.3.2

Feature Enhancement & Bug Fixes

  • Fixed an issue where downloaded videos failed to play.

Known Unfixed Bugs

  • Merged videos from transfer cannot play through normally.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.3.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.3.2'//SDK核心包

Upgrade Source Package

  • polyvPlayerSources2.3.1.jar -> polyvPlayerSources2.3.2.jar

Both jar and so files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.3.2 API.

2018-5-18 polyv-android-sdk-2.0.0-demo v2.3.1

New Features

  • Added some SD card error detection and error types for downloads. See PolyvErrorMessageUtils.

Feature Enhancements & Bug Fixes

  • Fixed the crash issue caused by frequent video switching.
  • Fixed the issue where videos could not play under certain circumstances.
  • Added a catch exception for the setKeepScreenOn error on Xiaomi phones.
  • Optimized the issue where folders and files could not be created. The API call has changed; please refer to PolyvApplication and PolyvDevMountInfo.getInstance().init(...).
  • Optimized the video playback logic.
  • Optimized the download logic.
  • Optimized the database cursor closing logic.
  • Optimized the error reporting logic for abnormal video termination.
  • Fixed the potential crash issue in the preview image interface within the demo. Please see PolyvPlayerPreviewView.
  • Fixed the crash issue when loading danmaku containing special characters.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.2.2'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.3.1'//SDK核心包
//compile 'com.easefun.polyv:polyvPlayerABI:1.3.0'//SDK核心包 
compile 'com.easefun.polyv:polyvPlayerABI:1.4.0'//SDK核心包 
//compile 'com.easefun.polyv:polyvDownload:2.2.1'//SDK下载功能 
compile 'com.easefun.polyv:polyvDownload:2.3.1'//SDK下载功能 
//compile 'com.easefun.polyv:polyvSub:2.2.1'//弹幕、截图功能中使用
compile 'com.easefun.polyv:polyvSub:2.3.1'//弹幕、截图功能中使用

Upgrade Source Packages

  • polyvPlayerSources2.2.2.jar -> polyvPlayerSources2.3.1.jar
  • polyvDownloadSources2.2.1.jar -> polyvDownloadSources2.3.1.jar
  • polyvSubSources2.2.1.jar -> polyvSubSources2.3.1.jar

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.

For the API documentation, please refer to v2.3.1 API.

2018-1-24 polyv-android-sdk-2.0.0-demo v2.2.2

Feature Enhancement & Bug Fixes

  • Added playback parameters.

Known Unfixed Bugs

  • Merged videos cannot be played to completion normally.

Modify Dependencies

//compile 'com.easefun.polyv:polyvPlayer:2.2.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayer:2.2.2'//SDK核心包

Upgrade Source Package

  • polyvPlayerSources2.2.1.jar -> polyvPlayerSources2.2.2.jar

Both JAR and SO files are uniformly managed through the Maven repository and automatically introduced via dependencies.
For the API documentation, please refer to v2.2.2 API.

2018-1-16 polyv-android-sdk-2.0.0-demo v2.2.1

New Features

  • SDK package uploaded to Maven repository.
  • Added marquee functionality.

New Interfaces

  • PolyvVideoView Added multiple setVidByStrategy polymorphic interfaces to support playing only online videos.
  • PolyvUploader Added a start polymorphic interface to verify whether the user's remaining space is available.
  • PolyvUploaderManager Added a getPolyvUploader polymorphic interface to support uploading videos to a specified category directory.

Feature Enhancements & Bug Fixes

  • Fixed the issue where file size was displayed incorrectly.
  • Fixed an issue in the demo where, after some videos finished playing, swiping right to fast-forward caused the video to restart and the progress bar to display incorrectly. Refer to the gesture listener of the PolyvPlayerActivity player and the progress bar change listener of PolyvPlayerMediaController.
  • Fixed an issue in the demo where no upload prompt was shown when the account's backend storage space was full. Use the PolyvUploader.start(sign,ptime) method.
  • Fixed an issue in the demo where the cache progress on the progress bar did not refresh immediately when playing the next video.
  • Added a prompt for offline downloads in the online list within the demo. Refer to the click listener of the PolyvOnlineListViewAdapter download button.
  • Added logic to change the selected bitrate control only when video resolution switching succeeds. Refer to the resetBitRateView method of PolyvPlayerMediaController.

Known Unfixed Bugs

  • Merged videos from transfer cannot play through normally.

Add Maven Repository

allprojects {
    repositories {
        jcenter()
        maven {url 'http://maven.aliyun.com/nexus/content/repositories/releases/'}
        maven {url 'https://dl.bintray.com/polyv/android'}
    }
}

New Dependencies

compile 'com.easefun.polyv:polyvPlayer:2.2.1'//SDK核心包
compile 'com.easefun.polyv:polyvPlayerABI:1.3.0'//SDK核心包
compile 'com.easefun.polyv:polyvDownload:2.2.1'//SDK下载功能
compile 'com.easefun.polyv:polyvUpload:2.2.1'//SDK上传功能
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'//demo中图片使用
compile 'com.easefun.polyv:polyvGif:2.2.1'//demo中课程讨论区显示的内容里用到的包。
compile 'com.easefun.polyv:polyvSub:2.2.1'//弹幕、截图功能中使用

Remove JAR Files

  • alicloud-android-sdk-httpdns-1.1.0.jar
  • alicloud-android-utils-1.0.2.jar
  • bugly_crash_release.jar
  • converter-gson-2.1.0.jar
  • danmaku-flame-master-0.6.2.jar
  • gson-2.7.jar
  • ijkplayer-exo-0.8.0.1.jar
  • ijkplayer-java-0.8.0.1.jar
  • okhttp-3.3.0.jar
  • okio-1.8.0.jar
  • org.apache.http.legacy.jar
  • polyvDownload2.x.x.jar
  • polyvPlayer2.x.x.jar
  • polyvSub2.x.x.jar
  • polyvUpload2.x.x.jar
  • polyvWidget0.5.1.x.jar
  • retrofit-2.1.0.jar
  • universal-image-loader-1.9.5.jar
  • utdid4all-1.1.5.3_proguard.jar

Remove SO Libraries

  • libijkffmpeg.so
  • libijkplayer.so
  • libijksdl.so
  • libpolyvModule.so

Upgrade Source Packages

  • polyvDownloadSources2.0.6.jar -> polyvDownloadSources2.2.1.jar
  • polyvPlayerSources2.0.6.jar -> polyvPlayerSources2.2.1.jar
  • polyvUploadSources2.0.6.jar -> polyvUploadSources2.2.1.jar

Both JAR and SO files are uniformly managed by the Maven repository and automatically introduced through dependencies.

For the API documentation, please refer to v2.2.1 API.

2017-10-24 polyv-android-sdk-2.0.0-demo v2.0.6

New Features

  • Video ads take effect by category.

New Interfaces

  • PolyvVideoView Added the setViewerName interface for setting the audience name.
  • PolyvVideoView Added the setViewerParam interface for setting additional audience parameters.

Feature Enhancements & Bug Fixes

  • Fixed the crash issue that occurred after switching videos multiple times on the video playback interface.
  • Fixed the issue where playing certain videos or dragging the progress bar during playback would prompt a video abnormal termination error.
  • Improved the error prompt text for playback and download failures. Added text helpful for users to resolve issues on their own. See PolyvErrorMessageUtils.

Known Unfixed Bugs

  • Merged videos from transfer cannot play through normally.

Upgrade JAR Packages

  • polyvPlayer2.0.5.jar -> polyvPlayer2.0.6.jar
  • polyvSub2.0.5.jar -> polyvSub2.0.6.jar
  • polyvDownload2.0.5.jar -> polyvDownload2.0.6.jar
  • polyvUpload2.0.5.jar -> polyvUpload2.0.6.jar
  • polyvWidget0.5.1.6.jar -> polyvWidget0.5.1.7.jar

Remove jar file

  • relinker-1.2.2.jar

Upgrade the so Library

  • libijkffmpeg.so

Upgrade Source Packages

  • polyvDownloadSources2.0.5.jar -> polyvDownloadSources2.0.6.jar
  • polyvPlayerSources2.0.5.jar -> polyvPlayerSources2.0.6.jar
  • polyvUploadSources2.0.5.jar -> polyvUploadSources2.0.6.jar

For the API documentation, please refer to v2.0.6 API.

2017-9-6 polyv-android-sdk-2.0.0-demo v2.0.5

New Features

  • Added support for playing source files in playback.
  • Added queue functionality for downloads.
  • Added support for downloading source files.
  • Added saving of playback progress when video ends abnormally.
  • Added pull-up to load more data in the online video list in the demo.

Modified Features

  • Modified the playback error prompt content and moved the code to PolyvErrorMessageUtils.
  • Modified the download error prompt content and moved the code to PolyvErrorMessageUtils.
  • In the demo, modified the operation logic when downloading videos from the course list.

New Interfaces

  • Added utility methods in PolyvDownloaderUtils for downloading: retrieving the download video list from the download directory getDownloadDirVideoList and deleting the download directory deleteDownloaderDir.
  • Added an interface in PolyvDownloaderManager for setting the total number of download queues via setDownloadQueueCount. The PolyvApplication class calls this interface.

Feature Enhancements & Bug Fixes

  • Fixed an issue where seeking to the last few seconds of a video would cause an abnormal video termination.
  • Fixed an issue where calling the seekTo method of PolyvVideoView within the setOnPreparedListener callback method of PolyvVideoView had no effect.
  • Changed from setting system brightness to setting the brightness of the current window, and removed the android.permission.WRITE_SETTINGS permission.
  • Fixed a crash caused by concurrent release when switching to another video during video ad or intro playback.
  • Fixed an issue where only partial areas of the image were cleared when switching videos.
  • Enhanced the permission prompt functionality.
  • Fixed an issue where the upload feature could not be used normally in a release APK.
  • Fixed a crash in the demo's online video list interface that occurred when exiting the interface without the download dialog being displayed.

Upgrade jar packages

  • polyvPlayer2.0.4.jar -> polyvPlayer2.0.5.jar
  • polyvSub2.0.4.jar -> polyvSub2.0.5.jar
  • polyvDownload2.0.4.jar -> polyvDownload2.0.5.jar
  • polyvUpload2.0.4.jar -> polyvUpload2.0.5.jar
  • polyvWidget0.5.1.5.jar -> polyvWidget0.5.1.6.jar

Upgrade the so Library

  • libijkffmpeg.so

Upgrade Source Packages

  • polyvDownloadSources2.0.4.jar -> polyvDownloadSources2.0.5.jar
  • polyvPlayerSources2.0.4.jar -> polyvPlayerSources2.0.5.jar
  • polyvUploadSources2.0.4.jar -> polyvUploadSources2.0.5.jar

For the API documentation, please refer to v2.0.5 API.

2017-8-15 polyv-android-sdk-2.0.0-demo v2.0.4

Feature Enhancements & Bug Fixes

  • Fixed an issue where certain videos could not be played.
  • Fixed a problem where, after opening a video for playback and switching to another interface (or moving to the background) while the video was still loading, the video would start playing in the background once loading completed.

Upgrade JAR Packages

  • polyvPlayer2.0.3.jar -> polyvPlayer2.0.4.jar
  • polyvSub2.0.3.jar -> polyvSub2.0.4.jar
  • polyvDownload2.0.3.jar -> polyvDownload2.0.4.jar
  • polyvUpload2.0.3.jar -> polyvUpload2.0.4.jar

Upgrade the so Library

  • libijkffmpeg.so

Upgrade Source Packages

  • polyvDownloadSources2.0.3.jar -> polyvDownloadSources2.0.4.jar
  • polyvPlayerSources2.0.3.jar -> polyvPlayerSources2.0.4.jar
  • polyvUploadSources2.0.3.jar -> polyvUploadSources2.0.4.jar

For the API documentation, please refer to v2.0.4 API.

2017-7-19 polyv-android-sdk-2.0.0-demo v2.0.3

Modified Features

  • Error prompts on the playback interface have been changed from Toast to AlertDialog, with default prompts added. In PolyvPlayerActivity.
  • Error prompts on the download interface have been changed from Toast to AlertDialog, with default prompts added. In PolyvDownloadListViewAdapter.

Feature Enhancements & Bug Fixes

  • Fixed the issue where video information failed to load.
  • Fixed the concurrency crash caused by setVideoPath and release in PolyvVideoView.
  • Fixed the issue where, after a video download is complete, removing the SDK's storage permission and playing the local video would prompt "Local file corrupted." Changed to check for read/write storage device permission when playing a video that must be played locally.
  • Fixed the issue where post-roll ads could not play when only pre-roll ads existed without a pre-roll segment.
  • Fixed the issue on Android 6.0+ where, upon first app installation and login without granting read/write storage device permission, the set path differed from the path set after the second login when the permission had been granted. In PolyvApplication.
  • Fixed the issue in the demo where entering the download list and upload list did not request dynamic permissions. In PolyvMainActivity.
  • Fixed the issue in the demo where clicking "Download All" on the download interface did not check permissions. In PolyvDownloadListViewAdapter.
  • Modified the demo's download permission prompt: "Detected refusal to write to SD card. Please grant permission to the app first, then re-download" → "Detected refusal to write to storage device. Please grant permission to the app first, then re-download." In PolyvDownloadListViewAdapter.
  • Modified the demo so that playing from the download list must play the video locally. In PolyvDownloadListViewAdapter.
  • Added two new error types for video playback. In PolyvPlayerActivity.
  • Added two new error types for video download. In PolyvDownloadListViewAdapter.

Upgrade JAR Packages

  • polyvPlayer2.0.2.jar -> polyvPlayer2.0.3.jar
  • polyvSub2.0.2.jar -> polyvSub2.0.3.jar
  • polyvDownload2.0.2.jar -> polyvDownload2.0.3.jar
  • polyvUpload2.0.2.jar -> polyvUpload2.0.3.jar

Upgrade Source Packages

  • polyvDownloadSources2.0.2.jar -> polyvDownloadSources2.0.3.jar
  • polyvPlayerSources2.0.2.jar -> polyvPlayerSources2.0.3.jar
  • polyvUploadSources2.0.2.jar -> polyvUploadSources2.0.3.jar

For the API documentation, please refer to v2.0.3 API.

2017-6-22 polyv-android-sdk-2.0.0-demo v2.0.2

New Features

  • Added vid validation for downloads and introduced a new error type.

Feature Enhancements & Bug Fixes

  • Improved video playback compatibility.
  • Fixed the issue of sound pitch distortion during speed playback on Android versions below 6.0.
  • Fixed a crash caused by concurrency in the release method of PolyvVideoView.
  • Fixed a crash that occurred when switching videos continuously.
  • Fixed the incompatibility issue with video download files from version 1.0 during playback.
  • Fixed a memory overflow issue related to the subtitle feature.
  • Added a check in the download process to determine if the file has already been downloaded. If the video file already exists, the progress callback is triggered immediately (with progress set to 1 and total progress also set to 1), followed by the download completion callback.

Upgrade jar packages

  • polyvPlayer2.0.1.jar -> polyvPlayer2.0.2.jar
  • polyvSub2.0.1.jar -> polyvSub2.0.2.jar
  • polyvDownload2.0.1.jar -> polyvDownload2.0.2.jar
  • polyvUpload2.0.1.jar -> polyvUpload2.0.2.jar
  • polyvWidget0.5.1.4.jar -> polyvWidget0.5.1.5.jar
  • ijkplayer-exo-0.7.7.1.jar -> ijkplayer-exo-0.8.0.1.jar
  • ijkplayer-java-0.7.7.1.jar -> ijkplayer-java-0.8.0.1.jar

Upgrade Source Packages

  • polyvDownloadSources2.0.1.jar -> polyvDownloadSources2.0.2.jar
  • polyvPlayerSources2.0.1.jar -> polyvPlayerSources2.0.2.jar
  • polyvUploadSources2.0.1.jar -> polyvUploadSources2.0.2.jar

For the API documentation, please refer to v2.0.2 API


Welcome to the Wiki of Polyv-android-sdk-2.0.0-demo.
All code in the documentation can be found in the project.
If the content does not match the code, the code shall prevail.
If you find any discrepancies, please kindly remind us, and we will correct them immediately. Thank you.
联系客服,在线咨询
在线咨询