I have my Blaze board running Gingerbread, Connected to my Desktop
and i am able to ping from PC to Board.

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)
 {      }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to