Error playing YouTube video in my application

by awwa » Mon, 27 Apr 2009 16:34:51 GMT


Sponsored Links
 I'm trying to play streaming video(*.3gp) with android SDK 1.5 pre.
I have customized the APIDemo -> VideoViewDemo.java.
Specify the "path" to the URL of rtsp.
I got the URL from the following URL.
-- http://gdata.youtube.com/feeds/api/videos?vq=8ZsML4uWoiw 
I used the following URL(*.3gp)
--
path = "rtsp://rtsp2.youtube.com/
CiILENy73wIaGQksopaLLwyb8RMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp"

But following error has occur.
Please help me what is happen.

----
04-27 07:10:24.238: WARN/ActivityManager(587): Launch timeout has
expired, giving up wake lock!
04-27 07:10:24.265: WARN/ActivityManager(587): Activity idle timeout
for HistoryRecord{43603ba0 {com.example.android.apis/
com.example.android.apis.media.VideoViewDemo}}
04-27 07:10:27.975: ERROR/PlayerDriver(972): HandleInformationalEvent:
type=28 UNHANDLED
04-27 07:10:28.584: WARN/PlayerDriver(972): Using generic video MIO
04-27 07:10:44.975: ERROR/PlayerDriver(972): Command PLAYER_PREPARE
completed with an error or info PVMFFailure
04-27 07:10:44.985: ERROR/MediaPlayer(1095): error (1, -1)
04-27 07:10:44.995: ERROR/MediaPlayer(1095): Error (1,-1)
04-27 07:10:45.515: WARN/PlayerDriver(972):
PVMFInfoErrorHandlingComplete
----

I have confirmed the local *.3gp file is enable to play with this
code.
path = "/sdcard/747.3gp"

--~--~---------~--~----~------------~-------~--~----~



Error playing YouTube video in my application

by Dave Sparks » Tue, 28 Apr 2009 05:26:56 GMT


 I assume this in the emulator. I believe the issue is that the
emulator does not forward the UDP packets you need for the RTP
session. This should work on a real device.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Error playing YouTube video in my application

by awwa » Tue, 28 Apr 2009 13:58:38 GMT


 Thanks for your replying.
The issue is certainly in the emulator.
(I have no device of 1.5 android yet.)
I will try this in the real device after getting it.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to make the touchscreen poll-scroll-action normally?

Hi All,

I really feel disapointed!

I am using WM9712 touchsceen, the dirver is shipped from the platform
provider, After I porting the android to the device, the touchscreen
works basically, CLICK ICON ACTION IS OK.

But when there is a VERTICAL SCROLLBAR  on the screen, the PULL DOWN/
UP ACTION is so clumsy. When I pull the screen to the bottom , it is
hard for me to pull it to the top again, and sometimes a PULL action
will trigger a CLICK action, it should not be so sensitively.

Then I do some calibration, follow 
http://home.androidin.com/space.php?uid=17708&do=blog&id=21,
but nothing can I improve.

Can anybody told me how to improve it?

Thanks a lot in advance!

Max
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Setting a Dialog width to fill screen?

Hey folks,

I've created a custom class that extends Dialog and have a custom view
I use inside it.  When the dialog is activated, it looks like this:

http://img.waffleimages.com/278aad1d375a3e73c87189beac335c5d7100c8b5/device.png

It only seems to increase in width as I type into text boxes.  I've
tried to override the layout attributes of the dialog below, but it
still doesn't seem to stretch out to fit the screen.  I've also
included the XML for the view I want inside the dialog.

Can anyone suggest anything?

@Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                this.setTitle("Create New List");
                setContentView(R.layout.dialog_create_new_list);
                LayoutParams params = getWindow().getAttributes();
                params.height = LayoutParams.FILL_PARENT;
                getWindow().setAttributes(params);
                .....
                .....


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
            android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:theme="@android:style/Theme.Dialog">
<ScrollView
            android:layout_width="fill_parent"
        android:layout_height="wrap_content">
  <LinearLayout
            android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">

            <TextView
                android:id="@+id/label_enter_list_name"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Enter List Name" />
            <EditText
                android:id="@+id/edit_enter_list_name"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />
            <TextView
                android:id="@+id/label_select_list_type"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Select List Type" />
            <Spinner
                android:id="@+id/spinner_select_list_type"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />
            <TextView
                android:id="@+id/label_enter_list_description"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Enter List Description" />
            <EditText
                android:id="@+id/edit_enter_list_description"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content" />
            <TextView
                android:id="@+id/label_pick_list_icon"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="Pick List Icon" />
            <ImageButton
                android:id="@+id/imagebutton_pick_list_icon"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:src="@drawable/icon" />
            <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <Button
          android:id="@+id/button_create_new_list"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="Create List" />
        <Button
          android:id="@+id/button_cancel_new_list"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="Cancel" />
      </LinearLayout>
</LinearLayout>
</ScrollView>
</LinearLayout>
--~--~---------~--~----~------------~-------~--~----~

3. Enable Upload on Android's Browser

4. Working through Notepad Tutorial - Problems...

5. It's a Gift , Keep it

6. Babylon Pro 7.5.2 (r5)

7. Question about spinner and quick text search.