expo-libmpv 0.5.12 → 0.5.13

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.
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'com.libmpv'
4
- version = '0.5.0'
4
+ version = '0.5.13'
5
5
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
6
6
  apply from: expoModulesCorePlugin
7
7
  applyKotlinExpoModulesCorePlugin()
@@ -43,7 +43,7 @@ android {
43
43
  namespace "com.libmpv"
44
44
  defaultConfig {
45
45
  versionCode 1
46
- versionName "0.5.0"
46
+ versionName "0.5.13"
47
47
  }
48
48
  lintOptions {
49
49
  abortOnError false
@@ -256,22 +256,23 @@ class LibmpvRenderer(
256
256
  if (!videoSync.isNullOrBlank()) {
257
257
  if (videoSync == "display-resample") {
258
258
  MPVLib.setOptionString("video-sync", "display-resample")
259
- MPVLib.setOptionString("audio-pitch-correction", "no")
260
- MPVLib.setOptionString("autosync", "1")
261
- MPVLib.setOptionString("correct-pts", "no")
259
+ MPVLib.setOptionString("interpolation", "yes")
260
+ MPVLib.setOptionString("tscale", "oversample")
261
+ MPVLib.setOptionString("audio-pitch-correction", "yes")
262
262
  }
263
263
  if (videoSync == "audio") {
264
264
  MPVLib.setOptionString("video-sync", "audio")
265
- MPVLib.setOptionString("audio-pitch-correction", "yes")
266
- MPVLib.setOptionString("autosync", "0")
267
- MPVLib.setOptionString("correct-pts", "yes")
265
+ MPVLib.setOptionString("interpolation", "no")
266
+ MPVLib.setOptionString("tscale", "off")
268
267
  }
268
+ } else {
269
+ MPVLib.setOptionString("video-sync", "audio")
270
+ MPVLib.setOptionString("interpolation", "no")
271
+ MPVLib.setOptionString("tscale", "off")
269
272
  }
270
273
 
271
274
  MPVLib.setOptionString("scale", "bilinear")
272
275
  MPVLib.setOptionString("dscale", "bilinear")
273
- MPVLib.setOptionString("tscale", "off")
274
- MPVLib.setOptionString("interpolation", "no")
275
276
 
276
277
  MPVLib.setOptionString("alang", "")
277
278
  MPVLib.setOptionString("ao", "audiotrack")
package/app.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "expo": {
3
- "runtimeVersion": "0.5.0",
3
+ "runtimeVersion": "0.5.13",
4
4
  "plugins": [
5
5
  [
6
6
  "expo-build-properties",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-libmpv",
3
- "version": "0.5.12",
3
+ "version": "0.5.13",
4
4
  "description": "A libmpv Fabric component for Android",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",