Autore Topic: RTSP streaming video  (Letto 2750 volte)

Offline perloutta

  • Nuovo arrivato
  • *
  • Post: 8
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    ubuntu 9.04
RTSP streaming video
« il: 01 Maggio 2010, 20:20:13 CEST »
0
buonasera !!
ho riuscito a funzionare il streaming video via un server apache, tutto bene!! ma quando ho usato Darwin Streaming Server (via protocolo RTSP)non riesco a funzionare la stessa video
ecco è il lLogCat:
Citazione
05-01 18:07:27.210: DEBUG/dalvikvm(58): GC freed 10903 objects / 685568 bytes in 619ms
05-01 18:07:28.210: WARN/ResourceType(58): Resources don't contain package for resource number 0x7f0700e5
05-01 18:07:28.210: WARN/ResourceType(58): Resources don't contain package for resource number 0x7f020031
05-01 18:07:28.230: WARN/ResourceType(58): Resources don't contain package for resource number 0x7f020030
05-01 18:07:28.230: WARN/ResourceType(58): Resources don't contain package for resource number 0x7f050000
05-01 18:07:28.289: WARN/ResourceType(58): Resources don't contain package for resource number 0x7f060000
05-01 18:07:28.380: DEBUG/AndroidRuntime(475): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
05-01 18:07:28.430: DEBUG/AndroidRuntime(475): CheckJNI is ON
05-01 18:07:28.460: WARN/ResourceType(58): Resources don't contain package for resource number 0x7f060001
05-01 18:07:28.910: DEBUG/dalvikvm(108): GC freed 743 objects / 40688 bytes in 564ms
05-01 18:07:29.690: DEBUG/AndroidRuntime(475): --- registering native functions ---
05-01 18:07:31.910: DEBUG/ActivityManager(58): Uninstalling process com.pfe.embeddedRichMediaPlayer
05-01 18:07:31.920: INFO/ActivityManager(58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.pfe.embeddedRichMediaPlayer/.MyPlayer }
05-01 18:07:32.130: DEBUG/AndroidRuntime(475): Shutting down VM
05-01 18:07:32.130: DEBUG/dalvikvm(475): DestroyJavaVM waiting for non-daemon threads to exit
05-01 18:07:32.150: DEBUG/dalvikvm(475): DestroyJavaVM shutting VM down
05-01 18:07:32.160: DEBUG/dalvikvm(475): HeapWorker thread shutting down
05-01 18:07:32.170: DEBUG/dalvikvm(475): HeapWorker thread has shut down
05-01 18:07:32.170: DEBUG/jdwp(475): JDWP shutting down net...
05-01 18:07:32.190: INFO/dalvikvm(475): Debugger has detached; object registry had 1 entries
05-01 18:07:32.200: DEBUG/dalvikvm(475): VM cleaning up
05-01 18:07:32.259: ERROR/AndroidRuntime(475): ERROR: thread attach failed
05-01 18:07:32.370: DEBUG/dalvikvm(475): LinearAlloc 0x0 used 637524 of 5242880 (12%)
05-01 18:07:32.600: INFO/ActivityManager(58): Start proc com.pfe.embeddedRichMediaPlayer for activity com.pfe.embeddedRichMediaPlayer/.MyPlayer: pid=482 uid=10025 gids={3003, 1015}
05-01 18:07:33.010: DEBUG/ddm-heap(482): Got feature list request
05-01 18:07:33.289: WARN/ActivityThread(482): Application com.pfe.embeddedRichMediaPlayer is waiting for the debugger on port 8100...
05-01 18:07:33.371: INFO/System.out(482): Sending WAIT chunk
05-01 18:07:33.420: INFO/dalvikvm(482): Debugger is active
05-01 18:07:33.530: INFO/System.out(482): Debugger has connected
05-01 18:07:33.539: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:33.780: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:33.980: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:34.180: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:34.390: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:34.590: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:34.800: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:35.000: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:35.210: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:35.429: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:35.630: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:35.840: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:36.040: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:36.252: INFO/System.out(482): waiting for debugger to settle...
05-01 18:07:36.329: INFO/ActivityManager(58): Killing process com.pfe.embeddedRichMediaPlayer (pid=482) at user's request
05-01 18:07:36.361: INFO/Process(58): Sending signal. PID: 482 SIG: 9
05-01 18:07:36.432: INFO/ActivityManager(58): Process com.pfe.embeddedRichMediaPlayer (pid 482) has died.
05-01 18:07:36.450: ERROR/gralloc(58): [unregister] handle 0x42b410 still locked (state=40000001)
05-01 18:07:36.590: INFO/UsageStats(58): Unexpected resume of com.android.launcher while already resumed in com.pfe.embeddedRichMediaPlayer
05-01 18:07:36.710: WARN/InputManagerService(58): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43cc5e20
05-01 18:07:42.460: DEBUG/dalvikvm(234): GC freed 43 objects / 2128 bytes in 215ms
05-01 18:07:43.840: INFO/ActivityManager(58): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.pfe.embeddedRichMediaPlayer/.MyPlayer bnds=[222,173][308,246] }
05-01 18:07:44.150: INFO/ActivityManager(58): Start proc com.pfe.embeddedRichMediaPlayer for activity com.pfe.embeddedRichMediaPlayer/.MyPlayer: pid=488 uid=10025 gids={3003, 1015}
05-01 18:07:44.530: DEBUG/ddm-heap(488): Got feature list request
05-01 18:07:45.730: DEBUG/ViewFlipper(488): updateRunning() mVisible=true, mStarted=false, mUserPresent=true, mRunning=false
05-01 18:07:46.200: DEBUG/Rich Video Player(488): surfaceCreated called
05-01 18:07:46.209: DEBUG/Rich Video Player(488): surfaceChanged called
05-01 18:07:46.319: INFO/ActivityManager(58): Displayed activity com.pfe.embeddedRichMediaPlayer/.MyPlayer: 2265 ms (total 14183 ms)
05-01 18:07:48.439: WARN/KeyCharacterMap(488): No keyboard for id 0
05-01 18:07:48.450: WARN/KeyCharacterMap(488): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
05-01 18:07:50.690: VERBOSE/Rich Video Player(488): option: 1
05-01 18:07:50.730: INFO/ActivityManager(58): Starting activity: Intent { cmp=com.pfe.embeddedRichMediaPlayer/.Url }
05-01 18:07:51.200: INFO/global(488): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-01 18:07:51.630: INFO/ActivityManager(58): Displayed activity com.pfe.embeddedRichMediaPlayer/.Url: 805 ms (total 805 ms)
05-01 18:07:58.800: VERBOSE/URL address(488): urlVideo: rtsp://10.0.2.2/dailytest.3gp
05-01 18:07:58.810: VERBOSE/URL address(488): urlSlides: http://10.0.2.2/imageTest.jpeg
05-01 18:07:59.130: VERBOSE/Rich Video Player(488): pathVideo: rtsp://10.0.2.2/dailytest.3gp
05-01 18:07:59.140: VERBOSE/Rich Video Player(488): pathSlides: http://10.0.2.2/imageTest.jpeg
05-01 18:07:59.209: VERBOSE/Rich Video Player(488): requestCode : 0
05-01 18:07:59.209: VERBOSE/Rich Video Player(488): pathBis playVideo() : rtsp://10.0.2.2/dailytest.3gp
05-01 18:07:59.209: VERBOSE/Rich Video Player(488): path playVideo() : rtsp://10.0.2.2/dailytest.3gp
05-01 18:07:59.319: VERBOSE/Rich Video Player(488): setDataSource
05-01 18:07:59.350: VERBOSE/Rich Video Player(488): isNetworkUrl
05-01 18:07:59.910: WARN/MediaPlayer(488): info/warning (1, 26)
05-01 18:07:59.930: INFO/MediaPlayer(488): Info (1,26)
05-01 18:07:59.970: ERROR/PlayerDriver(31): Command PLAYER_INIT completed with an error or info PVMFFailure
05-01 18:07:59.980: ERROR/MediaPlayer(488): error (1, -1)
05-01 18:07:59.990: WARN/System.err(488): java.io.IOException: Prepare failed.: status=0x1
05-01 18:08:00.010: WARN/System.err(488):     at android.media.MediaPlayer.prepare(Native Method)
05-01 18:08:00.010: WARN/System.err(488):     at com.pfe.embeddedRichMediaPlayer.MyPlayer$8.run(MyPlayer.java:470)
05-01 18:08:00.020: WARN/System.err(488):     at java.lang.Thread.run(Thread.java:1096)
05-01 18:08:00.030: ERROR/MediaPlayer(488): Attempt to call getDuration without a valid mediaplayer
05-01 18:08:00.030: WARN/PlayerDriver(31): PVMFInfoErrorHandlingComplete
05-01 18:08:00.030: ERROR/MediaPlayer(488): error (-38, 0)
05-01 18:08:00.030: ERROR/MediaPlayer(488): Error (-38,0)
05-01 18:08:00.030: ERROR/Rich Video Player(488): onError--->   what:-38    extra:0
05-01 18:08:00.030: ERROR/MediaPlayer(488): stop called in state 0
05-01 18:08:00.030: ERROR/MediaPlayer(488): error (-38, 0)
05-01 18:08:00.090: VERBOSE/Rich Video Player(488): Duration: ===> 852
05-01 18:08:00.140: WARN/MediaPlayer(488): mediaplayer went away with unhandled events
05-01 18:08:00.299: DEBUG/AndroidRuntime(488): Shutting down VM
05-01 18:08:00.309: WARN/dalvikvm(488): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
05-01 18:08:00.319: ERROR/AndroidRuntime(488): Uncaught handler: thread main exiting due to uncaught exception
05-01 18:08:00.360: ERROR/AndroidRuntime(488): java.lang.IllegalStateException
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at android.media.MediaPlayer.getCurrentPosition(Native Method)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at com.pfe.embeddedRichMediaPlayer.MyPlayer$3.run(MyPlayer.java:682)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at android.os.Handler.handleCallback(Handler.java:587)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at android.os.Handler.dispatchMessage(Handler.java:92)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at android.os.Looper.loop(Looper.java:123)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at android.app.ActivityThread.main(ActivityThread.java:4363)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at java.lang.reflect.Method.invokeNative(Native Method)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at java.lang.reflect.Method.invoke(Method.java:521)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-01 18:08:00.360: ERROR/AndroidRuntime(488):     at dalvik.system.NativeStart.main(Native Method)
05-01 18:08:00.390: INFO/Process(58): Sending signal. PID: 488 SIG: 3
05-01 18:08:00.402: INFO/dalvikvm(488): threadid=7: reacting to signal 3
05-01 18:08:00.440: INFO/dalvikvm(488): Wrote stack trace to '/data/anr/traces.txt'
05-01 18:08:05.370: DEBUG/dalvikvm(108): GC freed 2090 objects / 124736 bytes in 233ms
05-01 18:08:06.650: INFO/Process(488): Sending signal. PID: 488 SIG: 9
05-01 18:08:06.680: INFO/ActivityManager(58): Process com.pfe.embeddedRichMediaPlayer (pid 488) has died.
05-01 18:08:06.680: INFO/WindowManager(58): WIN DEATH: Window{43ce5b08 SurfaceView paused=false}
05-01 18:08:06.870: INFO/WindowManager(58): WIN DEATH: Window{43cdfe38 com.pfe.embeddedRichMediaPlayer/com.pfe.embeddedRichMediaPlayer.MyPlayer paused=false}
05-01 18:08:06.990: INFO/UsageStats(58): Unexpected resume of com.android.launcher while already resumed in com.pfe.embeddedRichMediaPlayer
05-01 18:08:07.480: WARN/InputManagerService(58): Got RemoteException sending setActive(false) notification to pid 488 uid 10025
05-01 18:08:13.380: DEBUG/dalvikvm(208): GC freed 3674 objects / 284112 bytes in 346ms

un'altra domanda
visto che live brodcaster torna solo su Mac OS (quindi non posso fare live streaming) è fattibile con VLC?? cioè posso encodare il flusso video poi metto file.sdp su DSS  e in fine visualizzare il mio live streming via l'emulator??


grazie !!! buona serata a tutti  ;-)

Offline Qlimax

  • Moderatore globale
  • Utente senior
  • *****
  • Post: 757
  • Respect: +202
    • Google+
    • _Qlimax
    • Mostra profilo
    • www.egsolutions.ch
  • Dispositivo Android:
    Galaxy Nexus - Nexus One - Wildfire - Magic
  • Play Store ID:
    egsolutions.ch
  • Sistema operativo:
    Ubuntu 12.04, Windows 7
Re:RTSP streaming video
« Risposta #1 il: 03 Maggio 2010, 18:40:10 CEST »
0
puoi postare il codice che hai usato?
forse riusciamo a capire dove sta il problema :D


Saluti.
Qlimax

Offline perloutta

  • Nuovo arrivato
  • *
  • Post: 8
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    ubuntu 9.04
Re:RTSP streaming video
« Risposta #2 il: 03 Maggio 2010, 18:56:42 CEST »
0
ecco una parte del mio codice, con http funziona bene ma con rtsp no
Codice (Java): [Seleziona]
   
    private void playVideo(int requestCode ) {
        String pathBis= null ;
        Log.v(TAG, "requestCode : " + requestCode);
        switch  (requestCode) {
       
        case ACTIVITYurl_REQUEST:
                pathBis=pathVideo;
                 break;
        case ACTIVITYgallery_REQUEST:
                pathBis =getRealPathFromURI(currVideoURI);
                break;
                 
        }
       
        try {
                 mPlayPause.setEnabled(false);
           final String  path = pathBis;
           Log.v(TAG, "pathBis playVideo() : " + pathBis);
            Log.v(TAG, "path playVideo() : " + path);

            // If the path has not changed, just start the media player
            if (path.equals(current) && mp != null) {
                mp.start();
                return;
            }
            current = path;

            // Create a new media player and set the listeners
            mp = new MediaPlayer();
            mp.setOnErrorListener(this);
            mp.setOnBufferingUpdateListener(this);
            mp.setOnCompletionListener(this);
            mp.setOnPreparedListener(this);
            //mp.setOnVideoSizeChangedListener((OnVideoSizeChangedListener) this);//////////////
            mp.setAudioStreamType(2);

            // Set the surface for the video output
            //mp.setDisplay(mPreview.getHolder().getSurface());
            mp.setDisplay(holder);  //
            //mp.setDisplay(mPreview.getHolder());


            // Set the data source in another thread
            // which actually downloads the mp3 or videos
            // to a temporary location
            Runnable r = new Runnable() {
                public void run() {
                    try {
                        setDataSource(path);
                    }
                    catch (IOException e) {
                        Log.e(TAG, e.getMessage(), e);
                    }
                   
                   
                    try {
                                                mp.prepare();
                                        } catch (IllegalStateException e) {
                                                // TODO Auto-generated catch block
                                                e.printStackTrace();
                                        } catch (IOException e) {
                                                // TODO Auto-generated catch block
                                                e.printStackTrace();
                                        }
                        //mp.prepareAsync();
                        Log.v(TAG, "Duration: ===> " + mp.getDuration());
                   
                   
                }
            };
            new Thread(r).start();
           
           
        } catch (Exception e) {
            Log.e(TAG, "error: " + e.getMessage(), e);
            if (mp != null) {
                mp.stop();
                mp.release();
                timeline.setProgress(0);
               
                mPlayPause.setImageResource(R.drawable.ic_media_play); /// celle la!!!
            }
        }
   
       
    }
    ///fin playvideo//////////////////////////////////////////////
   
   
   
    /**
     * If the user has specified a local url, then we download the
     * url stream to a temporary location and then call the setDataSource
     * for that local file
     *
     * @param path
     * @throws IOException
     */

    private void setDataSource(String path) throws IOException {
        Log.v(TAG, "setDataSource");
        if (!URLUtil.isNetworkUrl(path)) {
                 Log.v(TAG, "isNetworkUrl");
            mp.setDataSource(path);
        } else {
                Log.v(TAG, "path setDataSource:" + path);
            URL url = new URL(path);
            URLConnection cn = url.openConnection();
            cn.connect();
            InputStream stream = cn.getInputStream();
            if (stream == null)
                throw new RuntimeException("stream is null");
            File temp = File.createTempFile("mediaplayertmp", "dat");
            temp.deleteOnExit();
            String tempPath = temp.getAbsolutePath();
            FileOutputStream out = new FileOutputStream(temp);
            byte buf[] = new byte[128];
            do {
                int numread = stream.read(buf);
                if (numread <= 0)
                    break;
                out.write(buf, 0, numread);
            } while (true);
            mp.setDataSource(tempPath);
            try {
                stream.close();
            }
            catch (IOException ex) {
                Log.e(TAG, "error: " + ex.getMessage(), ex);
            }
        }
    }
   
   
    ///////////////////////////////////////////////////////////////////
   
    public boolean onError(MediaPlayer mediaPlayer, int what, int extra) {
        Log.e(TAG, "onError--->   what:" + what + "    extra:" + extra);
        if (mediaPlayer != null) {
            mediaPlayer.stop();
            mediaPlayer.release();
            timeline.setProgress(0);
            //mPlayPause.setImageResource(R.drawable.ic_media_play);
            return true;
        }
        else return false;
    }

    public void onBufferingUpdate(MediaPlayer arg0, int percent) {
        Log.d(TAG, "onBufferingUpdate called --->   percent:" + percent);
    }

    public void onCompletion(MediaPlayer arg0) {
        Log.d(TAG, "onCompletion called");
        mPlayPause.setEnabled(false);
       
    }

    public void onPrepared(MediaPlayer mp) {
        Log.d(TAG, "onPrepared called" );
       
        //width=mp.getVideoWidth();
        //height=mp.getVideoHeight();

        //if (width!=0 && height!=0) {
        //holder.setFixedSize(width, height);
        timeline.setProgress(0);
        timeline.setMax(mp.getDuration());
       
        mPlayPause.setEnabled(true);
       
        //}
        //dismissDialog  (DIALOG1_KEY);
        mp.start();
        mPlayPause.setImageResource(R.drawable.ic_media_pause);
    }
   
   
    @Override
    protected void onResume() {
    super.onResume();
    isPaused=false;
    mPreview.postDelayed(onEverySecond, 1000);
    }
   
    protected void onPause() {
        super.onPause();
        isPaused=true;
    }
   
    @Override
    protected void onDestroy() {
    super.onDestroy();

    if (mp!=null) {
    mp.release();
    mp=null;
 
    }

   
    }
« Ultima modifica: 03 Maggio 2010, 19:18:49 CEST da JD, Reason: code=java »

Offline perloutta

  • Nuovo arrivato
  • *
  • Post: 8
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    ubuntu 9.04
Re:RTSP streaming video
« Risposta #3 il: 04 Maggio 2010, 18:14:19 CEST »
0
ciao,
infatti ho provato di testare il live streaming via VLC (con commad line) e il flusso di video proviene della mia webcam, ma non funziona  :-(
Citazione
05-04 15:32:10.071: DEBUG/dalvikvm(621): GC freed 2780 objects / 162232 bytes in 395ms
05-04 15:32:10.992: WARN/KeyCharacterMap(693): No keyboard for id 0
05-04 15:32:11.215: WARN/KeyCharacterMap(693): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
05-04 15:32:15.281: VERBOSE/Rich Video Player(693): option: 1
05-04 15:32:15.491: INFO/ActivityManager(52): Starting activity: Intent { cmp=com.pfe.embeddedRichMediaPlayer/.Url }
05-04 15:32:17.701: INFO/global(693): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
05-04 15:32:19.361: INFO/ActivityManager(52): Displayed activity com.pfe.embeddedRichMediaPlayer/.Url: 3365 ms (total 3365 ms)
05-04 15:32:31.661: WARN/ActivityManager(52): Activity pause timeout for HistoryRecord{43cfee38 com.pfe.embeddedRichMediaPlayer/.Url}
05-04 15:32:33.111: VERBOSE/Rich Video Player(693): requestCode : 0
05-04 15:32:33.121: VERBOSE/Rich Video Player(693): pathBis playVideo() : rtsp://10.0.2.2/channel.sdp
05-04 15:32:33.121: VERBOSE/Rich Video Player(693): path playVideo() : rtsp://10.0.2.2/channel.sdp
05-04 15:32:33.261: VERBOSE/Rich Video Player(693): setDataSource
05-04 15:32:33.331: VERBOSE/Rich Video Player(693): isNetworkUrl
05-04 15:32:34.321: WARN/PlayerDriver(31): Using generic video MIO
05-04 15:32:35.511: INFO/PlayerDriver(31): buffering (0)
05-04 15:32:36.471: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:36.521: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:36.531: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:36.531: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:37.511: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:37.692: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:37.771: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:37.841: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:38.151: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:38.411: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:38.481: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:38.501: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:38.631: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:38.661: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:39.501: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:39.571: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:39.921: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:39.991: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:40.535: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:40.631: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:40.711: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:40.981: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.001: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.081: DEBUG/dalvikvm(203): GC freed 3531 objects / 277192 bytes in 11 sec
05-04 15:32:41.081: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.091: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.091: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.291: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.382: WARN/ActivityManager(52): Launch timeout has expired, giving up wake lock!
05-04 15:32:41.512: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.561: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.701: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:41.711: WARN/ActivityManager(52): Activity idle timeout for HistoryRecord{43ce7498 com.pfe.embeddedRichMediaPlayer/.MyPlayer}
05-04 15:32:41.951: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:42.131: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:42.441: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:42.651: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:43.591: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:43.678: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:43.861: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:44.061: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:44.241: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:44.511: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:44.641: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:44.831: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:45.071: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:45.221: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:45.571: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:45.618: INFO/PlayerDriver(31): buffering (0)
05-04 15:32:45.691: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:45.971: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:46.231: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:46.301: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:46.557: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:46.704: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:46.951: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:47.152: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:47.381: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:47.553: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:47.782: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:48.041: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:48.331: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:48.391: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:48.791: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:48.881: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:49.051: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:49.350: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:49.533: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:49.761: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:49.881: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:50.165: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:50.411: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:50.662: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:50.956: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:51.065: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:51.522: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:51.550: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:51.711: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:52.061: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:52.211: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:52.492: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:52.771: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:52.871: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:53.281: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:53.381: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:53.581: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:53.811: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:54.341: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:54.362: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:54.561: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:54.741: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:54.921: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:55.201: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:55.331: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:55.623: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:55.751: INFO/PlayerDriver(31): buffering (0)
05-04 15:32:55.835: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:56.041: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:56.223: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:56.531: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:56.671: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:56.852: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:57.091: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:57.421: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:57.585: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:57.761: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0
05-04 15:32:57.941: DEBUG/Rich Video Player(693): onBufferingUpdate called --->   percent:0

ho letto in altri forum che la problema è nel emulator  perchè non puo leggere packet UDP e che  se ci fa la prova direttamente nel  telefonino fuonziona
è vero questo???

grazie

Offline JD

  • Amministratore
  • Utente storico
  • *****
  • Post: 1600
  • Respect: +232
    • leinardi
    • Mostra profilo
  • Dispositivo Android:
    LG Nexus 5
  • Sistema operativo:
    L'ultima Ubuntu
Re:RTSP streaming video
« Risposta #4 il: 04 Maggio 2010, 18:22:34 CEST »
0
ho letto in altri forum che la problema è nel emulator  perchè non puo leggere packet UDP e che  se ci fa la prova direttamente nel  telefonino fuonziona
è vero questo???

Non sembra tanto un problema di tipo di protocollo (UDP/TCP) quanto di configurazione del port forwarding: Android never receives UDP packet - Stack Overflow
È stata trovata una soluzione al tuo problema?
Evidenzia il post più utile premendo . È un ottimo modo per ringraziare chi ti ha aiutato ;).
E se hai aperto tu il thread marcalo come risolto cliccando !

Offline perloutta

  • Nuovo arrivato
  • *
  • Post: 8
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    ubuntu 9.04
Re:RTSP streaming video
« Risposta #5 il: 04 Maggio 2010, 18:28:51 CEST »
0
allora secondo te da dove puo essere il problema?? pero via http funzionava bene
perchè non riesce a fare il buffering??

Offline JD

  • Amministratore
  • Utente storico
  • *****
  • Post: 1600
  • Respect: +232
    • leinardi
    • Mostra profilo
  • Dispositivo Android:
    LG Nexus 5
  • Sistema operativo:
    L'ultima Ubuntu
Re:RTSP streaming video
« Risposta #6 il: 04 Maggio 2010, 18:32:48 CEST »
0
Ma via HTTP funziona bene accedendo a risorse all'interno della tua LAN o l'hai provato solo con risorse disponibili su Internet?
Se riesci ad accedere a risorse internet alla tua LAN allora è strano, se invece l'hai testato solo con risorse prese dal web allora il problema probabilmente sarà dovuto alla configurazione dell'emulatore.
È stata trovata una soluzione al tuo problema?
Evidenzia il post più utile premendo . È un ottimo modo per ringraziare chi ti ha aiutato ;).
E se hai aperto tu il thread marcalo come risolto cliccando !

Offline perloutta

  • Nuovo arrivato
  • *
  • Post: 8
  • Respect: 0
    • Mostra profilo
  • Sistema operativo:
    ubuntu 9.04
Re:RTSP streaming video
« Risposta #7 il: 04 Maggio 2010, 18:38:13 CEST »
0
ho installato apache server e ho fatto il test in locale, e anche per il live streaming ho fatto il test in locale, ( rtsp://10.0.2.2/channel.sdp) (cioè vlc la webcam e l'applicazione nello stesso computer)

Offline JD

  • Amministratore
  • Utente storico
  • *****
  • Post: 1600
  • Respect: +232
    • leinardi
    • Mostra profilo
  • Dispositivo Android:
    LG Nexus 5
  • Sistema operativo:
    L'ultima Ubuntu
Re:RTSP streaming video
« Risposta #8 il: 04 Maggio 2010, 18:40:12 CEST »
0
Allora non so proprio che suggerirti :(
Vediamo se qualcun altro saprà darci una mano.
È stata trovata una soluzione al tuo problema?
Evidenzia il post più utile premendo . È un ottimo modo per ringraziare chi ti ha aiutato ;).
E se hai aperto tu il thread marcalo come risolto cliccando !