Closed jasongrishkoff closed 7 years ago
It seems you have a space in the extension, which makes the URL return a 404 error
Sorry for causing confusion, but that's just the way the logcat pasted. I've tried it with multiple sources, including SoundCloud API URLs and .mp3 URLs.
On Sun, Apr 16, 2017 at 7:26 PM, Guichaguri notifications@github.com wrote:
It seems you have a space in the extension, which makes the URL return a 404 error
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Guichaguri/react-native-track-player/issues/9#issuecomment-294363545, or mute the thread https://github.com/notifications/unsubscribe-auth/AAW6U3TBel8KCk-zy_Afv0n-xNrlDd8lks5rwk9jgaJpZM4M-rYr .
Twitter: @indieshuffle http://www.twitter.com/indieshuffle Facebook: facebook.com/indieshuffle http://www.facebook.com/indieshuffle Why we don't take premieres http://www.indieshuffle.com/news/premiering-songs-and-why-we-ve-stopped/
Is that error preventing the track from loading? It seems like just a debug log
The entire app crashes and that's the extent of what I can extract fro the logs as a potential cause.
On Sun, Apr 16, 2017 at 7:38 PM, Guichaguri notifications@github.com wrote:
Is that error preventing the track from loading? It seems like just a debug log
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Guichaguri/react-native-track-player/issues/9#issuecomment-294364091, or mute the thread https://github.com/notifications/unsubscribe-auth/AAW6U3gpi3A7_VbCooYHYp_YpiCcaifmks5rwlH5gaJpZM4M-rYr .
Twitter: @indieshuffle http://www.twitter.com/indieshuffle Facebook: facebook.com/indieshuffle http://www.facebook.com/indieshuffle Why we don't take premieres http://www.indieshuffle.com/news/premiering-songs-and-why-we-ve-stopped/
Okay, digging closer it may not be the source. I initiate TrackPlayer.load() and put nothing in the .then() function. It hangs for nearly 10 seconds, then crashes. Logs below.
04-16 20:27:40.990 5055 5102 I ReactNativeJS: 'Action:new', 'currentId: 26179', 'previousId: 0', 'playing: true', 'State: active'
04-16 20:27:40.992 5055 5103 W MediaPlayer: Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: https://archive.org/download/testmp3testfile/mpthreetest.m
p3
04-16 20:27:40.995 1620 2777 I MediaFocusControl: AudioFocus requestAudioFocus() from android.media.AudioManager@42622cbguichaguri.trackplayer.logic.components.FocusManager@6d8daa8 req=1flags=0x0
04-16 20:27:41.004 5055 5102 I ReactNativeJS: active
04-16 20:27:41.004 5055 5102 I ReactNativeJS: Component updated
04-16 20:27:41.004 5055 5102 I ReactNativeJS: 'Action:playing', 'currentId: 26179', 'previousId: 0', 'playing: true', 'State: active'
04-16 20:27:41.011 5055 5102 I ReactNativeJS: player-state
04-16 20:27:41.013 5055 5102 I ReactNativeJS: player-playing
04-16 20:27:52.678 1344 5347 I NuCachedSource2: caching reached eos.
04-16 20:27:52.695 1344 5332 D NuPlayerDriver: notifyListener_l(0xf6159d80), (3, 100, 0)
04-16 20:27:52.695 1344 5332 D NuPlayerDriver: notifyListener_l(0xf6159d80), (1, 0, 0)
04-16 20:27:52.699 5055 5103 D MediaPlayer: setSubtitleAnchor in MediaPlayer
04-16 20:27:52.705 5055 5102 I ReactNativeJS: player-state
04-16 20:27:52.732 5055 5103 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
04-16 20:27:52.732 5055 5103 E AndroidRuntime: Process: com.decoderhq.indieshuffle, PID: 5055
04-16 20:27:52.732 5055 5103 E AndroidRuntime: java.lang.RuntimeException: Cannot convert argument of type class [Ljava.lang.Object;
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at com.facebook.react.bridge.Arguments.fromJavaArgs(Arguments.java:57)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at com.facebook.react.bridge.CallbackImpl.invoke(CallbackImpl.java:36)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at com.facebook.react.bridge.PromiseImpl.resolve(PromiseImpl.java:32)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at guichaguri.trackplayer.logic.Utils.resolveCallback(Utils.java:151)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at guichaguri.trackplayer.player.players.AndroidPlayer.onPrepared(AndroidPlayer.java:229)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:2816)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:196)
04-16 20:27:52.732 5055 5103 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818)
04-16 20:27:52.732 1620 2795 W ActivityManager: Force finishing activity com.decoderhq.indieshuffle/.MainActivity
When I boot the app back up after crash I get this:
04-16 20:27:06.212 5055 5103 I art : Rejecting re-init on previously-failed class java.lang.Class<guichaguri.trackplayer.player.components.ProxyCache>
Fixed!
The last two commits got me through issues #7 and #8 -- thank you! I've now stepped forward to a new error when I try TrackPlayer.load() with a remote mp3. Here's an example:
I haven't tested a local mp3.