ionic-chromecast 0.0.7 → 0.0.9
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
|
@@ -22,11 +22,36 @@ npx cap sync
|
|
|
22
22
|
|
|
23
23
|
## Android Configuration
|
|
24
24
|
|
|
25
|
-
The plugin automatically configures the necessary permissions
|
|
25
|
+
The plugin automatically configures the necessary permissions:
|
|
26
26
|
- `INTERNET`
|
|
27
27
|
- `ACCESS_NETWORK_STATE`
|
|
28
28
|
- `ACCESS_WIFI_STATE`
|
|
29
29
|
|
|
30
|
+
### Required Cast Options Provider
|
|
31
|
+
|
|
32
|
+
Before using the plugin on Android, add the Cast options provider to your app's `AndroidManifest.xml` inside the `<application>` tag:
|
|
33
|
+
|
|
34
|
+
```xml
|
|
35
|
+
<meta-data
|
|
36
|
+
android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME"
|
|
37
|
+
android:value="com.fabianacevedo.ionicchromecast.CastOptionsProvider"
|
|
38
|
+
tools:replace="android:value" />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If your manifest does not already declare the `tools` namespace, add it to the root `<manifest>` element:
|
|
42
|
+
|
|
43
|
+
```xml
|
|
44
|
+
<manifest
|
|
45
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
46
|
+
xmlns:tools="http://schemas.android.com/tools">
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Then sync Android:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npx cap sync android
|
|
53
|
+
```
|
|
54
|
+
|
|
30
55
|
### Requirements
|
|
31
56
|
- Android API 23+
|
|
32
57
|
- Google Play Services
|
|
@@ -357,12 +357,7 @@ public class IonicChromecast {
|
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
// Cache buster para evitar que el receiver siga mostrando el media anterior
|
|
361
360
|
String effectiveUrl = url;
|
|
362
|
-
try {
|
|
363
|
-
String suffix = (url != null && url.contains("?")) ? "&" : "?";
|
|
364
|
-
effectiveUrl = url + suffix + "_cb=" + System.currentTimeMillis();
|
|
365
|
-
} catch (Exception ignored) {}
|
|
366
361
|
|
|
367
362
|
Logger.info(TAG, "loadMedia: url=" + effectiveUrl + ", contentType=" + contentType);
|
|
368
363
|
|
package/package.json
CHANGED