点播Android SDK 概述
Release Notes
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 the log reporting format within the SDK
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 playing local videos 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 playing local videos 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.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 screen
- Added method to retrieve playback logs
- Added playback error log callback
- 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.
Please refer to the API documentation at v2.27.0 API.
2026-03-13 polyv-android-sdk-2.0.0-demo v2.26.0
Feature Enhancements & Bug Fixes
- Adapted for 16KB page size
- Adapted for 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 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.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 route switching 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 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.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 playing local videos 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.3 API
2025-10-27 polyv-android-sdk-2.0.0-demo v2.24.2
Feature Enhancements & Bug Fixes
- Replaced the screen casting service with a self-developed screen casting solution.
- Fixed compatibility for background downloads after locking the screen on Android 15.
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
- Subtitle support for LaTeX formula display
- Speed preset adjustment
- 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 playing local videos 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.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
- Optimization of underlying HTTPDNS
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 order incompatibility.
- [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 of excessively small marquee font size in certain cases.
- [SDK] Fixed a known intermittent download crash issue.
- [SDK] Fixed the issue of playing videos without video tracks using audio mode.
- [Demo] Fixed the issue where the player still responds to gravity sensor rotation after the device locks screen rotation.
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 playing local videos 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.22.3 API
2024-09-11 polyv-android-sdk-2.0.0-demo v2.22.2
Feature Enhancements & Bug Fixes
- 【SDK, Demo】Optimized handling of dynamic video width and height changes
- 【SDK】Fixed IPv6 download failure for encrypted videos
- 【SDK】Upgraded zip4j decompression library version
- 【SDK, Demo】Added failure callback for expired download video 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, note 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.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 security vulnerability in hardware encoding
- [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 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.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 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.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
imeianddeviceIdfields 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 issues that could cause crashes
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 have been 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.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核心包
For the API documentation, please refer to v2.18.3 API.
2022-10-31 polyv-android-sdk-2.0.0-demo v2.18.2
Feature Enhancements & Bug Fixes
- 【Demo, SDK】Screen Mirroring upgraded to 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 where the player was not destroyed after closing the small window playback on some devices
- [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下载功能
Please refer to the v2.18.0 API for the API documentation.
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
Optimization
[Demo] Optimized the issue where the status bar could not be fully hidden on certain devices
[Demo] Improved 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 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.
Required Changes
- The old version has a queue error issue 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 also needs to be changed to DanmakuView.
- Starting from 2.13.0, setting the download directory only supports private directories on Android Q and later. 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 later, while Android Q and below are unaffected. Additionally, you can enable
requestLegacyExternalStorageto 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, refer to 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
【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 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 live streaming 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 are unaffected. You can also set
requestLegacyExternalStorageto 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 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 services from Polyv. Click here to learn the significance of setting the unique student identifier.
Required Changes
- The old version has a queue error issue with downloads and is not forward 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 remain unaffected. Additionally, you can enable
requestLegacyExternalStorageto 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 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.
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 partial flashing, partial scrolling, display time, stroke, and other property settings.
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 issue where discontinuous m3u8 start times prevented seeking to 0
- [SDK, Demo] Fixed duplicate danmaku appearance 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 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 live streaming 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 are unaffected. You can also set
requestLegacyExternalStorageto enable 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 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 should 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 the API documentation, please refer to v2.16.0 API.
Required Changes
- The old version had queue errors during 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 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 remain unaffected. Additionally, you can enable
requestLegacyExternalStorageto 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, 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 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 use. 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 set
requestLegacyExternalStorageto 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 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.
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 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 functionality will be restricted on Android Q and above, while Android Q and below remain unaffected. Additionally, you can set
requestLegacyExternalStorageto enable 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 by the Maven repository and automatically introduced through dependencies.
Please refer to the v2.13.1 API for the API documentation.
2020-11-19 polyv-android-sdk-2.0.0-demo v2.13.2
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
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 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 live streaming 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 functionality will be restricted on Android Q and above, while Android Q and below remain unaffected. Additionally, you can enable
requestLegacyExternalStorageto activate Android Q's 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 by the Maven repository and automatically introduced through dependencies.
Please refer to the v2.13.1 API for the API documentation.
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 had queue errors 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 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
requestLegacyExternalStorageto 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.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 by the Maven repository and automatically introduced through dependencies.
Please refer to the v2.13.1 API for the API documentation.
2020-07-20 polyv-android-sdk-2.0.0-demo v2.13.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.
Feature Enhancements & Bug Fixes
- Adapted the SDK to Android Q. Note that starting from this version, the download directory is limited to private directories. [SDK, Demo]
- Security upgrade. [SDK]
- Optimized audio focus handling. [SDK]
- Fixed a crash 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 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 Android Q and below remain unaffected. Additionally, you can enable
requestLegacyExternalStorageto activate Android Q's 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 by the Maven repository and automatically introduced through dependencies.
For the API documentation, please refer to v2.13.0 API.
2020-06-02 polyv-android-sdk-2.0.0-demo v2.12.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.
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 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.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 by the Maven repository and automatically introduced through dependencies.
API documentation can be found at v2.12.2 API
2020-05-15 polyv-android-sdk-2.0.0-demo v2.12.1
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 Features
- Added setting for preloading duration parameters: PolyvVideoView.setMaxCacheSize, PolyvVideoView.setMaxCacheDuration
- Added configuration for player logo settings. Refer to the usage of
PolyvPlayerLogoViewin the demo. - Added configuration to disable progress bar dragging. Refer to the
dragSeekStrategymember field ofPolyvPlayerMediaControllerin 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.
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 live streaming SDK are integrated, the danmaku rendering control in the live streaming SDK must also 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.
For the API documentation, please refer to 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 http://repo.polyv.net/android/sdk/2.12.0/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 for the significance of setting the 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 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 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 by the Maven repository and automatically introduced through dependencies.
Please refer to the v2.12.0 API for the API documentation.
2020-01-19 polyv-android-sdk-2.0.0-demo v2.11.1
Set a Unique Student Identifier
Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.11.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.
Bug Fixes
- Fixed a crash issue caused by the "-" character in tracking information.
Necessary 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 Live SDK are integrated, the danmaku rendering control in the Live SDK also needs to 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 by the Maven repository and automatically introduced through dependencies.
Please refer to the v2.11.1 API for the API documentation.
2020-01-03 polyv-android-sdk-2.0.0-demo v2.11.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
- Fixed the issue of occasional queue errors during downloads. Added interfaces PolyvDownloader.setPolyvDownloadBeforeStartListener2 and PolyvDownloader.setPolyvDownloadWaitingListener.
- Added an interface to retrieve the duration of watched video content: PolyvVideoView.getVideoContentPlayedTime.
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
setViewLogParam2was ineffective. - Optimize downloads to prevent package conflicts from causing decompression to stall.
- Improve the logging system by adding flow and seek logs.
- Fix bugs that could cause crashes in certain operations.
Necessary Modifications
- The old version had 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 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 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 by the Maven repository and automatically introduced through dependencies.
API documentation can be found at 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 for the significance of setting the student unique identifier.
New Interfaces
- Added an interface for setting auto-play. Use the PolyvVideoView.setAutoPlay(boolean isAutoPlay) method.
- Added a callback for obtaining the current playback progress. Use the setOnGetCurrentPositionListener(IPolyvOnGetCurrentPositionListener l) method or the setOnGetCurrentPositionListener(long intervalMs, IPolyvOnGetCurrentPositionListener l) method of
PolyvVideoViewto set the listener callback.
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 flashing style of the marquee now supports gradient effects.
- Fixed an issue where the sent danmaku style was not applied.
- Fixed an issue where custom quizzes did not send answer statistics.
- Fixed an issue where custom quizzes were not cleared, causing the previous video's custom quiz 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 by the Maven repository and automatically introduced through 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 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 Interfaces
- Added the replace question interface: PolyvVideoView.changeQuestion(int showTime, ArrayList
questionVOList) . See the example in thePolyvPlayerAnswerViewclass in the demo. - Added the method for setting the SDK encryption string: PolyvVideoView.settingsWithConfigString(config, aeskey, iv), aligning the interface name with iOS.
New Features
- Added support for sub-accounts. Use the PolyvSDkClient.settingsWithAppId(appId, secretKey, userId) method.
- Added support for custom teasers. Use the PolyvVideoView.setCustomTeaser(url, int duration) method.
Feature Enhancements & Bug Fixes
- Added
showTimefunctionality to custom Q&A, see the example in thePolyvCustomQuestionBuilderclass in the demo. - Added new error types PolyvPlayErrorReason.QUESTION_CLIENT_ERROR and PolyvPlayErrorReason.QUESTION_SERVER_ERROR for Q&A. The
PolyvErrorMessageUtilsclass needs to be updated. - Updated httpdns obfuscation configuration.
- Hidden virtual keys during fullscreen playback, diff.
- Added a new parameter to the send-danmaku API: Danmaku ID. Also added validation for the send-danmaku parameters. See the example in the
PolyvPlayerDanmuFragmentclass andPolyvDanmakuManager.SendDanmakuListenercallback method 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 example of the
PolyvPlayerAnswerViewclass 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 by the Maven repository and automatically introduced through 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 Student Unique 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 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
- Fixed an issue where concurrency between the player's
destroymethod and playback control methods could cause exceptions.
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
//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 by the Maven repository and automatically introduced through 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
- Added a toggle for sending viewlogs during offline playback. Use the PolyvVideoView.enableLocalViewLog(boolean enable) method.
Feature Enhancements & Bug Fixes
- Fixed an issue where calling the
resumemethod 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 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 SDK are integrated simultaneously, the danmaku rendering control in the Live 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 by the Maven repository and automatically introduced through 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 a student unique identifier.
New Interface
- Added an overloaded method setVideoPath to PolyvVideoView. Video address playback now supports setting headers.
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 troubleshooting 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 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 Live SDK are integrated, the danmaku rendering control in the Live 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 by the Maven repository and automatically introduced through 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 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
- Added multiple
screenshotmethods to PolyvVideoView. - Added setLoadTimeoutSecond and setBufferTimeoutSecond methods to PolyvVideoView.
New Features
- Added custom Q&A functionality. Refer to the example code in the
PolyvPlayerActivitymethod withinshowCustomQuestion()for usage. - Added multi-account download functionality.
PolyvSDKClientintroduces a new methodopenMultiDownloadAccountfor enabling multi-account support. A newPolyvUserClientclass 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 during 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 in a paused state.
- Optimized the screenshot feature, eliminating the need for network requests.
- By default, the player now disables the load timeout and buffer timeout features. 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, the danmaku rendering control in the live streaming SDK must also be changed to DanmakuView.
- In this version, the player does not automatically invoke 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 by the Maven repository and automatically introduced through 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 a Unique Student Identifier
Please call the setViewerId method of http://repo.polyv.net/android/sdk/2.7.3/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
- PolyvSDKClient adds the setViewerInfo method. This is to unify the interfaces across different platforms.
New Audio Download Related Interfaces
PolyvDownloaderManagerAdded methodsgetPolyvDownloader(vid, bitrate, fileType),isWaitingDownload(vid, bitrate, fileType),clearPolyvDownload(vid, bitrate, fileType),getKey(vid, bitrate, fileType).PolyvDownloaderAdded fieldsFILE_VIDEO,FILE_AUDIO, and methoddelete.PolyvDownloaderUtilsAdded methodsdeleteAudio,delete(vid, bitrate, fileType).PolyvVideoUtilAdded methodvalidateMP3Audio.PolyvVideoVOAdded methodgetFileSizeMatchFileType(bitrate, fileType).PolyvDownloaderErrorReasonAdded fieldAUDIO_NOT_EXIST.
New Features
- Added double-tap gesture to control player pause and play, refer to the usage of
PolyvPlayerActivityinvideoView.setOnGestureDoubleClickListener. - Added network type detection and prompt before playing video, refer to the usage of
PolyvPlayerActivityinPolyvNetworkDetection. - Added audio download functionality, refer to the usage of
PolyvDownloadListViewAdapterinPolyvDownloaderManager.getPolyvDownloader(vid, bitrate, fileType).
Feature Enhancements & Bug Fixes
- Optimized the error interaction logic for video playback failures. To improve user experience, see
PolyvPlayerPlayErrorView,PolyvPlayerPlayRouteView, and updated error promptPolyvErrorMessageUtilscontent. - 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 when the network was disconnected during playback of live-to-recorded videos.
- Fixed an issue where non-encrypted videos could not be downloaded in the multi-account feature.
- Added an interval setting for the reappearance of scrolling marquee. Refer to the
setReappearTimemethod invideoView.setMarqueeViewofPolyvPlayerActivity. - 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 and adjusted the gesture trigger position for sound/brightness controls.
- Upgraded the bullet chat library. Resolved version conflicts with 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.
PolyvErrorMessageUtilsAdded 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 by the Maven repository and automatically introduced through dependencies.
API documentation can be found at v2.7.3 API
2019-03-12 polyv-android-sdk-2.0.0-demo v2.7.2
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.
New Interfaces
- PolyvDownloader added the setPolyvDownloadProressListener2 callback interface. Used to resolve the issue of being unable to delete downloaded videos.
- PolyvDownloader added the setPolyvDownloadUnzipListener callback interface. Used to report the decompression progress of encrypted videos.
- Added a method to verify the validity of local videos, using PolyvVideoUtil.validateLocalVideo.
New Features
- Added multi-line switching functionality, using
PolyvVideoView.changeRoute. - Added precise seek functionality, using
PolyvVideoView.setSeekType. - Added screen recording protection functionality, using
PolyvVideoView.disableScreenCAP.
Feature Enhancements & Bug Fixes
- Optimized retry logic for playback failures.
- Optimized download progress callbacks. See IPolyvDownloaderProgressListener and IPolyvDownloaderProgressListener2.
- Adjusted the default interval for download speed callbacks to 1 second.
- Fixed an issue where enabling auto-resume caused the playback progress to be saved after video completion, preventing the next playback from starting.
- Optimized the SDK to address occasional database operation anomalies.
- Added display state control for settings when playing in a small window.
- 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 of using the seek method within the
onPreparedcallback. - Fixed an issue where the screen casting feature on Android 9.0 incorrectly retrieved the network type.
- Fixed a crash 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
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />permission - Screen casting related: Remove
sdk-lecast-release.aar, now imported viapolyvScreencast: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 by the Maven repository and automatically introduced through dependencies.
Please refer to the API documentation at 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 quiz tabs in 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 the video only has a post-roll ad.
- Added control over whether playback continues when entering the background.
- Added the ability to pause 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投屏功能
Added 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 by the Maven repository and automatically introduced through dependencies.
For the API documentation, please refer to v2.7.0 API.
2018-12-11 polyv-android-sdk-2.0.0-demo v2.6.1
Feature Enhancement & 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 by the Maven repository and automatically introduced through 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
lastPositionWithVidto retrieve video viewing progress inPolyvVodPlayerUtil, and methodlastPositionTimestampWithVidto retrieve the timestamp of saved video viewing progress.
Feature Enhancements & Bug Fixes
- Optimized the occasional 20016 error when playing or 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 behavior when switching to the same bitrate during playback: no action is taken, and the
PolyvPlayErrorReason.CHANGE_EQUAL_BITRATE(30007) error is not triggered. - Adjusted behavior during weak network or disconnection during playback: the
PolyvPlayErrorReason.EXCEPTION_COMPLETION(30017) error is not triggered, and the player remains on the current screen. - Unified player errors. See the
videoView.setOnErrorListenersettings section inPolyvPlayerActivityfor 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 gesture functionality is disabled without setting a player control bar.
- Improved the comments for the
PolyvVideoView,setViewerId, andsetViewLogParam2methods inPolyvVideoViewto 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 by the Maven repository and automatically introduced through 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 and removed tracking 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 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 audio after a playback error.
- Modified the text content of sharing in the demo.
- Corrected typos in error prompts within the demo. See
PolyvErrorMessageUtils.
New Interfaces/Fields
- Added an interface for downloading callback video information. Added the
setPolyvDownloadVideoInfoListener(IPolyvDownloaderVideoInfoListener l)listener method inPolyvDownloader.
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
PolyvApplicationclass'ssetDownloadDir()method. - 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
PolyvStorageUtilsclass. - Added
getSubDirList()andsetSubDirList(ArrayList<File>)interfaces inPolyvSDKClient. - Added the
setVidWithStudentIdinterface inPolyvVideoView.
Feature Enhancements & Bug Fixes
- Optimized 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 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 appear when tapping the screen. See
polyv_controller_media_center_set.xml. - Optimized error prompt methods. See the
showErrorView()method inPolyvPlayerActivity.
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
PolyvVideoViewAddedsetPriorityMode,changeMode,getCurrentMode,setOnChangeModeListenerinterfacesPolyvPlayErrorReasonAddedAUDIO_URL_EMPTY,NOT_LOCAL_AUDIO,CAN_NOT_CHANGE_AUDIO,CAN_NOT_CHANGE_VIDEO,LOCAL_AUDIO_ERRORfields
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
- Transferred concatenated videos 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 when switching videos frequently.
- Fixed the issue where videos could not play under certain circumstances.
- Added a catch exception for the
setKeepScreenOnerror on Xiaomi phones. - Optimized the issue where folders and files could not be created. The API call has changed; please refer to
PolyvApplicationandPolyvDevMountInfo.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 in 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 by the Maven repository and automatically introduced through 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 from transfer cannot play through 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 by the Maven repository and automatically introduced through dependencies. For 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
PolyvVideoViewAdded multiplesetVidByStrategypolymorphic interfaces to support playing only online videos.PolyvUploaderAdded astartpolymorphic interface to verify whether the user's remaining space is available.PolyvUploaderManagerAdded agetPolyvUploaderpolymorphic 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 monitoring of the
PolyvPlayerActivityplayer and the progress bar change monitoring ofPolyvPlayerMediaController. - 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 demo's online list. Refer to the click monitoring of the
PolyvOnlineListViewAdapterdownload button. - Added logic to change the selected bitrate control only when video resolution switching succeeds. Refer to the
resetBitRateViewmethod ofPolyvPlayerMediaController.
Known Unfixed Bugs
- Merged videos cannot be played to completion 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
PolyvVideoViewAdded thesetViewerNameinterface for setting the audience name.PolyvVideoViewAdded thesetViewerParaminterface for setting additional audience parameters.
Feature Enhancements & Bug Fixes
- Fixed a crash issue that occurred after switching videos multiple times on the video playback interface.
- Fixed an issue where playing certain videos or dragging the progress bar during playback would prompt a video abnormal termination error.
- Improved error prompt texts for playback and download errors. Added text helpful for users to resolve issues on their own. See
PolyvErrorMessageUtils.
Known Unfixed Bugs
- Merged videos cannot be played to completion 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
Upgrading 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 the player.
- Added queue functionality for downloads.
- Added support for downloading source files.
- Added saving of playback progress when a video ends abnormally.
- Added pull-up to load more data in the online video list within 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
PolyvDownloaderUtilsfor downloading: retrieving the download video list from the download directorygetDownloadDirVideoListand deleting the download directorydeleteDownloaderDir. - Added an interface in
PolyvDownloaderManagerfor setting the total number of download queues viasetDownloadQueueCount. ThePolyvApplicationclass 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
seekTomethod ofPolyvVideoViewwithin thesetOnPreparedListenercallback method ofPolyvVideoViewhad no effect. - Changed from setting the system brightness to setting the brightness of the current window, and removed the
android.permission.WRITE_SETTINGSpermission. - Fixed a crash caused by concurrent release when switching to another video during playback of a video ad or intro.
- 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 before the download dialog was 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
Upgrading 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 background) while the video was still loading, the video would continue 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
Upgrading 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 a concurrency crash in
PolyvVideoViewwhensetVideoPathandreleaseare called simultaneously. - Fixed the issue where, after a video download is complete, removing the SDK's storage permission causes a "local file corrupted" prompt when playing the local video. 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 exist without a pre-roll segment.
- Fixed the issue on Android 6.0 and above where the path set during the first login after app installation (without granting read/write storage permission) differs from the path set during the second login (after granting the permission). 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 permission prompt in the demo from: "Detected refusal to write to SD card. Please grant permissions to the app and retry the download" to: "Detected refusal to write to storage device. Please grant permissions to the app and retry the 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
releasemethod ofPolyvVideoView. - Fixed a crash that occurred when switching videos continuously.
- Fixed the incompatibility issue with playing video download files from version 1.0.
- Fixed a memory overflow issue in 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 Files
- 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
