This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

linking stream wont play from server side  RSS feed

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The link that i have in the code works fine on vlc but when i'm streaming it in android it wont work. i get mediaplayer created failed. here is the err im getting, can you tell me if there is a way to get it to work on android?


heres my code




D/MediaPlayer: create failed:
              java.io.IOException: Prepare failed.: status=0x1
                  at android.media.MediaPlayer.prepare(Native Method)
                  at android.media.MediaPlayer.create(MediaPlayer.java:792)
                  at android.media.MediaPlayer.create(MediaPlayer.java:769)
                  at com.personalcoach101.download.MainActivity.onCreate(MainActivity.java:47)
                  at android.app.Activity.performCreate(Activity.java:5104)
                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
                  at android.app.ActivityThread.access$600(ActivityThread.java:141)
                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
                  at android.os.Handler.dispatchMessage(Handler.java:99)
                  at android.os.Looper.loop(Looper.java:137)
                  at android.app.ActivityThread.main(ActivityThread.java:5041)
                  at java.lang.reflect.Method.invokeNative(Native Method)
                  at java.lang.reflect.Method.invoke(Method.java:511)
                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
                  at dalvik.system.NativeStart.main(Native Method)
E/MediaPlayer: Error (-38,0)
D/libEGL: loaded /system/lib/egl/libEGL_genymotion.so
D/: HostConnection::get() New Host Connection established 0xb8d3e220, tid 6260
D/libEGL: loaded /system/lib/egl/libGLESv1_CM_genymotion.so
         loaded /system/lib/egl/libGLESv2_genymotion.so
W/EGL_genymotion: eglSurfaceAttrib not implemented
D/OpenGLRenderer: Enabling debug mode 0


 
Saloon Keeper
Posts: 2590
327
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your application have permission to access the Internet?
 
Tony fig
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it does,
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!