cordova-plugin-media3 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -95
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,91 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
# Cordova Media3 exoplayer Plugin
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Cordova media3 exoplayer plugin.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Cordova media player plugin using Google's ExoPlayer framework.
|
|
8
|
-
|
|
9
|
-
Please send us links to your cool projects made with this plugin so we can include them on this page!
|
|
10
|
-
|
|
11
|
-
## Keeping track of exoplayer versions here:
|
|
12
|
-
|plugin|exoplayer|
|
|
13
|
-
|-----|---------|
|
|
14
|
-
|2.6.0|2.18.1|
|
|
15
|
-
|2.5.7|2.18.1|
|
|
16
|
-
|2.5.6|2.9.6|
|
|
17
|
-
|2.5.5|2.8.1|
|
|
18
|
-
|2.5.4|2.6.1|
|
|
19
|
-
|
|
20
|
-
## Changes in version 2.6.0
|
|
21
|
-
Add alternative constructor to allow creation of player without Android UI
|
|
22
|
-
- New feature, hence change in package minor version
|
|
23
|
-
Fix crash at playback start
|
|
24
|
-
|
|
25
|
-
## Changes in version 2.5.7
|
|
26
|
-
Upgrade exoplayer to 2.18.1
|
|
27
|
-
Merge changes from netmikey fork
|
|
28
|
-
- Various updates needed to remove `SimpleExoPlayer`
|
|
29
|
-
|
|
30
|
-
## Changin in version 2.5.6
|
|
31
|
-
Upgraded exoplayer to 2.9.6
|
|
32
|
-
|
|
33
|
-
Upgrading to following versions is now possible
|
|
34
|
-
cordova: 11.0.0 (latest)
|
|
35
|
-
cordova-android: ^9.1.0
|
|
36
|
-
|
|
37
|
-
## Changes in version 2.5.4
|
|
38
|
-
- Added loading progress bar to the top that shows up when player is buffering. This needs to be explicitly turned on with `showBuffering` boolean configuration setting.
|
|
39
|
-
- Added ability to change text, buttons and buffering colors using new controller configuration settings `textColor`, `buttonsColor` and `bufferingColor`.
|
|
40
|
-
- Added positionInFirstPeriod to TIMELINE_EVENT.
|
|
41
|
-
- Upgraded exoplayer to 2.6.1.
|
|
42
|
-
|
|
43
|
-
## Changes in version 2.5.3
|
|
44
|
-
- After observing performance issues removing the usage of okhttp.
|
|
45
|
-
- Removing the 'android.hardware.touchscreen' check before adding touch handler. This feature is not reliably reported by various devices.
|
|
46
|
-
|
|
47
|
-
## Changes in version 2.5.2
|
|
48
|
-
- Upgraded exoplayer to version 2.5.1
|
|
49
|
-
- Only adding touchscreen event handler if device has "android.hardware.touchscreen" system feature.
|
|
50
|
-
- Added `connectTimeout`, `readTimeout` and `retryCount` configuration settings. These are related to http client player uses.
|
|
51
|
-
- Added `seekBy` which is simmilar to seekTo but operates relative to the current possition. Value can be positive (seek forward) or negative (seek backwards).
|
|
52
|
-
|
|
53
|
-
## Changes in version 2.5.1
|
|
54
|
-
- Added boolean options `hidePosition` and `hideDuration`. When playing dvr content thise numbers are relative to current time and very confusing to users. Adding ability to hide the numbers until better solution can be found.
|
|
55
|
-
- Added `autoPlay` (defaults to true) to allow user not to play the stream automatically. Must call `play` explicitly.
|
|
56
|
-
|
|
57
|
-
## Changes in version 2.5.0
|
|
58
|
-
- Removed configuration setting `skipTime` and replaced it with separate `forwardTime` and `rewindTime`.
|
|
59
|
-
- Sending `TIMELINE_EVENT` to Cordova with `periodDurationX` and `periodWindowPositionX` properties for duration and window position for each period (marked X) in the stream.
|
|
60
|
-
|
|
61
|
-
## Changes in version 2.4.5
|
|
62
|
-
- Added `setController` method to update the controller mid-stream. It accepts the same controller object that is used as part of parameters for `show` method.
|
|
63
|
-
|
|
64
|
-
## Changes in version 2.4.4
|
|
65
|
-
- Added `stop` method to fully stop the stream but not realease the player. Call `setStream` to restart the playback or `close` to dispose of it.
|
|
66
|
-
|
|
67
|
-
## Changes in version 2.4.2
|
|
68
|
-
- Plugin no longer acts on audio focus event but rather let's Cordova app decide what to do.
|
|
69
|
-
|
|
70
|
-
## Changes in version 2.4.1
|
|
71
|
-
- When audio focus changes, plugin will send `AUDIO_FOCUS_EVENT` with parameter `audioFocus` that can be on of:
|
|
72
|
-
`AUDIOFOCUS_LOSS_TRANSIENT`, `AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK`, `AUDIOFOCUS_GAIN`, `AUDIOFOCUS_LOSS`.
|
|
73
|
-
|
|
74
|
-
## Changes in version 2.4.0
|
|
75
|
-
- Controller will no longer show automatically on touch and key events.
|
|
76
|
-
- Added showController and hideController methods for explicit control of controller visibility.
|
|
77
|
-
- Plugin will not longer close on KEYCODE_BACK key event, please call .close() explicitly.
|
|
78
|
-
- Plugin will request audio focus on startup. It will also listen for audio focus events and pause/play on those events. It will close on AUDIOFOCUS_LOSS.
|
|
79
|
-
- START_EVENT will return additional info `audioFocus` which can be AUDIOFOCUS_REQUEST_FAILED or AUDIOFOCUS_REQUEST_GRANTED.
|
|
80
|
-
- STATE_EVENT will return additional info `controllerVisible` to tell the app if controller is visible or not.
|
|
81
|
-
|
|
82
|
-
## Changes in version 2.3.0
|
|
83
|
-
|
|
84
|
-
- Renamed plugin's namespace from window.exoplayer to window.ExoPlayer
|
|
85
|
-
- Removed `init` method as there is no need to keep instance of the plugin around. Just call methods directly on window.ExoPlayer
|
|
86
|
-
- `show` now takes configuration parameters as the first argumeent since we don't need init any more.
|
|
87
|
-
- Renamed `playOffset` configuration setting to `seekTo` to match the coresponding method that does the same thing
|
|
88
|
-
- Replaced `play` and `pause` methods with single `playPause` that does both and keeps track of playback status
|
|
5
|
+
this plugin was imported and adjusted to media3 Exoplayer based on the plugin of cordova-plugin-exoplayer https://codeclimate.com/github/frontyard/cordova-plugin-exoplayer
|
|
89
6
|
|
|
90
7
|
## Using
|
|
91
8
|
|
|
@@ -243,16 +160,11 @@ Run the code
|
|
|
243
160
|
|
|
244
161
|
cordova run
|
|
245
162
|
|
|
246
|
-
## IONIC
|
|
247
|
-
|
|
248
|
-
For examples of using this plugin in an [IONIC](https://ionicframework.com/) app please see [this thread](https://github.com/frontyard/cordova-plugin-exoplayer/issues/4).
|
|
249
|
-
|
|
250
|
-
For IONIC Native see [npm module](https://www.npmjs.com/package/@ionic-native/android-exoplayer).
|
|
251
163
|
|
|
252
164
|
## Contributing
|
|
253
165
|
|
|
254
166
|
1. Fork it
|
|
255
|
-
2. Create your feature branch off of current upstram branch (currently
|
|
167
|
+
2. Create your feature branch off of current upstram branch (currently 1.0.7)
|
|
256
168
|
3. Commit and push your changes to that branch
|
|
257
169
|
4. Create new Pull Request
|
|
258
170
|
|
|
@@ -270,13 +182,11 @@ https://github.com/frontyard/cordova-plugin-exoplayer
|
|
|
270
182
|
## Donation
|
|
271
183
|
If this project helps you consider donating to support it!
|
|
272
184
|
|
|
273
|
-
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2ZPEB7VKFG2CY)
|
|
274
|
-
|
|
275
185
|
## License
|
|
276
186
|
|
|
277
187
|
The MIT License (MIT)
|
|
278
188
|
|
|
279
|
-
Copyright (c)
|
|
189
|
+
Copyright (c) 2025 Naja7host
|
|
280
190
|
|
|
281
191
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
282
192
|
of this software and associated documentation files (the "Software"), to deal
|