[android-developers] how to write RTSP application in apk layer in android
Hi, I need to write an rtsp client application basically in android apk layer, i searched, but do no know, where to start? is there any examples ? -- Thanks and Regards, Harish Kumar. V -- 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] Latency too high with RTSP and mediaPlayer framework
Hi, Can u give snippet, how to do this? i am trying the same, recieve stream from live camera and store into file with .mp4 container , later for local playback. On Tue, Aug 16, 2011 at 12:04 PM, xoom ei.rtsp.x...@gmail.com wrote: Hi, I am an android developer, I am developing an application which can receive live video from the streaming server/IP camera over RTSP/RTP using mediaPlayer framework. Its working well but I am facing problem with the latency, which is around 4-7 minutes in case of QVGA (320x240) H.264 streams in local LAN. So, is there any way I can minimize the latency? When I saw the DDMS debug prints it shows that the media player buffers some amount of video. Is it possible to minimize that buffering limit? 4-7 minutes of latency in case of local LAN is very high for my application... :( Thanks in advance... -- 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 -- Thanks and Regards, Harish Kumar. V -- 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] how to write RTSP application in apk layer in android
basically, i have rtsp live stream (encoded video+audio data, can be an mp4 file also) from server, i need to capture and store in sdcard in mp4 container. android mediaplayer can play back that rtsp stream, but, i do know, how to store ? android mediarecorder supports only from local camera source? On Sat, Mar 17, 2012 at 3:55 PM, Anirudh Loya loya.anir...@gmail.comwrote: Wht do u mean by RSTP client app and in APK layer ? On Sat, Mar 17, 2012 at 2:33 PM, Harishkumar V harishpres...@gmail.comwrote: Hi, I need to write an rtsp client application basically in android apk layer, i searched, but do no know, where to start? is there any examples ? -- Thanks and Regards, Harish Kumar. V -- 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 -- Thank you Anirudh Loya | Android Developer** Desk: +9140-30681824 | Mobile: +91*9246561265* *Love your Job but don't Love your company, Because you may not know when your company stops loving you.-- Voice Of Love* -- 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 -- Thanks and Regards, Harish Kumar. V -- 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] unable to download youtube video's in android
Hi, I am using youtube downloader to download videos. Suddenly, from today, its not downloading, it reports, D/YTDownload( 740): Got content - parsing... D/YTDownload( 740): Exception in finding ID: java.lang.Exception: Could not find download URL or title. Also, i noticed, in m.youtube.com new site, the option to choose from Browser or Youtube is not shown. Only, i have to select old site or goto desktop version, only then it shows. Is there any way to download youtube videos or youtube player is available. I am totally struck with the things. Any help would be useful. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] how to disable auto-rotation feature
Hi, I have a apk file, where i dont have the source for it. When i run the apk, it automatically rotates the screen, /WindowManager( 879): Setting rotation to 1, animFlags=0 I/WindowManager( 879): Config changed: { scale=1.0 imsi=0/0 locale=en_US touch=1 key=2/1/2 nav=3 orien=1 } then after closing the application or coming out from the application, I/WindowManager( 879): Setting rotation to 0, animFlags=0 I/WindowManager( 879): Config changed: { scale=1.0 imsi=0/0 locale=en_US touch=1 key=2/1/2 nav=3 orien=2 } how to disable the rotation. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] opencore packet video error in android -Video track fell behind
Hi, When i play an mp4 file, it reports Video track fell behind. it is not the same for all mp4 videos, some play and some do not, reporting above error. is this video quality issue handled by android or opencore issue in handling. is there anyway we can fix this. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: Select a specific InputMethod by program
Hi, I have a softkeyboard in andorid, how to invoke this by means of keyboard in textbox. Because, in emulator, it works only if i move the mouse and click at the textbox, it launches. Thanks and Regards, HarishKumar.V On Fri, Jul 17, 2009 at 2:05 AM, Kent Loobey k...@uoregon.edu wrote: On Monday 13 July 2009 10:09:57 Dianne Hackborn wrote: If you just want a custom keyboard, you can use the same keyboard class to implement a keyboard within your app. Currently that is the only thing that is really supported. I want to do a similar thing. I have an EditText field that I want to fill with a dialog key pad that I have created. I am using et.setOnClickListener(this); to catch the click on the edit text field and everything is working fine except that the softkeyboad flashes between the click and the display of my dialog. Is there some way to disable/block the sofkeyboard from a specified EditText field? On Mon, Jul 13, 2009 at 10:00 AM, condor 25apr1...@gmail.com wrote: Hi Dannie thanks for the answer. If is not possible to change the IME by program how can I extend the standard one to mange number in a custom way? Actually, I need a keyboard that show only the 10 digits and the + - * / operators for a view that contains multiple EditText where the user can only input numbers. Regards On 13 juil, 18:12, Dianne Hackborn hack...@android.com wrote: Sorry, the application can't change the global IME. On Mon, Jul 13, 2009 at 5:41 AM, condor 25apr1...@gmail.com wrote: I compiled the example SoftKeyboard in the SDK successfully, but to use it, user has to select it as default IME or select it by the context menu. How to select it by program and use it in an EditText? -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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] Re: Getting virtual keyboard
Hi, How to call android keyboard using keyboard. i have a android browser, where when u typing a url, how to invoke the virtual keyboard. I have no mouse. Thanks and Regards, HarishKumar.V On Wed, Aug 5, 2009 at 3:50 PM, for android forandr...@gmail.com wrote: I wanted to get a virtual keyboard on click of a button and when the button takes focus.the following code works only for on focus,but does not work for the onClickListner. How do I get the virtual keyboard on click of a button?Any help --- final Button button = new Button(this); //button.requestFocusFromTouch(); button.setOnFocusChangeListener(new OnFocusChangeListener(){ public void onFocusChange(View view, boolean hasFocus) { if(hasFocus){ final InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(view, 0); } } }); button.setOnClickListener(new OnClickListener() { public void onClick(View v) { final InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(v, 0); } }); --~--~-~--~~~---~--~~ 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] invoking softkeyboard in android
Hi, i have a android sdk version 1.5 r2, where virtual keyboard works. but the problem is, for example, when i open a browser in the emulator, when i move the mouse and click at the textbox, the virtual keyboard launches, without the mouse, it cannot. is there anyway using only the keyboard, launching of virtual keyboard be done. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: RTSP stack implementation
Oh Is there any way to pull from that, might be adb pull /system/app/APPNAME.apk will do. or we have to insert busybox in that, pack the things. Thanks and Regards, HarishKumar.V On Sat, Aug 1, 2009 at 10:53 PM, Vinay vnykm...@gmail.com wrote: It comes by default with HTC mobile. On Aug 1, 10:13 pm, Harishkumar V harishpres...@gmail.com wrote: Hi, Is there Youtube app available. I never heard of it. Can u share the app. Thats good, really they use http. I think your work on rtsp might be important. It's gr8. good work.. Thanks and Regards, HarishKumar.V On Sat, Aug 1, 2009 at 9:37 PM, Vinayakumara T V vnykm...@gmail.com wrote: Hi Harish, Thanks for the reply. I have tried using MediaPlayer and VideoView on both Emulator and G1 Device, both fails to play the RTSP URL. They fail saying PVMFFailure in PLAYER_INIT state. Regarding m.youtube.com, in G1 device it launches Youtube app it uses a hacking way to get the playback url (i.e., http path to mp4 file not rtsp) and play. We can check this using logcat. I have already implemented this hacking way but I am not satisified with this. I want to do it in a RTSP way which is recommended by Google in its Terms Conditions page of Youtube. With Regards Vinayakumara T V On Sat, Aug 1, 2009 at 3:42 PM, Harishkumar V harishpres...@gmail.com wrote: Hi, android already has rtsp support. using mediaplayer or videoview demo example given along with android sdk, u can play only local media files or over the http streaming. if u want to test the video streamed over rtsp, try from m.youtube.com in the browser. Thanks and Regards, HarishKumar.V On Sat, Aug 1, 2009 at 11:34 AM, Vinay vnykm...@gmail.com wrote: Hi, I am working on making RTSP url to work on Android. 1. I have used MediaPlayer and VideoView to play the RTSP url but both of them fail to play in G1 Device and emulator. Error is PVMFFailureiin PLAYER_INIT. 2. So I thought of implementing a RTSP client from scratch. I have developed a small application, it exchanges all the messages (DESCRIBE, SETUP, PLAY, TEARDOWN). But the problem is after PLAY, I should receive the RTP packets at client_port as mentioned in Transport header but TCP dump shows the following messages. I think UDP packets are coming but not received at the application. 11:38:50.213394 IP ew-in-f177.google.com.6970 192.168.1.2.6970: UDP, length 444 11:38:50.213451 IP 192.168.1.2 ew-in-f177.google.com: ICMP 192.168.1.2 udp port 6970 unreachable, length 36 Please let me know how to solve this issue. With Regards Vinayakumara T V --~--~-~--~~~---~--~~ 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] APPS not running in the device due to network
Hi, I have some apps running in the android emulator from 1.5r2 sdk. But the same apps not running in my device, I have a internet network, i can browse use android browser. If i run the app, it shows Network is not connected and Network is not ready. The only difference i can find between emulator and my device is, in emulator - the network signal appears and 3G in notification window in device - the network signal is crossed. (I have a wired network to my device). How to map wired network to network signal. How some apps cannot run due to this while android browser can run. How the apps find out what network is available? Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: RTSP stack implementation
Hi, android already has rtsp support. using mediaplayer or videoview demo example given along with android sdk, u can play only local media files or over the http streaming. if u want to test the video streamed over rtsp, try from m.youtube.com in the browser. Thanks and Regards, HarishKumar.V On Sat, Aug 1, 2009 at 11:34 AM, Vinay vnykm...@gmail.com wrote: Hi, I am working on making RTSP url to work on Android. 1. I have used MediaPlayer and VideoView to play the RTSP url but both of them fail to play in G1 Device and emulator. Error is PVMFFailureiin PLAYER_INIT. 2. So I thought of implementing a RTSP client from scratch. I have developed a small application, it exchanges all the messages (DESCRIBE, SETUP, PLAY, TEARDOWN). But the problem is after PLAY, I should receive the RTP packets at client_port as mentioned in Transport header but TCP dump shows the following messages. I think UDP packets are coming but not received at the application. 11:38:50.213394 IP ew-in-f177.google.com.6970 192.168.1.2.6970: UDP, length 444 11:38:50.213451 IP 192.168.1.2 ew-in-f177.google.com: ICMP 192.168.1.2 udp port 6970 unreachable, length 36 Please let me know how to solve this issue. With Regards Vinayakumara T V --~--~-~--~~~---~--~~ 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] Re: RTSP stack implementation
Hi, Is there Youtube app available. I never heard of it. Can u share the app. Thats good, really they use http. I think your work on rtsp might be important. It's gr8. good work.. Thanks and Regards, HarishKumar.V On Sat, Aug 1, 2009 at 9:37 PM, Vinayakumara T V vnykm...@gmail.com wrote: Hi Harish, Thanks for the reply. I have tried using MediaPlayer and VideoView on both Emulator and G1 Device, both fails to play the RTSP URL. They fail saying PVMFFailure in PLAYER_INIT state. Regarding m.youtube.com, in G1 device it launches Youtube app it uses a hacking way to get the playback url (i.e., http path to mp4 file not rtsp) and play. We can check this using logcat. I have already implemented this hacking way but I am not satisified with this. I want to do it in a RTSP way which is recommended by Google in its Terms Conditions page of Youtube. With Regards Vinayakumara T V On Sat, Aug 1, 2009 at 3:42 PM, Harishkumar V harishpres...@gmail.comwrote: Hi, android already has rtsp support. using mediaplayer or videoview demo example given along with android sdk, u can play only local media files or over the http streaming. if u want to test the video streamed over rtsp, try from m.youtube.com in the browser. Thanks and Regards, HarishKumar.V On Sat, Aug 1, 2009 at 11:34 AM, Vinay vnykm...@gmail.com wrote: Hi, I am working on making RTSP url to work on Android. 1. I have used MediaPlayer and VideoView to play the RTSP url but both of them fail to play in G1 Device and emulator. Error is PVMFFailureiin PLAYER_INIT. 2. So I thought of implementing a RTSP client from scratch. I have developed a small application, it exchanges all the messages (DESCRIBE, SETUP, PLAY, TEARDOWN). But the problem is after PLAY, I should receive the RTP packets at client_port as mentioned in Transport header but TCP dump shows the following messages. I think UDP packets are coming but not received at the application. 11:38:50.213394 IP ew-in-f177.google.com.6970 192.168.1.2.6970: UDP, length 444 11:38:50.213451 IP 192.168.1.2 ew-in-f177.google.com: ICMP 192.168.1.2 udp port 6970 unreachable, length 36 Please let me know how to solve this issue. With Regards Vinayakumara T V --~--~-~--~~~---~--~~ 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] how to disable the keygaurd and screen locking in android
Hi, i am porting android to our custom board. When android first time boots up, it is proper, i able to go into apps window and able to work. But, if i boot the android for next time, the andorid boots up and goes to main screen, where the screen gets locked displaying Press Menu to unlock. If i press Menu key to unlock, its reporting error, D/KeyguardViewMediator( 841): wakeWhenReadyLocked(82) V/EventHub( 841): revents for 2 = 0x0001 V/EventHub( 841): /dev/input/event0 got: t0=73, t1=573486, type=0, code=0, v=0 D/KeyguardViewMediator( 841): handleWakeWhenReady(82) D/KeyguardViewMediator( 841): pokeWakelock(5000) I am unable to unlock, so there is anyway where we can avoid locking of screen. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] playing video file from m.youtube.com
Hi, i have android running on beagle board. From android browser, if i go to m.youtube.com and play a video, it some time plays and some time does not. when it does not play, i got following error messages, mediaplayer: msg received = 100, ext1=-1, ext2=0 when it plays,i got the following messages, mediaplayer: msg received = 5, ext1=176, ext2=144 Also, how to enable scaling and smoothing, i have a display of 640x480, when the actual video enlarges, the video quality is poor. is android supports playing flv files. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] how to install android market and video player
Hi, I am using beagle board, in which android being ported. i have to play mp4 video files, on searching in the internet, i have found that android market need to be installed to get videoplayer and many applications. how to get android market installed in my board. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] media player does not display video, only audio coming, the screen turns black
Hi, I am trying to play mp4 video file from mediaplayer demo given in the api demos along with android sdk. I changed the path to /sdcard/video.mp4.. If i run mediaplayer_video demo, the audio output is coming, but no video is being displayed, the screen is black. when i seen the logcat, it reports, surfaceCreated called and surfaceChanged called. how to fix this... meanwhile, any videoplayer is available for android. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: Crash on mediaPlayer.prepare();
Hi, I am also facing similar problem with media player. i changed the mediaplayer according to your activity 1, but in which file, the layout changes to be added. Thanks and Regards, HarishKumar.V On Sun, Apr 26, 2009 at 11:17 PM, Fábio Fabris fabiofab...@gmail.comwrote: Hello fellow developers! I'm having quite a hard time using the android.media.MediaPlayer class. I would like to implement a very simple proof of concept Activity that just launches a mp4 video. I've successfully achieved this by using a callback like this: See ACTIVITY 1. It successfully plays the video. After that I tried the Callback-free version: See ACTIVITY 2. The result is sound coming out just fine and a black square instead of a video. Does anyone knows what is going on here? In using: android-sdk-linux_x86-1.1_r1 java-sun6-sdk Ubuntu 9.04 32bits Thank you! ##BEGIN ACTIVITY 1### package test.test; import java.io.IOException; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; class MyCallback implements SurfaceHolder.Callback, MediaPlayer.OnPreparedListener{ private String path; private MediaPlayer mMediaPlayer; public MyCallback(String string) { path=string; } public void surfaceChanged(SurfaceHolder holder, int format, int width,int height) {} public void surfaceCreated(SurfaceHolder holder) { mMediaPlayer = new MediaPlayer(); try { mMediaPlayer.setDataSource(path); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepare(); } catch (IOException e) { e.printStackTrace(); } mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } public void surfaceDestroyed(SurfaceHolder holder) { } public void onPrepared(MediaPlayer mp) { mp.start(); } } public class test extends Activity { private SurfaceView mPreview; private SurfaceHolder holder; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mPreview = (SurfaceView) findViewById(R.id.SurfaceView01); holder = mPreview.getHolder(); holder.addCallback(new MyCallback(/sdcard/yu2.mp4)); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } } ##END OF ACTIVITY 1### ##BEGIN ACTIVITY 2### package test.test; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class test extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button but = (Button) findViewById(R.id.Button01); but.setOnClickListener(new OnClickListener() { public void onClick(View v) { show(); } }); } private void show() { SurfaceView sv = (SurfaceView) findViewById(R.id.SurfaceView01); SurfaceHolder holder = sv.getHolder(); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(/sdcard/yu2.mp4); mp.setDisplay(holder); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.prepare(); } catch (Exception e) { e.printStackTrace(); } mp.start(); } } ##END OF ACTIVITY 2### ##LAYOUT### ?xml version=1.0 encoding=utf-8? AbsoluteLayout android:id=@+id/AbsoluteLayout01 xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=fill_parent android:layout_width=fill_parentSurfaceView android:id=@+id/ SurfaceView01 android:layout_height=100px android:layout_width=100px/SurfaceView Button android:id=@+id/Button01 android:layout_width=wrap_content android:layout_height=wrap_content android:layout_y=200px/ Button /AbsoluteLayout ##END OF LAYOUT###
[android-developers] Re: Crash on mediaPlayer.prepare();
Hi, sorry, i got the layout file to be changed. Thanks and Regards, HarishKumar.V On Tue, Jun 2, 2009 at 6:11 PM, Harishkumar V harishpres...@gmail.comwrote: Hi, I am also facing similar problem with media player. i changed the mediaplayer according to your activity 1, but in which file, the layout changes to be added. Thanks and Regards, HarishKumar.V On Sun, Apr 26, 2009 at 11:17 PM, Fábio Fabris fabiofab...@gmail.comwrote: Hello fellow developers! I'm having quite a hard time using the android.media.MediaPlayer class. I would like to implement a very simple proof of concept Activity that just launches a mp4 video. I've successfully achieved this by using a callback like this: See ACTIVITY 1. It successfully plays the video. After that I tried the Callback-free version: See ACTIVITY 2. The result is sound coming out just fine and a black square instead of a video. Does anyone knows what is going on here? In using: android-sdk-linux_x86-1.1_r1 java-sun6-sdk Ubuntu 9.04 32bits Thank you! ##BEGIN ACTIVITY 1### package test.test; import java.io.IOException; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; class MyCallback implements SurfaceHolder.Callback, MediaPlayer.OnPreparedListener{ private String path; private MediaPlayer mMediaPlayer; public MyCallback(String string) { path=string; } public void surfaceChanged(SurfaceHolder holder, int format, int width,int height) {} public void surfaceCreated(SurfaceHolder holder) { mMediaPlayer = new MediaPlayer(); try { mMediaPlayer.setDataSource(path); mMediaPlayer.setDisplay(holder); mMediaPlayer.prepare(); } catch (IOException e) { e.printStackTrace(); } mMediaPlayer.setOnPreparedListener(this); mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); } public void surfaceDestroyed(SurfaceHolder holder) { } public void onPrepared(MediaPlayer mp) { mp.start(); } } public class test extends Activity { private SurfaceView mPreview; private SurfaceHolder holder; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mPreview = (SurfaceView) findViewById(R.id.SurfaceView01); holder = mPreview.getHolder(); holder.addCallback(new MyCallback(/sdcard/yu2.mp4)); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } } ##END OF ACTIVITY 1### ##BEGIN ACTIVITY 2### package test.test; import android.app.Activity; import android.media.AudioManager; import android.media.MediaPlayer; import android.os.Bundle; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class test extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button but = (Button) findViewById(R.id.Button01); but.setOnClickListener(new OnClickListener() { public void onClick(View v) { show(); } }); } private void show() { SurfaceView sv = (SurfaceView) findViewById(R.id.SurfaceView01); SurfaceHolder holder = sv.getHolder(); holder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); MediaPlayer mp = new MediaPlayer(); try { mp.setDataSource(/sdcard/yu2.mp4); mp.setDisplay(holder); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.prepare(); } catch (Exception e) { e.printStackTrace(); } mp.start(); } } ##END OF ACTIVITY 2### ##LAYOUT### ?xml version=1.0 encoding=utf-8? AbsoluteLayout android:id=@+id/AbsoluteLayout01 xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=fill_parent android:layout_width=fill_parentSurfaceView android:id=@+id/ SurfaceView01 android:layout_height=100px android:layout_width=100px/SurfaceView Button android:id=@+id/Button01 android:layout_width=wrap_content
[android-developers] Re: media player does not display video, only audio coming, the screen turns black
is it plays mp4 video files. is equivalent to mediaplayer and has media start,stop,pause commands. Thanks and Regards, HarishKumar.V On Tue, Jun 2, 2009 at 5:48 PM, Mark Murphy mmur...@commonsware.com wrote: Harishkumar V wrote: Hi, I am trying to play mp4 video file from mediaplayer demo given in the api demos along with android sdk. I changed the path to /sdcard/video.mp4.. If i run mediaplayer_video demo, the audio output is coming, but no video is being displayed, the screen is black. when i seen the logcat, it reports, surfaceCreated called and surfaceChanged called. how to fix this... meanwhile, any videoplayer is available for android. Try VideoView. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ 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] How to test camera on android
Hi, I have android running on beagle. I have usb webcam Logitect QuickCam Express connected to beagle board. The v4l2 driver recognizes the camera. Using v4l-info i can query the video device. Now, from android, if i run Camera.apk, only black and white checked screens (as like in emulator) comes. how to test the usb webcam using android. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Music player got crashed in android running on beagle
Hi, I have android running on beagle. When i click Music player, i got the following error on screen, The application Music (process com.android.music) has stopped unexpectedly. Please try again in beagle, when i did logcat, I/ActivityManager( 815): Starting activity: Intent { action=android.intent.action.MAIN categories={android.intent.category} I/ActivityManager( 815): Start proc com.android.music for activity com.android.music/.VideoBrowserActivity: pid=1328 uid=1} I/jdwp( 1328): received file descriptor 10 from ADB W/ResourceType( 1328): Failure getting entry for 0x7f020019 (t=1 e=25) in package 0: 0xffb5 D/AndroidRuntime( 1328): Shutting down VM W/dalvikvm( 1328): threadid=3: thread exiting with uncaught exception (group=0x4000fe68) E/AndroidRuntime( 1328): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1328): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.music/com.android.mr E/AndroidRuntime( 1328):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2156) E/AndroidRuntime( 1328):at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2172) E/AndroidRuntime( 1328):at android.app.ActivityThread.access$1800(ActivityThread.java:112) E/AndroidRuntime( 1328):at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1586) E/AndroidRuntime( 1328):at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 1328):at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1328):at android.app.ActivityThread.main(ActivityThread.java:3790) E/AndroidRuntime( 1328):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 1328):at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 1328):at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745) E/AndroidRuntime( 1328):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:503) E/AndroidRuntime( 1328):at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 1328): Caused by: android.view.InflateException: Binary XML file line #18: Error inflating class java.lanr E/AndroidRuntime( 1328):at android.view.LayoutInflater.createView(LayoutInflater.java:512) E/AndroidRuntime( 1328):at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.ja) E/AndroidRuntime( 1328):at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562) E/AndroidRuntime( 1328):at android.view.LayoutInflater.rInflate(LayoutInflater.java:617) E/AndroidRuntime( 1328):at android.view.LayoutInflater.parseInclude(LayoutInflater.java:676) E/AndroidRuntime( 1328):at android.view.LayoutInflater.rInflate(LayoutInflater.java:613) E/AndroidRuntime( 1328):at android.view.LayoutInflater.inflate(LayoutInflater.java:407) E/AndroidRuntime( 1328):at android.view.LayoutInflater.inflate(LayoutInflater.java:320) E/AndroidRuntime( 1328):at android.view.LayoutInflater.inflate(LayoutInflater.java:276) E/AndroidRuntime( 1328):at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:226) E/AndroidRuntime( 1328):at android.app.Activity.setContentView(Activity.java:1614) E/AndroidRuntime( 1328):at com.android.music.VideoBrowserActivity.init(VideoBrowserActivity.java:52) E/AndroidRuntime( 1328):at com.android.music.VideoBrowserActivity.onCreate(VideoBrowserActivity.java:45) E/AndroidRuntime( 1328):at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) E/AndroidRuntime( 1328):at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2119) E/AndroidRuntime( 1328):... 11 more E/AndroidRuntime( 1328): Caused by: java.lang.reflect.InvocationTargetException E/AndroidRuntime( 1328):at android.widget.ImageView.init(ImageView.java:102) E/AndroidRuntime( 1328):at java.lang.reflect.Constructor.constructNative(Native Method) E/AndroidRuntime( 1328):at java.lang.reflect.Constructor.newInstance(Constructor.java:451) E/AndroidRuntime( 1328):at android.view.LayoutInflater.createView(LayoutInflater.java:499) E/AndroidRuntime( 1328):... 25 more E/AndroidRuntime( 1328): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/title_bar_shadow.png9 E/AndroidRuntime( 1328):at android.content.res.Resources.loadDrawable(Resources.java:1595) E/AndroidRuntime( 1328):at android.content.res.TypedArray.getDrawable(TypedArray.java:520) E/AndroidRuntime( 1328):at android.view.View.init(View.java:1688) E/AndroidRuntime( 1328):at android.widget.ImageView.init(ImageView.java:106) E/AndroidRuntime( 1328):... 29 more E/AndroidRuntime( 1328): Caused by: java.io.FileNotFoundException: res/drawable/title_bar_shadow.png E/AndroidRuntime(
[android-developers] playing video from browser in sdk1.1
Dear All, I have downloaded android source from android git tree and built it, loaded the new images into emulator. but when i opened up the browser and browse through http://youtube.com, only the blank white screen appears. i am able to browse other websites. http://m.youtube.com works fine, videos are listed and if i try to play video, the same error, it loads and does not play video. is youtube app available in the current source. any link or reference available abt youtube player in the android source or how to build it in from the source. In frameworks/base/packages/SettingsProvider/etc/bookmarks.xml, the com.google.android.youtube was mentioned. how to get the package. HarishKumar.V --~--~-~--~~~---~--~~ 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] youtube app on android source
Dear all, I have downloaded android source from android git tree and built it, loaded the new images into emulator. but when i opened up the browser and browse through http://youtube.com, only the blank white screen appears. i am able to browse other websites. http://m.youtube.com works fine, videos are listed and if i try to play video, the same error, it loads and does not play video. is youtube app available in the current source. any link or reference available abt youtube player in the android source or how to build it in from the source. In frameworks/base/packages/SettingsProvider/etc/bookmarks.xml, the com.google.android.youtube was mentioned. how to get the package. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: Multimedia buffering
Alibaba, I am also facing the same error. in the MediaPlayerDemo_Video.java file given in the api demos, i gave the url stream path as rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gp then when i executed the mediaplayer, it does not play video it got crashed. when i try to play youtube video file using browser from m.youtube.com, it starts to load video, but does not play it. it gives Error(-1,0). Thanks and Regards, HarishKumar.V On Wed, Feb 11, 2009 at 3:12 PM, AliBaba kanul1...@gmail.com wrote: I am still unable to play videos from rtsp server. I have initialised path variable in API Demo with rtsp://bfug.rtsp-youtube.l.google.com/ CkgLENy73wIaPwl9ka7Qc5R-0hMYDSANFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYOXNzeO3wMKYfAw=/ 0/0/0/video.3gphttp://bfug.rtsp-youtube.l.google.com/%0ACkgLENy73wIaPwl9ka7Qc5R-0hMYDSANFEIJbXYtZ29vZ2xlSARSB3JlbGF0ZWRaDkNsaWNrVGh1bWJuYWlsYOXNzeO3wMKYfAw=/%0A0/0/0/video.3gp . But still it is not playing this video. Can anybody provide any rtsp link(video on rtsp server), so that I can assign that value to path variable and it will work ? -AliBaba --~--~-~--~~~---~--~~ 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] Re: Reg playing youtube video in android
Dear All, playing youtube video from m.youtube.com from browser does not work in the emulator, it loads but does not play the video, but will this work i try the same in the device. Thanks and Regards, HarishKumar On Tue, Feb 10, 2009 at 5:52 PM, Harishkumar V harishpres...@gmail.comwrote: Dave, But will this work on real device, if i try to run m.youtube.com from browser. Thanks and Regards, HarishKumar On Tue, Feb 10, 2009 at 1:28 PM, Dave Sparks davidspa...@android.comwrote: I'm pretty sure this is due to the way the emulator handles UDP packets. There is an outstanding bug about this, but no one has had time to work on it. On Feb 9, 10:59 pm, Harishkumar V harishpres...@gmail.com wrote: Michael, using browser running in the android in emulator mode, i launchedhttp:// m.youtube.com. it opened up a page contaning list of video files. when i click any one of them, it starts to load video, but finally it fails with the message, Sorry, this video cannot be played. using adb logcat, i got the log messages as, I/ActivityManager( 50): Starting activity: Intent { action=android.intent.action.VIEW categories={android.intent.category.BROWSABLE} data=rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gpcomp={c om.android.music/com.android.music.MovieView}} W/SensorService( 50): could not enable sensor 2 I/MediaPlayer-JNI( 189): prepareAsync: surface=0x1ae340 (id=1) I/ActivityManager( 50): Displayed activity com.android.music/.MovieView: 418 ms D/dalvikvm( 166): GC freed 3935 objects / 290168 bytes in 75ms E/MediaPlayer( 189): Error (-1,0) D/VideoView( 189): Error: -1,0 W/PlayerDriver( 25): PVMFInfoErrorHandlingComplete in the shell, when i do ps command, app_8189 2491620 13156 afe0c824 S com.android.music:MovieView is appearing. how the complete flow works? who is responsible for launching the video stream, is MovieView consists of MediaPlayer and VideoView. is any format changes in m.youtube.com video, any way to clearly see the Error(-1,0) means. Thanks and Regards, HarishKumar.V On Fri, Jan 30, 2009 at 8:15 PM, kolby kolbys...@gmail.com wrote: Here is the sample code to launch the view intent: Uri uri = Uri.parse(url); // check if others handle this url Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addCategory(Intent.CATEGORY_BROWSABLE); try { if (startActivityIfNeeded(intent, -1)) { // success } } catch (ActivityNotFoundException ex) { // fail } The rtsp link doesn't seem to be recognized by anything on the emulator. 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 -~--~~~~--~~--~--~---
[android-developers] is android supports rtsp streaming
Dear All, I am trying to play video using rtsp streaming, but it does not work, it displays sorry this video cannot be played. in the mailing list, i have seen many like this similar have been posted regarding rtsp streaming. i have a doubt whether android supports rtsp streaming of video using an mediaplayer. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: Reg playing youtube video in android
Dave, But will this work on real device, if i try to run m.youtube.com from browser. Thanks and Regards, HarishKumar On Tue, Feb 10, 2009 at 1:28 PM, Dave Sparks davidspa...@android.comwrote: I'm pretty sure this is due to the way the emulator handles UDP packets. There is an outstanding bug about this, but no one has had time to work on it. On Feb 9, 10:59 pm, Harishkumar V harishpres...@gmail.com wrote: Michael, using browser running in the android in emulator mode, i launchedhttp:// m.youtube.com. it opened up a page contaning list of video files. when i click any one of them, it starts to load video, but finally it fails with the message, Sorry, this video cannot be played. using adb logcat, i got the log messages as, I/ActivityManager( 50): Starting activity: Intent { action=android.intent.action.VIEW categories={android.intent.category.BROWSABLE} data=rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gpcomp={c om.android.music/com.android.music.MovieView}} W/SensorService( 50): could not enable sensor 2 I/MediaPlayer-JNI( 189): prepareAsync: surface=0x1ae340 (id=1) I/ActivityManager( 50): Displayed activity com.android.music/.MovieView: 418 ms D/dalvikvm( 166): GC freed 3935 objects / 290168 bytes in 75ms E/MediaPlayer( 189): Error (-1,0) D/VideoView( 189): Error: -1,0 W/PlayerDriver( 25): PVMFInfoErrorHandlingComplete in the shell, when i do ps command, app_8189 2491620 13156 afe0c824 S com.android.music:MovieView is appearing. how the complete flow works? who is responsible for launching the video stream, is MovieView consists of MediaPlayer and VideoView. is any format changes in m.youtube.com video, any way to clearly see the Error(-1,0) means. Thanks and Regards, HarishKumar.V On Fri, Jan 30, 2009 at 8:15 PM, kolby kolbys...@gmail.com wrote: Here is the sample code to launch the view intent: Uri uri = Uri.parse(url); // check if others handle this url Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addCategory(Intent.CATEGORY_BROWSABLE); try { if (startActivityIfNeeded(intent, -1)) { // success } } catch (ActivityNotFoundException ex) { // fail } The rtsp link doesn't seem to be recognized by anything on the emulator. 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 -~--~~~~--~~--~--~---
[android-developers] Re: Reg playing youtube video in android
Michael, using browser running in the android in emulator mode, i launched http://m.youtube.com. it opened up a page contaning list of video files. when i click any one of them, it starts to load video, but finally it fails with the message, Sorry, this video cannot be played. using adb logcat, i got the log messages as, I/ActivityManager( 50): Starting activity: Intent { action=android.intent.action.VIEW categories={android.intent.category.BROWSABLE} data=rtsp:// bfug.rtsp-youtube.l.google.com/CkYLENy73wIaPQkcSEPa1Fc6nRMYDSANFEIJbXYtZ29vZ2xlSARSBWluZGV4Wg5DbGlja1RodW1ibmFpbGCqqamFtdjqsQkM/0/0/0/video.3gpcomp={com.android.music/com.android.music.MovieView} } W/SensorService( 50): could not enable sensor 2 I/MediaPlayer-JNI( 189): prepareAsync: surface=0x1ae340 (id=1) I/ActivityManager( 50): Displayed activity com.android.music/.MovieView: 418 ms D/dalvikvm( 166): GC freed 3935 objects / 290168 bytes in 75ms E/MediaPlayer( 189): Error (-1,0) D/VideoView( 189): Error: -1,0 W/PlayerDriver( 25): PVMFInfoErrorHandlingComplete in the shell, when i do ps command, app_8189 2491620 13156 afe0c824 S com.android.music:MovieView is appearing. how the complete flow works? who is responsible for launching the video stream, is MovieView consists of MediaPlayer and VideoView. is any format changes in m.youtube.com video, any way to clearly see the Error(-1,0) means. Thanks and Regards, HarishKumar.V On Fri, Jan 30, 2009 at 8:15 PM, kolby kolbys...@gmail.com wrote: Here is the sample code to launch the view intent: Uri uri = Uri.parse(url); // check if others handle this url Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addCategory(Intent.CATEGORY_BROWSABLE); try { if (startActivityIfNeeded(intent, -1)) { // success } } catch (ActivityNotFoundException ex) { // fail } The rtsp link doesn't seem to be recognized by anything on the emulator. 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 -~--~~~~--~~--~--~---
[android-developers] Re: Reg playing youtube video in android
Michael, Thanks , It really needs device, is there any mechanism to get something to run on emulator (ie) no need to play youtube video, just launching view intent. That is steps which can be runned on emulator to make sure something halfway works. also to check view intent is working. Any example or snippet of the code using view intent is available. Can i play rtsp stream from media player. whether is supports RTSP streaming. the link is rtsp:// rtsp2.youtube.com/CkELENy73wIaOAmBxZZKbDKyPRMYDSANFEIVZ2RhdGFTYW1wbGUtWW91VHViZS0xSAZSDmdkYXRhX3N0YW5kYXJkDA==/0/0/0/video.3gp Thanks and Regards, HarishKumar.V On Fri, Jan 30, 2009 at 12:15 AM, Dave Sparks davidspa...@android.comwrote: Interesting, I didn't know that made it to the 1.0 release. Thanks! On Jan 29, 6:48 am, kolby kolbys...@gmail.com wrote: Dave, you can play youtube video by launching a View intent with the youtube video page url right now on the device (no cupcake or developer key required). It will launch the youtube player. The problem is, it doesn't work in the emulator, since there's no youtube app. Michael On Jan 28, 3:37 pm, Dave Sparks davidspa...@android.com wrote: If you specifically want to play a YouTube video, you need to register as a YouTube developer to get the keys you need to access the Gdata feeds. I think that the Cupcake release will support a new intent for playing YouTube videos with the YouTube app, but it will be some time before that feature makes it into an SDK or actual device. That would remove the need for getting the developer keys. Aside from that, playing a YT video is no different than any other HTTP streamed video. You just pass the URL through setDataSource and the media player does the rest. On Jan 28, 1:42 am, harish harishpres...@gmail.com wrote: Dear All, Using Mediaplayer (Api Demo) example, i was able to play a local video file and also an video mp4 streamed over internet on my android emulator using sdk in my development machine. When i run an youtube video from browser running in an emulator, it asks for to download flash player. Is there any way to play youtube video using mediaplayer or any other alternative methods in android. In emulator session, is it possile to play youtube video. Guys, help me in this. any reference or example of youtube video being played in the emulator using sdk is available. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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] Re: Reg playing youtube video in android
Dave, I tried to play via mediaplayer example given in the sdk with the YouTube video url (http://in.youtube.com/watch?v=l43Bbn2Xpwk), In mediaplayer_video.java file, path=http://in.youtube.com/watch?v=l43Bbn2Xpwk; it failed to play. Any modifications to be done in the mediaplayer to stream youtube video. But when i converted this youtube video into an mp4 or 3gp file and locally try to play, it plays fine. whats the difference between mediaplayer and videoview example given in the sdk. Thanks and Regards, HarishKumar.V On Thu, Jan 29, 2009 at 2:07 AM, Dave Sparks davidspa...@android.comwrote: If you specifically want to play a YouTube video, you need to register as a YouTube developer to get the keys you need to access the Gdata feeds. I think that the Cupcake release will support a new intent for playing YouTube videos with the YouTube app, but it will be some time before that feature makes it into an SDK or actual device. That would remove the need for getting the developer keys. Aside from that, playing a YT video is no different than any other HTTP streamed video. You just pass the URL through setDataSource and the media player does the rest. On Jan 28, 1:42 am, harish harishpres...@gmail.com wrote: Dear All, Using Mediaplayer (Api Demo) example, i was able to play a local video file and also an video mp4 streamed over internet on my android emulator using sdk in my development machine. When i run an youtube video from browser running in an emulator, it asks for to download flash player. Is there any way to play youtube video using mediaplayer or any other alternative methods in android. In emulator session, is it possile to play youtube video. Guys, help me in this. any reference or example of youtube video being played in the emulator using sdk is available. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---