forked from jhomlala/betterplayer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/june changes 2 (jhomlala#563)
* Fixed cache clear on Android * Added file check for file data source. * Fix for black screen issue on iOS * Updated changelog * fix: iOS crashes encountered mainly when playing lots of video in HLS format. I definitely encounter a crash line 380 (jhomlala#513) * Updated changelog * Added key parameter in BetterPlayerCacheConfiguration to provide way to re-use same video between app session * Format, updated pubspec.yaml * Fixed playback speed after seek in iOS. * Exposed ASMS classes * * Added error handling for CacheWorker to prevent unexpected crashes. * Exposed BetterPlayerControlsState to provide ways to build custom controls with additional menus * Fairplay ezdrm (jhomlala#488) * Split iOS plugin into different files for each class. * Change FlutterTexture for FlutterPlatformView to be able to display DRM encoded content on iOS. * Change FlutterTexture for FlutterPlatformView to be able to display DRM encoded content on iOS. * Added support for fairplay with EZDRM for iOS, "certificateUrl" added to DataSource. * Do not reuse FLTBetterPlayerView to avoid problems on widget rebuild. Removed random key fix in wiget. * Added fairplay certificate file from EZDRM demo project * Added EZDRM fairplay demo video to the example drm_page * Changed "FLTTimeUtils" to "BetterPlayerTimeUtils" * Changed "FLTEzdrmAssetsLoaderDelegate" to "BetterPlayerAssetsLoaderDelegate" * Removed unused function -> removeKeyWith(NSFileManager *)fileManager * Fixed header comments * Code formatting Co-authored-by: Koldo <kolod@byvapps.com> Co-authored-by: Jakub <jhomlala@gmail.com> * Fairplay refactor * Fairplay refactor * Fairplay refactor * Updated changelog * Android load buffer implementation (jhomlala#537) * start of load buffer implementation * implementing a load buffer functionality for android: Reason: When trying to load 3 videos at once, the loading duration of the video is greatly affected by the buffer rate --> therefore optimizing the buffer can hugely reduce the video loading time * adding export better player android configuration * converting linkedhashmap to Map<String, dynamic> * adjusting the type * fixing buffer channel argument name * Added buffering configuration for Android * Updated changelog * Fixed file data source exception. Right now user will be only warned * Fixed file data source exception. Right now user will be only warned * Fixed issue where controls were not updated after video finish. * Fixed issue where controls were not updated after video finish. * Fixed auto full screen orientation not enabled in iOS. * Format and lint fixes * Format and lint fixes Co-authored-by: themadmrj <themadmrj@users.noreply.github.com> Co-authored-by: Alexandre Roux <alex@tekartik.com> Co-authored-by: Koldo <koldoru92@gmail.com> Co-authored-by: Koldo <kolod@byvapps.com> Co-authored-by: jakubhomlala <j.homlala@bsgroup.eu> Co-authored-by: Letalus <41230136+Letalus@users.noreply.github.com>
- Loading branch information
1 parent
5be8878
commit 569f61a
Showing
35 changed files
with
1,130 additions
and
711 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
android/src/main/java/com/jhomlala/better_player/CustomDefaultLoadControl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.jhomlala.better_player; | ||
|
||
import com.google.android.exoplayer2.DefaultLoadControl; | ||
|
||
class CustomDefaultLoadControl { | ||
/** | ||
* The default minimum duration of media that the player will attempt to ensure is buffered | ||
* at all times, in milliseconds. | ||
**/ | ||
public final int minBufferMs; | ||
|
||
/** | ||
* The default maximum duration of media that the player will attempt to buffer, in milliseconds. | ||
**/ | ||
public final int maxBufferMs; | ||
|
||
/** | ||
* The default duration of media that must be buffered for playback to start or resume following | ||
* a user action such as a seek, in milliseconds. | ||
**/ | ||
public final int bufferForPlaybackMs; | ||
|
||
/** | ||
* he default duration of media that must be buffered for playback to resume after a rebuffer, | ||
* in milliseconds. A rebuffer is defined to be caused by buffer depletion rather than a user | ||
* action. | ||
**/ | ||
public final int bufferForPlaybackAfterRebufferMs; | ||
|
||
CustomDefaultLoadControl() { | ||
this.minBufferMs = DefaultLoadControl.DEFAULT_MIN_BUFFER_MS; | ||
this.maxBufferMs = DefaultLoadControl.DEFAULT_MAX_BUFFER_MS; | ||
this.bufferForPlaybackMs = DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS; | ||
this.bufferForPlaybackAfterRebufferMs = | ||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS; | ||
|
||
} | ||
|
||
CustomDefaultLoadControl( | ||
Integer minBufferMs, | ||
Integer maxBufferMs, | ||
Integer bufferForPlaybackMs, | ||
Integer bufferForPlaybackAfterRebufferMs | ||
) { | ||
this.minBufferMs = minBufferMs != null ? minBufferMs : DefaultLoadControl.DEFAULT_MIN_BUFFER_MS; | ||
this.maxBufferMs = maxBufferMs != null ? maxBufferMs : DefaultLoadControl.DEFAULT_MAX_BUFFER_MS; | ||
this.bufferForPlaybackMs = bufferForPlaybackMs != null ? bufferForPlaybackMs : | ||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_MS; | ||
this.bufferForPlaybackAfterRebufferMs = bufferForPlaybackAfterRebufferMs != null ? | ||
bufferForPlaybackAfterRebufferMs : | ||
DefaultLoadControl.DEFAULT_BUFFER_FOR_PLAYBACK_AFTER_REBUFFER_MS; | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ SPEC CHECKSUMS: | |
|
||
PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c | ||
|
||
COCOAPODS: 1.10.0 | ||
COCOAPODS: 1.10.1 |
Oops, something went wrong.