Video Streaming Using Darwin Streaming Server(DSS) through Ethernet LAN

88 views
Skip to first unread message

saha devan

unread,
Apr 11, 2011, 7:16:39 AM4/11/11
to android-x86, android-d...@googlegroups.com, android-...@googlegroups.com
 I have my Blaze board running Gingerbread, Connected to my Desktop 
and i am able to ping from PC to Board. Installed DSS on Desktop and i am successful in testing with VLC ( by playing  rtsp://"+DSS-IP +"/"+"sample_50kbit.3gp").

How do i connect DSS with android through Ethernet LAN? 

I tried the following code but its not working. Whats the problem with 
following code? 

try 

  for (Enumeration<NetworkInterface> en = NetworkInterface 
                    .getNetworkInterfaces(); en.hasMoreElements();) 
  { 
                NetworkInterface intf = en.nextElement(); 

                if (intf.getName().startsWith("eth")) 
                { 

                    try 
                    { 
                    mMediaPlayer = new MediaPlayer(); 
                    mMediaPlayer.setDataSource("rtsp://"+DSS-IP 
+"/"+"sample_50kbit.3gp"); 
                    mMediaPlayer.setDisplay(holder); 
                    mMediaPlayer.prepare(); 
                    mMediaPlayer.setOnBufferingUpdateListener(this); 
                    mMediaPlayer.setOnCompletionListener(this); 
                    mMediaPlayer.setOnPreparedListener(this); 
                    mMediaPlayer.setOnVideoSizeChangedListener(this); 

mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); 
                    mMediaPlayer.setLooping(true); 
                   } 
                    catch (Exception e) 
                  { 
                     Log.e(TAG, "error: " + e.getMessage(), e); 
                  } 

          } 
  } 



catch (SocketException ex) 
 {      } 

Ricardo Silva

unread,
Apr 27, 2012, 7:00:07 AM4/27/12
to andro...@googlegroups.com, android-d...@googlegroups.com, android-...@googlegroups.com
Hi,

Did you found a way to play RTSP on Android-x86 using VideoView?

Thanks
Reply all
Reply to author
Forward
0 new messages