[android-developers] Rtsp Http Streaming
0.682: ERROR/MediaPlayerDemo(24240): at android.os.Looper.loop(Looper.java:123) 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at android.app.ActivityThread.main(ActivityThread.java:4627) 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at java.lang.reflect.Method.invokeNative(Native Method) 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at java.lang.reflect.Method.invoke(Method.java:521) 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871) 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629) 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at dalvik.system.NativeStart.main(Native Method) 05-26 10:37:20.737: INFO/MediaPlayer(24240): Info (1,26) 05-26 10:37:20.737: ERROR/MediaPlayer(24240): Error (1,-1) 05-26 10:37:20.868: INFO/ActivityManager(10163): Displayed activity com.giantrabbit.nagare/.KralTvNow: 25864 ms (total 25864 ms) 05-26 10:37:23.777: WARN/PowerManagerService(10163): Timer 0x3->0x3|0x1 This is example of http ; mMediaPlayer = new MediaPlayer(); mMediaPlayer.setDataSource(" http://www.kraltv.com.tr/m/app_streaming_url.asp?t=5&g=DA245844BC6D4F9A8EFDD8F14D41676F "); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepareAsync(); mMediaPlayer.setOnBufferingUpdateListener(this); mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setOnVideoSizeChangedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mMediaPlayer.setLooping(true); Exeption: 05-26 10:16:24.276: ERROR/MediaPlayerService(10157): create PVPlayer 05-26 10:16:24.292: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferWriteDataStreamImpl 05-26 10:16:24.346: INFO/PlayerDriver(10157): buffering (100) 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.346: ERROR/(10157): III Inside Constructor of PVMFMemoryBufferReadDataStreamImpl 05-26 10:16:24.350: WARN/MediaPlayer(23736): info/warning (1, 26) 05-26 10:16:24.354: ERROR/PlayerDriver(10157): Command PLAYER_INIT completed with an error or info -10 05-26 10:16:24.354: ERROR/MediaPlayer(23736): error (-10, -10) 05-26 10:16:24.354: WARN/PlayerDriver(10157): PVMFInfoErrorHandlingComplete 05-26 10:16:24.393: INFO/MediaPlayer(23736): Info (1,26) 05-26 10:16:24.393: ERROR/MediaPlayer(23736): Error (-10,-10) Htttp; VideoView videoView=(VideoView)findViewById(R.id.videoView1); Uri uri = Uri.parse(" http://www.kraltv.com.tr/m/app_streaming_url.asp?t=5&g=DA245844BC6D4F9A8EFDD8F14D41676F "); videoView.setVideoURI(uri); videoView.start(); Gives message;"Sorry, this video connot ve played." Filiz Gökçe -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Rtsp Http Streaming
I always try on device, my device is Samsung Galaxy S ->2.1 Its about same of devices ? Filiz Gökçe On 26 May 2011 10:48, Hitendrasinh Gohil wrote: > hi, > > I was also stucked with rtsp audio streaming.i was also getting the same > error with emultor like u. > > > "Exeption :05-26 10:22:46.186: ERROR/MediaPlayerService( > 10157): create PVPlayer > 05-26 10:23:06.382: ERROR/PlayerDriver(10157): Command PLAYER_INIT > completed with an error or info -1 > 05-26 10:23:06.382: ERROR/MediaPlayer(23800): error (1, -1) > 05-26 10:23:06.382: ERROR/MediaPlayer(23800): Error (1,-1) > ". > > and > > Buffering % =0(not exact string but log showing buffer 0). > > But when i checked it with device it works fine. > > so just check it with device. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Rtsp Http Streaming
I can upen this file in vlc player. But same problem still continue PVMFInfoErrorHandlingComplete error. I also tryed android 1.6 , anroid 2.1 and android 2.3 devices. Filiz Gökçe On 26 May 2011 18:27, dan raaka wrote: > If this is a generic issue - please file a bug under b.android.com > > -Dan > > > > On Thu, May 26, 2011 at 1:55 AM, Hitendrasinh Gohil < > hitendra.virtuei...@gmail.com> wrote: > >> hi, >> >> then just try to log the url that ur applying to datasource.and first >> check it out with vlc player that is it working or not? >> because there is an error with initialization. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Rtsp Http Streaming
Now, the streaming address works. Filiz Gökçe On 26 May 2011 19:11, Robert Slama wrote: > hmmm > > i try open your url rtsp://strm-3.tr.medianova.tv/rkraltv/rkraltv > with realplayer and with vlc and that stream is not available. Try u > open stream in some player (on pc) before u test it on android? > > r^ > > On 26 May 2011 08:37, Filiz Gökçe wrote: > > Hi, > > I try to make live stream on android, > > I try lots of ways, but none of them doesnt work. > > Could you help me ? > > > > > > This is example of rtsp; > > mMediaPlayer = new MediaPlayer(); > > mMediaPlayer.setDataSource(KralStream.getTvStreamUrl().toString()); > > mMediaPlayer.setDisplay(holder); > > mMediaPlayer.prepareAsync(); > > mMediaPlayer.setOnBufferingUpdateListener(this); > > mMediaPlayer.setOnCompletionListener(this); > > mMediaPlayer.setOnPreparedListener(this); > > mMediaPlayer.setOnVideoSizeChangedListener(this); > > mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); > > mMediaPlayer.setLooping(true); > > > > Exeption :05-26 10:22:46.186: ERROR/MediaPlayerService(10157): create > > PVPlayer > > 05-26 10:23:06.382: ERROR/PlayerDriver(10157): Command PLAYER_INIT > completed > > with an error or info -1 > > 05-26 10:23:06.382: ERROR/MediaPlayer(23800): error (1, -1) > > 05-26 10:23:06.382: ERROR/MediaPlayer(23800): Error (1,-1) > > > > rtsp; > > VideoView videoView=(VideoView)findViewById(R.id.videoView1); > > Uri uri = > > Uri.parse(" > http://www.kraltv.com.tr/m/app_streaming_url.asp?t=5&g=DA245844BC6D4F9A8EFDD8F14D41676F > "); > > videoView.setVideoURI(uri); > > videoView.start(); > > > > Gives message;"Sorry, this video connot ve played." > > > > > > rtsp; > > mPreview = (SurfaceView) findViewById(R.id.surface); > > holder = mPreview.getHolder(); > > holder.addCallback(this); > > holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); > > extras = getIntent().getExtras(); > > public void play() { > > > > try { > > Uri video = KralStream.getTvStreamUrl(); > > Toast.makeText(this, video.toString(), > > Toast.LENGTH_SHORT).show(); > > mMediaPlayer = new MediaPlayer(); > > mMediaPlayer.setDataSource(path); > > mMediaPlayer.setDisplay(holder); > > mMediaPlayer.prepare(); > > mMediaPlayer.setOnBufferingUpdateListener(this); > > mMediaPlayer.setOnCompletionListener(this); > > mMediaPlayer.setOnPreparedListener(this); > > mMediaPlayer.setOnVideoSizeChangedListener(this); > > mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); > > } catch (Exception e) { > > Log.e(TAG, "error: " + e.getMessage(), e); > > } > > } > > > > Exeption ;05-26 10:36:57.589: ERROR/MediaPlayerService(10157): create > > PVPlayer > > 05-26 10:37:20.542: ERROR/PlayerDriver(10157): Command PLAYER_INIT > completed > > with an error or info -1 > > 05-26 10:37:20.542: ERROR/MediaPlayer(24240): error (1, -1) > > 05-26 10:37:20.565: WARN/PlayerDriver(10157): > PVMFInfoErrorHandlingComplete > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): error: Prepare failed.: > > status=0x1 > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): java.io.IOException: > > Prepare failed.: status=0x1 > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > android.media.MediaPlayer.prepare(Native Method) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > com.giantrabbit.nagare.KralTvNow.play(KralTvNow.java:162) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > com.giantrabbit.nagare.KralTvNow.surfaceCreated(KralTvNow.java:215) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > android.view.SurfaceView.updateWindow(SurfaceView.java:536) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > android.view.SurfaceView.dispatchDraw(SurfaceView.java:339) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1638) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > > android.view.ViewGroup.drawChild(ViewGroup.java:1638) > > 05-26 10:37:20.682: ERROR/MediaPlayerDemo(24240): at > >
[android-developers] Loading widget error
I implemented a widget for weather and news data. Widget had location component,list view, dynamic backgorund images and weather conditions with images. My widget installed and work properly, then I made 50 rotate and working another widget, then my widget gives that error "loading widget error" Also that problem accours when I update the application, the widget gives that error "loading widget error" Why this problem accour? -- Filiz Gökçe -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] HTTPS POST problem
Sorry, I was wrong, if you look at the code snippet, you can also see we use "TLS" Filiz Gökçe On 6 January 2011 16:39, Mark Murphy wrote: > On Thu, Jan 6, 2011 at 9:30 AM, Filiz Gökçe wrote: > > We tried also, but it gives not trusted service, both SSL and TSL ? > > There is no "TSL" in HTTP. There is TLS in HTTP. HttpClient supports it. > > For assistance with HttpClient, use: > > http://hc.apache.org > > Or search StackOverflow for: > > [httpclient] ssl > > or: > > [httpclient] tls > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://github.com/commonsguy > http://commonsware.com/blog | http://twitter.com/commonsguy > > Android 2.3 Programming Books: http://commonsware.com/books > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: HTTPS POST problem
We start to use, Post but the same problem still continue. Some time we can catch the response, sometimes we couldnt connect server. All parameters are true. Filiz Gökçe On 6 January 2011 17:55, Brill Pappin wrote: > You may have a problem with param encoding. > Also note that you should not have to specify ay https classes, if > done properly the client will switch to https as needed. > > Unless you really need a GET it also might be better to use a POST. > > I keep meaning to move my http client code into a library, but i > haven't yet so its not easy to send you some quick code, hoever if you > look thought the samples, you will find several implementations that > work well. > > - Brill Pappin > > On Jan 6, 7:52 am, Filiz Gökçe wrote: > > Hi, > > I try to connect the https connection. > > > > The below source is working but not stable. > > > > Sometimes same url+parameters results in a proper way, sometimes nothing > > comes as a response. We also looked at the logs of server, when results > are > > null, there seems no requests from the server. > > > > I really couldn’t understand the reason of this kind of behavior. Method > > same, url is same, parameters are same but connection is one time > successful > > and one time failure. > > > > I tested 1.6, 2.1 and 2.2 and nothing changed. Do you know anything about > > SSL connections in Android. Is there any bug? You are my last chance. > > > > *public* *static* String postURL(String url) > > > > { > > > > String result = ""; > > > > String url2 = ""; > > > > String param = ""; > > > > String[] *keys* = *null*; > > > > url2 = url.substring(0, url.indexOf("?")); > > > > param = url.substring(url.indexOf(url2) + url2.length() + 1); > // > > > > *try* > > > > { > > > > System.*out*.println("SSL URL " + url2 + " & param: " + > > param); > > > > PrintWriter outWriter = *null*; > > > > BufferedReader inReader = *null*; > > > > HttpsURLConnection ucon = *null*; > > > > StringBuffer parameter = *new* StringBuffer(); > > > > parameter.append(param); > > > > String operatorAddress = *new* String(url2); > > > > *try* > > > > { > > > > HostnameVerifier hv = *new* HostnameVerifier() > > > > { > > > > @Override > > > > *public* *boolean* verify(String > urlHostName, > > SSLSession session) > > > > { > > > >System.*out*.println("Warning: URL > Host: > > " + urlHostName + " vs. " + session.getPeerHost()); > > > >*return* *true*; > > > > } > > > > }; > > > > // Create a trust manager that does not validate > > certificate > > > > // chains > > > > TrustManager[] trustAllCerts = *new* > TrustManager[] > > { *new* X509TrustManager() > > > > { > > > > *public* > java.security.cert.X509Certificate[] > > getAcceptedIssuers() > > > > { > > > >*return* *null*; > > > > } > > > > *public* > > *void*checkClientTrusted(java.security.cert.X509Certificate[] certs, > > String > > authType) > > > > { > > > > } > > > > *public* > > *void*checkServerTrusted(java.security.cert.X509Certificate[] certs, > > String > > authType) > > > > { > > > > } > > > > } }; > > > > *try* > > > > { > > > >
Re: [android-developers] HTTPS POST problem
Do you have any snippet which connects Https server with httpclient? Filiz Gökçe On 6 January 2011 19:23, Michael Rueger wrote: > On 1/6/11 7:02 AM, Filiz Gökçe wrote: > >> There is no exception in both cases. >> Generally we get proper response for the first time but null response in >> the >> second time eventhough we are tying to post same url and same parameters. >> > > See this bug report: > > http://code.google.com/p/android/issues/detail?id=7074 > > It was supposedly fixed in 2.2? > > Michael > > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Simple Chat Application
Hi, I start to develop an application, In my apllciation needs a instant messaging. Client user can write a person who is live support. I only find Bluetoot Chat service. Is any one develop simple chat in android ? Can anyone show my way ? Filiz Gökçe -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en