question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting 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:open
  • Created 6 years ago
  • Reactions:5
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
esuttoncommented, Mar 9, 2018

+1 Release build on Android 4.42

RNSoundModule.java line 215 com.zmxv.RNSound.RNSoundModule.setSpeed

		"react": "^16.2.0",
		"react-native": "^0.53.3",
		"react-native-sound": "v0.10.2",

Crashlytics

screen shot 2018-03-09 at 9 53 12 am

0reactions
saurabhkanswalcommented, Jul 10, 2022

@esutton any update on this issue, we are also facing this issue on android version greater than 4, like android 10,6 and 9.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found