plan about video on download(VOD) framework

by ZhangJieJing » Tue, 04 Aug 2009 01:29:53 GMT


Sponsored Links
 Hello  Everyone,

I'm a developer of android product, I'm working for the online play without
broswer, like some P2P stream player on our device, I heard someone said
that Google's Android Team have some play on that, I want to know is this
true?  or I must make a framework to P2P stream video play.


BTW,
Can anyone give some suggestion about how to share memory with the player
application.
The Normal P2P interface is like p2p_read_request(int fd, char *buf, size_t
request_size, time_t block_time);
fd: this is just the id of cache, maybe some is the file descriptor.
buf: is requesting bufer pointer. the download lib will full fill this
memory.
request_size: is the size of request. the player can get this memory and
play, in some all-in-one player.
block_time, this is the longest time will waiting.

since we have multi p2p download lib from different vendor, so I start a
server to handle all of this.
But I can't find a good way to share memory to the player (they are in
different process).
the cache is controled by download lib.


Thanks.
---
Best regards,
Zhang Jiejing

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



Other Threads

1. iptables command

I try to use iptables commands on my HTC hero.

But the commands have some problems:

# /system/bin/iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination



# /system/bin/iptables -A OUTPUT -d 192.168.11.31 -j ACCEPT
# /system/bin/iptables -L
Chain INPUT (policy ACCEPT)
target          prot opt source               destination

Chain FORWARD (policy ACCEPT)
target          prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target          prot opt source               destination
FIX ME! implement getnetbyaddr() bionic/libc/bionic/stubs.c:366
ACCEPT      0    --    anywhere           192.168.11.31


How to solve this problem?
FIX ME! implement getnetbyaddr() bionic/libc/bionic/stubs.c:366

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. error to include slider in layout (how to include slider)

Hi,

I created a slider  view -

slider_button.xml
----------------------------

<LinearLayout android:id="@+id/slider_layout"
 android:layout_width="fill_parent" android:layout_height="wrap_content"
 xmlns:android="http://schemas.android.com/apk/res/android"
 android:orientation="horizontal" android:gravity="bottom"
android:background="#FFFFFF">
 <SlidingDrawer
     android:layout_width="wrap_content"
     android:id="@+id/SlidingDrawer"
     android:content="@+id/contentLayout"
     android:padding="10dip"
     android:scrollX="10sp"
     android:scrollY="100sp"
     android:layout_height="250dip">

     <Button android:layout_width="wrap_content"
     android:layout_height="wrap_content"
     android:id="@+id/slideHandleButton"
     android:background="@drawable/leftarrow">
     </Button>
         <LinearLayout
             android:layout_width="wrap_content"
             android:id="@+id/button_content"
             android:orientation="horizontal"
             android:gravity="center|top"
             android:padding="10dip"
             android:background="#C0C0C0"
             android:layout_height="wrap_content">

             <Button android:id="@+id/replay_button"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Replay">
            </Button>
             <Button android:id="@+id/replay_all_button"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Replay All">
            </Button>
             <Button android:id="@+id/fowrward_button"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Forward">
            </Button>


        </LinearLayout>
     <Button android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:id="@+id/slideHandleButton"
         android:background="@drawable/rightarrow">
    </Button>
</SlidingDrawer>
</LinearLayout>

I want to include this slider in another layout  -

main.xml -
----------------
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/background_color"

    >
<include layout="@layout/page_edit_mode" android:layout_height="fill_parent"
/>
<include layout="@layout/tabbar" android:layout_height="fill_parent" />

    <View
            android:layout_width="fill_parent"
            android:background="#000000"
            android:layout_height="1dip" />
     <TextView
                    android:id="@+id/message_view_from"
                    android:editable="false"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="1dip"
                    android:gravity="left"
                    android:hint="To :"
                    android:textColor="?android:attr/textColorSecondary"

android:textAppearance="?android:attr/textAppearanceSmall" />
      <View
            android:layout_width="fill_parent"
            android:background="#000000"
            android:layout_height="1dip" />
<include layout="@layout/slider_button" android:layout_height="fill_parent"
/>
</LinearLayout>

-------------------------------
Then i'm calling this main.xml from activity class, I'm getting error

11-02 12:46:00.971: ERROR/AndroidRuntime(710): java.lang.RuntimeException:
Unable to start activity ComponentInfo{com.android.slider/main}:

android.view.InflateException: Binary XML file line #6: Error inflating
class android.widget.SlidingDrawer
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.os.Handler.dispatchMessage(Handler.java:99)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.os.Looper.loop(Looper.java:123)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.ActivityThread.main(ActivityThread.java:4627)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
java.lang.reflect.Method.invokeNative(Native Method)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
java.lang.reflect.Method.invoke(Method.java:521)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
dalvik.system.NativeStart.main(Native Method)
11-02 12:46:00.971: ERROR/AndroidRuntime(710): Caused by:
android.view.InflateException: Binary XML file line #6: Error inflating
class android.widget.SlidingDrawer
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.createView(LayoutInflater.java:513)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.parseInclude(LayoutInflater.java:702)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.rInflate(LayoutInflater.java:614)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:407)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:320)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.inflate(LayoutInflater.java:276)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.Activity.setContentView(Activity.java:1647)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
com.android.slider.main.onCreate(main.java:43)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     ... 11 more
11-02 12:46:00.971: ERROR/AndroidRuntime(710): Caused by:
java.lang.reflect.InvocationTargetException
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.widget.SlidingDrawer.<init>(SlidingDrawer.java:181)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
java.lang.reflect.Constructor.constructNative(Native Method)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
java.lang.reflect.Constructor.newInstance(Constructor.java:446)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.view.LayoutInflater.createView(LayoutInflater.java:500)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     ... 24 more
11-02 12:46:00.971: ERROR/AndroidRuntime(710): Caused by:
java.lang.IllegalArgumentException: The handle attribute is required and
must refer to a valid child.
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     at
android.widget.SlidingDrawer.<init>(SlidingDrawer.java:204)
11-02 12:46:00.971: ERROR/AndroidRuntime(710):     ... 28 more

11-02 12:46:01.050: INFO/MocaLog(710): 02T124601, T14, Sending settings from
client to server, Prop Id: 1, Value: 10.99.29.17

-- 
Thanks & Regards

Rakesh Kumar Jha

-- 

3. Failed to find provider info for android.server.checkin

4. Only 64-bit build environments are supported beyond froyo/2.2.

5. Can anyone recommend a good OpenGL ES book? Options

6. How to use Webview.loadUrl(String url) when my html file is local

7. how to distinguish java process