@capgo/capacitor-media-session 8.0.32 → 8.0.33

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 CHANGED
@@ -1,11 +1,27 @@
1
1
  # @capgo/capacitor-media-session
2
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-media-session" alt="Capgo - Instant updates for Capacitor" /></a>
2
+
3
+ Show now-playing info and media controls on the lock screen, notification shade and control center for audio or video in your Capacitor app.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_media_session"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-media-session" alt="Capgo - Instant updates for Capacitor" /></a>
3
6
 
4
7
  <div align="center">
5
- <h2><a href="https://capgo.app/?ref=plugin_media_session"> ➡️ Get Instant updates for your App with Capgo</a></h2>
6
- <h2><a href="https://capgo.app/consulting/?ref=plugin_media_session"> Missing a feature? We’ll build the plugin for you 💪</a></h2>
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_media_session">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_media_session">Missing a feature? We'll build the plugin for you 💪</a></p>
7
12
  </div>
8
- Expose media session controls for Capacitor apps
13
+
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-media-session/main/assets/github-social-preview.png" alt="@capgo/capacitor-media-session for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Metadata**: `setMetadata()` sets title, artist, album and artwork.
21
+ - **Playback state**: `setPlaybackState()` shows playing, paused or none.
22
+ - **Remote controls**: `setActionHandler()` handles play, pause, seek, next and previous.
23
+ - **Progress**: `setPositionState()` updates duration, position and playback rate.
24
+ - **Platforms**: iOS, Android and Web. iOS uses MediaPlayer now playing info, Android uses a media session service. Web uses the Media Session API.
9
25
 
10
26
  ## Documentation
11
27
 
@@ -30,7 +30,7 @@ import org.json.JSONObject;
30
30
  @CapacitorPlugin(name = "MediaSession")
31
31
  public class MediaSessionPlugin extends Plugin {
32
32
 
33
- private final String pluginVersion = "8.0.32";
33
+ private final String pluginVersion = "8.0.33";
34
34
 
35
35
  private static final String TAG = "CapgoMediaSession";
36
36
 
@@ -4,7 +4,7 @@ import MediaPlayer
4
4
 
5
5
  @objc(MediaSessionPlugin)
6
6
  public class MediaSessionPlugin: CAPPlugin, CAPBridgedPlugin {
7
- private let pluginVersion: String = "8.0.32"
7
+ private let pluginVersion: String = "8.0.33"
8
8
  public let identifier = "MediaSessionPlugin"
9
9
  public let jsName = "MediaSession"
10
10
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-media-session",
3
- "version": "8.0.32",
3
+ "version": "8.0.33",
4
4
  "description": "Capacitor plugin to expose media session controls of the device",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",