[android-developers] Re: Multicast Receive

2012-01-19 Thread Dalvin
Did you get the solution for this ?

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

[android-developers] Re: Multicast Receive

2011-09-28 Thread Jasleen Kaur
Thnx for the reply.

But , I dont think that it is a problem of the device as I am able to
play the same RTSP stream using VLC player and Media player on the
same device.

This is my effort to play the RTSP stream manually by handshaking
first , then receiving the video UDP packets.

I am really directionless on how should I go about getting the
multicast data.


- Jasleen


On Sep 24, 2:41 am, rp.circ rpress...@circadence.com wrote:
 It seems that receiving multi-cast may be a problem forsome devices:

 http://stackoverflow.com/questions/3623143/multicast-on-android-2-2

 And being that you have it working on other platforms...It would be
 great if you could get shark for root on your phone to actually see if
 the packets are making it to you.

 On Sep 21, 5:00 am, Jasleen Kaur kjasl...@rediffmail.com wrote:







  We have been trying to write a rtsp streaming client for Android
  platform in Eclispe.
  we are able to do the handshaking, i.e Describe, Setup, Play requests
  have been sucessfully communicated.
  Now i have chosen to receive the Multicast UDP data packets after PLAY
  command.

  The problem is that I am unable to receive the UDP multicast data...in
  the emulator as well as Android device, but am able to receive the UDP
  packets in a java based app and a .Net based app.

                                                         wifi =
  (WifiManager) getSystemService(getApplicationContext().WIFI_SERVICE);
                                                         mLock =
  wifi.createMulticastLock(mylock);

  mLock.setReferenceCounted(true);

  mLock.acquire();

                                                        MulticastSocket
  sock;

                                                        InetAddress sessAddr =
  InetAddress.getByName(234.2.128.12);
                                                        sock = new 
  MulticastSocket(1100);          //
  48180);

                                                        byte b = 64;
                                                        sock.setTTL(b);
                                                        
  sock.joinGroup(sessAddr);

                                                        byte[] byData = new 
  byte[500];
                                                        DatagramPacket pack = 
  new DatagramPacket(byData, 500);

                                                        sock.receive(pack);

  Plus i have added the following tags to the manifest

          uses-permission android:name=android.permission.INTERNET /

          uses-permission
  android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE /
          uses-permission 
  android:name=android.permission.ACCESS_WIFI_STATE /

  The program gets stuck on the receive statement.
  Pls suggest.

  Best Regards
  Jasleen

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


[android-developers] Re: Multicast Receive

2011-09-23 Thread rp.circ
It seems that receiving multi-cast may be a problem forsome devices:

http://stackoverflow.com/questions/3623143/multicast-on-android-2-2

And being that you have it working on other platforms...It would be
great if you could get shark for root on your phone to actually see if
the packets are making it to you.

On Sep 21, 5:00 am, Jasleen Kaur kjasl...@rediffmail.com wrote:
 We have been trying to write a rtsp streaming client for Android
 platform in Eclispe.
 we are able to do the handshaking, i.e Describe, Setup, Play requests
 have been sucessfully communicated.
 Now i have chosen to receive the Multicast UDP data packets after PLAY
 command.

 The problem is that I am unable to receive the UDP multicast data...in
 the emulator as well as Android device, but am able to receive the UDP
 packets in a java based app and a .Net based app.

                                                        wifi =
 (WifiManager) getSystemService(getApplicationContext().WIFI_SERVICE);
                                                        mLock =
 wifi.createMulticastLock(mylock);

 mLock.setReferenceCounted(true);

 mLock.acquire();

                                                       MulticastSocket
 sock;

                                                       InetAddress sessAddr =
 InetAddress.getByName(234.2.128.12);
                                                       sock = new 
 MulticastSocket(1100);          //
 48180);

                                                       byte b = 64;
                                                       sock.setTTL(b);
                                                       
 sock.joinGroup(sessAddr);

                                                       byte[] byData = new 
 byte[500];
                                                       DatagramPacket pack = 
 new DatagramPacket(byData, 500);

                                                       sock.receive(pack);

 Plus i have added the following tags to the manifest

         uses-permission android:name=android.permission.INTERNET /

         uses-permission
 android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE /
         uses-permission android:name=android.permission.ACCESS_WIFI_STATE /



 The program gets stuck on the receive statement.
 Pls suggest.

 Best Regards
 Jasleen

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


[android-developers] Re: Multicast receive broken in Android 1.5?

2009-07-30 Thread pierre

Same issue here too.

When I retrieve my kernel config file from my Cupcake-upgraded G1
device (by using adb pull /proc/config.gz .) and when I look for
CONFIG_IP_MULTICAST, then I find the following line:
# CONFIG_IP_MULTICAST is not set
Therefore I guess that multicast is disabled in the kernel.
It would be interresting to check with a G1 which has not been
upgraded to Cupcake.
If CONFIG_IP_MULTICAST=yes is found, it would confirm that the
kernel has lost IP Multicast during the Cupcake upgrade.

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



[android-developers] Re: Multicast receive broken in Android 1.5?

2009-07-23 Thread Droid123

Same issue here. Any updates?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Multicast receive broken in Android 1.5?

2009-06-22 Thread Jonas Ådahl

I have the same problem after upgrading to 1.5, and it seems it's
because the IP Multicast join packet is never sent out. I reported the
bug here: http://code.google.com/p/android/issues/detail?id=2917

On May 31, 11:38 am, Dave d...@devbury.com wrote:
 I have an application that sends and receives DatagramPackets on a
 MulticastSocket.  This application works fine on Android 1.1.  I just
 loaded the application onto Android 1.5 and it can no longer receive
 packets from other hosts.  It can receive the packets that it sends
 out though.  Packets sent from android 1.5 do make it to other hosts.
 Did something change in 1.5 or is something broken?

 I'm using the dev phone 1 and not the emulator.

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