[android-developers] Re: MediaPlayer StreamVideo question.
Possible solutions to this are google-able. On Jan 10, 5:27 pm, Scott Deutsch surger...@gmail.com wrote: So, I gave up on that MediaPlayer Class...too complicated to handle streams. For now I am going to use Youtube. Now, is it possible to Launch the YouTube player and not having the option to pick Browser or YouTube Playerjust go directly to the player? Thanks. -- 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: MediaPlayer StreamVideo question.
Hi, i did that...thats why my program launches youtube (cause i found examples of that). But, it shows a dialog asking the user to pick between Youtube player and the browser. I just want to know if you can eliminate that box and only use the youtube player. I will keep looking on google. but if someone knows off the top of their heads...let me know. Thanks. On Jan 11, 3:04 pm, Doug beafd...@gmail.com wrote: Possible solutions to this are google-able. On Jan 10, 5:27 pm, Scott Deutsch surger...@gmail.com wrote: So, I gave up on that MediaPlayer Class...too complicated to handle streams. For now I am going to use Youtube. Now, is it possible to Launch the YouTube player and not having the option to pick Browser or YouTube Playerjust go directly to the player? Thanks. -- 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: MediaPlayer StreamVideo question.
Mark, I will take a look at that and try out the progressbar thingy. Now for my other issue with streaming the video (it is laggy...cause it catches up to real time then it needs to buffer more), what would be the best solution group? I would like to check how much buffered then play it at a certain percentage, but when it catches up, I would pause the video until it buffers more then it would resume. Or, what would be a better solution. Another solution could be downloading temp files, but I want your guys take on that also. My ears are open on this subject since I never tackled something like this before. Thanks a bunch group. On Jan 9, 8:34 am, Mark Murphy mmur...@commonsware.com wrote: On Sun, Jan 9, 2011 at 11:20 AM, Scott Deutsch surger...@gmail.com wrote: Ok, so now it streams the video. Thanks. But now the problem is, how can I put a buffering bar on top of the surfaceview so they know when it will play. Use a ProgressBar. Put it and the SurfaceView in RelativeLayout, with the ProgressBar a later child, so it stacks on top in the Z-axis. Here is a sample project designed to demonstrate streaming video with such a custom controller: https://github.com/commonsguy/vidtry (note: I haven't tried this app in a long time, so there may be minor issues) Also, how can I make it so that it doesn't skip like crazy. Like check how muched buffered and if it is 10% resume play and if it catches up...pause. I haven't seen it skip ever, so I can't comment on that, sorry. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in London:http://bit.ly/smand1andhttp://bit.ly/smand2 -- 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: MediaPlayer StreamVideo question.
Mark, so the ProgressBar going on top of the SurfaceView worked. Actually all I had to do was: ?xml version=1.0 encoding=utf-8? FrameLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent SurfaceView android:id=@+id/vid android:layout_gravity=center android:layout_width=match_parent android:layout_height=match_parent /SurfaceView ProgressBar android:id=@+id/ProgressBar01 style=?android:attr/progressBarStyleHorizontal android:layout_width=fill_parent android:layout_weight=1 android:layout_height=wrap_content android:paddingLeft=2px android:layout_gravity=center|bottom/ /FrameLayout So, now I just need help to fix the lagging streaming video. Thanks group. -- 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: MediaPlayer StreamVideo question.
Any reason why you couldn't post your videos to YouTube and let the (often built-in) YouTube app or its mobile HTML5 web site figure out what to do with them? The bonus is that you do no extra coding, your app stays smaller, and people have the option to view them in higher quality on their desktop. Doug -- 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: MediaPlayer StreamVideo question.
Well, I wanted to control the vids on my own domain,,,but if it comes to thati might do that. But, for now I am trying to get it to stream on my android using MediaPlayerI mean it does, but really choppy. Any ideas? Thanks. -- 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: MediaPlayer StreamVideo question.
So, I gave up on that MediaPlayer Class...too complicated to handle streams. For now I am going to use Youtube. Now, is it possible to Launch the YouTube player and not having the option to pick Browser or YouTube Playerjust go directly to the player? Thanks. -- 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: MediaPlayer StreamVideo question.
Ok, so now it streams the video. Thanks. But now the problem is, how can I put a buffering bar on top of the surfaceview so they know when it will play. Also, how can I make it so that it doesn't skip like crazy. Like check how muched buffered and if it is 10% resume play and if it catches up...pause. What is the best way to do that? Thanks again Mark. On Jan 9, 4:01 am, Mark Murphy mmur...@commonsware.com wrote: Step #1: Use lowercase http in URLs. Step #2: Don't use an emulator, use hardware. Step #3: Make sure the extension matches the actual file format. Step #4: Use LogCat (via DDMS or adb logcat) to look at any warnings that might be emitted by the multimedia subsystem. On Sat, Jan 8, 2011 at 9:25 PM, Scott Deutsch surger...@gmail.com wrote: I did what you said. Instead of a file for the local path, replaced it with HTTP://.../test.3gp .. = URI uri = Uri.parse(HTTP://./test.3gp); the file format i used was .3gp? Ignore the . I had a real domain name in there. mMediaPlayer.setDataSource(this, uri); And no luck. It does not play it. Any ideas? thanks friends. -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 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
Re: [android-developers] Re: MediaPlayer StreamVideo question.
On Sun, Jan 9, 2011 at 11:20 AM, Scott Deutsch surger...@gmail.com wrote: Ok, so now it streams the video. Thanks. But now the problem is, how can I put a buffering bar on top of the surfaceview so they know when it will play. Use a ProgressBar. Put it and the SurfaceView in RelativeLayout, with the ProgressBar a later child, so it stacks on top in the Z-axis. Here is a sample project designed to demonstrate streaming video with such a custom controller: https://github.com/commonsguy/vidtry (note: I haven't tried this app in a long time, so there may be minor issues) Also, how can I make it so that it doesn't skip like crazy. Like check how muched buffered and if it is 10% resume play and if it catches up...pause. I haven't seen it skip ever, so I can't comment on that, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- 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