Coder Social home page Coder Social logo

andrudio's People

Contributors

danbrough avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

andrudio's Issues

x86_64 support

Does the JNI code work in x86_64 devices or emulators ?
I have no idea as I can't seem to get any of the atom 64bit emulators to boot.

Suggestions

Hi there

Just a couple of improvements I can think of after playing with the demo the other day.

  1. caching support; it would be handy to be able to save the data to internal storage while streaming mp3 audio from http.
  2. improve buffer control; I simply throttle my wifi connection to like 10kb and suddenly it's all jumpy and streaming is no longer smooth.
  3. network control; If the connection is lost during the playback, the player should keep trying for like 10 attempts or so before giving up. Plus should allow user to retry again from current position when the network connection is back.

That's all I can think of for further improvements. Actually I'm still learning ffmpeg library and this project helps me a great deal, so thank you :)

can't run the demo

Hi there

I'm trying to run the demo in android studio and getting this error message. Any ideas :)

05-11 10:31:15.494 27702-27702/? D/dalvikvm﹕ Late-enabling CheckJNI
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo W/dalvikvm﹕ Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Ldanbroid/andrudio/demo/MainActivity;
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo W/dalvikvm﹕ Class init failed in newInstance call (Ldanbroid/andrudio/demo/MainActivity;)
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo D/AndroidRuntime﹕ Shutting down VM
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41f2aba8)
05-11 10:31:15.584 27702-27702/danbroid.andrudio.demo E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: danbroid.andrudio.demo, PID: 27702
java.lang.UnsatisfiedLinkError: Couldn't load avutil from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/danbroid.andrudio.demo-2.apk"],nativeLibraryDirectories=[/data/app-lib/danbroid.andrudio.demo-2, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at danbroid.andrudio.LibAndrudio.initialize(LibAndrudio.java:39)
at danbroid.andrudio.demo.MainActivity.(MainActivity.java:26)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)

Can't create the player

Hi there

Just trying out the updated code and I'm running into the problem. Here's the log output.

09-03 13:18:32.716 27169-27169/? I/danbroid.andrudio﹕ ap_create()
09-03 13:18:32.716 27169-27169/? E/danbroid.andrudio﹕ pipe failed
09-03 13:18:32.716 27169-27169/? V/danbroid.andrudio﹕ ap_send_cmd::CMD_EXIT
09-03 13:18:32.716 27169-27169/? I/danbroid.andrudio﹕ ap_delete::calling join on 0
09-03 13:18:32.716 27169-27169/? I/danbroid.andrudio﹕ ap_delete::done
09-03 13:18:32.726 27169-27169/? E/danbroid.andrudio﹕ failed to create playe

If I'm not mistaken, it's caused by:

if (pipe2(player->pipe, O_NONBLOCK) != 0) { .. }

Thanks

java.lang.UnsatisfiedLinkError: dlopen failed

java.lang.UnsatisfiedLinkError: dlopen failed: cannot find "libavutil.so" from verneed[0] in DT_NEEDED list for "/data/app/danbroid.andrudio.demo-1/lib/x86/libavresample.so"

This is on an Android6.0 Atom x86 emulator.
The Google Api's emulator for Atom x86 works fine.
Haven't come across this on any actual devices.
Seems to be an issue loading the prebuilt ffmpeg binaries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.