RNSound.setSpeed
See original GitHub issueGetting error using “setSpeed” from javascript on release version running on android device. Not seeing error when running on emulator in development.
Android react-native 0.44.0
Error:
I/ReactNativeJS( 2980): GETTING = null
E/MediaPlayer( 2980): Should have subtitle controller already set
W/dalvikvm( 2980): threadid=13: thread exiting with uncaught exception (group=0x4156eba8)
E/AndroidRuntime( 2980): FATAL EXCEPTION: mqt_native_modules
E/AndroidRuntime( 2980): Process: com.cogplay, PID: 2980
E/AndroidRuntime( 2980): java.lang.RuntimeException: Could not invoke RNSound.setSpeed
E/AndroidRuntime( 2980): at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:382)
E/AndroidRuntime( 2980): at com.facebook.react.cxxbridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:138)
E/AndroidRuntime( 2980): at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
E/AndroidRuntime( 2980): at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime( 2980): at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime( 2980): at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
E/AndroidRuntime( 2980): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2980): at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208)
E/AndroidRuntime( 2980): at java.lang.Thread.run(Thread.java:841)
E/AndroidRuntime( 2980): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2980): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2980): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2980): at com.facebook.react.bridge.BaseJavaModule$JavaMethod.invoke(BaseJavaModule.java:368)
E/AndroidRuntime( 2980): ... 8 more
E/AndroidRuntime( 2980): Caused by: java.lang.NoSuchMethodError: android.media.MediaPlayer.getPlaybackParams
E/AndroidRuntime( 2980): at com.zmxv.RNSound.RNSoundModule.setSpeed(RNSoundModule.java:161)
E/AndroidRuntime( 2980): ... 11 more
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:12 (4 by maintainers)
Top Results From Across the Web
react-native-sound/Help - Gitter
How do setSpeed work? Always when I change speed the play callback never is called this.player.play((success) => { //here not is call when...
Read more >react-native-sound - npm
React Native module for playing sound clips on iOS, Android, and Windows. Latest version: 0.11.2, last published: a year ago.
Read more >Code coverage report for node-npmtest-react-native-sound ...
'use strict'; var RNSound = require('react-native').NativeModules.RNSound; var IsAndroid = RNSound. ... setSpeed = function(value) { this.
Read more >react-native-sound - npm Package Health Analysis - Snyk
Get/set loops, ✓, ✓, ✓. Get/set current time, ✓, ✓, ✓. Set speed, ✓, ✓ ... undefined is not an object (evaluating 'RNSound.IsAndroid')....
Read more >RNSoundModule.smali - Mobile Security Framework
.class public Lcom/zmxv/RNSound/RNSoundModule; ... "setSpeed ignored due to sdk limit" .line 379 invoke-static {p1, p2}, Landroid/util/Log ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 Release build on Android 4.42
RNSoundModule.java line 215 com.zmxv.RNSound.RNSoundModule.setSpeed
Crashlytics
@esutton any update on this issue, we are also facing this issue on android version greater than 4, like android 10,6 and 9.