Results 1 to 7 of 7
  1. #1
    kievari is offline Member
    Join Date
    Nov 2009
    Posts
    28
    Rep Power
    0

    Default story of a robot who needs video streaming...

    Hi,

    (I'm not an English native speaker!)

    I've seen someone got two toy cars, made a wireless connection and video broadcasting from his web camera so that people could open his web site and play with cars which where at his home on the table.

    I managed to make something similar. In first try I built a toy car and a point to point client server that facilitated the robot commanding via internet. This is his photo:


    After playing enough came board enough! Now I want more :D The next project was to make the toy more complex and go cloud computing a little bit.

    I came up with a new toy configuration:


    First passed some tutorials on XMPP and set up a google app engine free account.

    The primary try was limited to only one person being able to command the bot. This time I'd like to broadcast finally the web camera and the way that many people could brows and see the live video from a web site, while one person gets the control and command the bot. Others who are willing to get the control will stay on the waiting list.

    Here comes the gap: I don't know how to implement video streaming, this is my first try!

    The configuration I'm imagining now:
    1. A PC with web camera has the java server, broadcasting the web camera
    2. stream goes only to my google apps engine
    3. clients get service from google apps engine, my account, which will be served on a web site as google apps has this facility like:
    http://subdomain.myDomain.com

    This is my abstract imagination. I think may be to use the XMPP as the protocol from google apps engine program, but I have only experience with simple chat. One option is to read documentation of Google Talk and implement its service for that side.

    The other two fundamental questions I have:
    1. where is a simple tutorial with java web camera video streaming? googling didn't gave the easy way to try an implementation. I found about JMF, but I think I found old info and there are better new ways?
    2. if one point is the java server on my machine and the next point is google apps engine, what are best technologies to use so that video stream to google apps account and from there any user could connect (via XMPP?) and get the video ok, without too much frame lost, etc.?

    If possible please point me to good resources you know and give kind comments.

    Thank you,
    Toy creator :D

  2. #2
    Horcrux7 is offline Member
    Join Date
    Sep 2010
    Posts
    33
    Rep Power
    0

    Default

    I think it is not possible. First it is only possible to make client server request instead a socket connection. This problem can be solve with some large coding. But I think the google cloud license disallowed vidow and telephony applications.

    Another think is if you want google only for communication to create the socket. I think the socket should be a direct connection between source and destination. This required that one of this sides can be reachable through the filewall.
    Volker Berlin
    www.inetsoftware.de

  3. #3
    kievari is offline Member
    Join Date
    Nov 2009
    Posts
    28
    Rep Power
    0

    Default

    So, do you see a practical side? If not to use the google service, what solution do you see to be most practical (not very hard to implement) please?

  4. #4
    Horcrux7 is offline Member
    Join Date
    Sep 2010
    Posts
    33
    Rep Power
    0

    Default

    If you want a client-server-client communication instead of a client-client communication then you need an environment where you can start your own ServerSocket. You can not base it on a servlets. You need a server where you can installed your own Java programs.

    Another option can be the very new WebSocket. With WebSockets you can implements streaming. The Jetty Server 7.0.1 implements it.

    Also the coming Servlet 3.0 Async API can be a possible solution.

    I have never use one of it. I would prefer a client-client communication arrange from the server.
    Volker Berlin
    www.inetsoftware.de

  5. #5
    kievari is offline Member
    Join Date
    Nov 2009
    Posts
    28
    Rep Power
    0

    Default

    Thank you for the answer,

    So by client-client "from the server" you mean that clients declare their IP on the server and server connects them point to point right? I.e. the server is just playing a point to point manager role?

    Shall I use the WebSockets on google apps engine? Could you please point me to some tutorial for starting with, please?

  6. #6
    Horcrux7 is offline Member
    Join Date
    Sep 2010
    Posts
    33
    Rep Power
    0

    Default

    > So by client-client "from the server" you mean that clients declare their IP on the server and server connects them point to point right? I.e. the server is just playing a point to point manager role?

    Yes, I means.


    > Shall I use the WebSockets on google apps engine? Could you please point me to some tutorial for starting with, please?

    Google support already WebSockets? Wau! I have give you some keywords. Search on the web for more information. For this you can use Google.
    Volker Berlin
    www.inetsoftware.de

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

Similar Threads

  1. video streaming
    By anniya0n in forum JDBC
    Replies: 3
    Last Post: 05-08-2013, 03:21 PM
  2. J2ME/Android Video Streaming Project
    By mox27 in forum Forum Lobby
    Replies: 4
    Last Post: 04-06-2009, 08:48 AM
  3. Capturing video with Robot
    By russ2620 in forum AWT / Swing
    Replies: 0
    Last Post: 06-03-2008, 04:49 PM
  4. PeerStream Audio Video Streaming Server 4.55
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-27-2007, 07:34 PM
  5. PeerStream Audio Video Streaming Server 4.61
    By levent in forum Java Software
    Replies: 0
    Last Post: 07-31-2007, 07:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •