Showing posts with label game. Show all posts
Showing posts with label game. Show all posts

Thursday, October 14, 2010

Jingle and Gaming

I've being discussing too much about VoIP on Jingle and we are almost forgetting that Jingle is also very suitable for Realtime Games, that requires very low Latency.
Having Multi-Player games using Jingle doesn't mean all the commands, events and actions will be sent in XMPP Format through IQs.
Jingle can also be used to negotiate direct TCP or UDP ByteStreams which is the most suited for low latency Games like Shooting Games for instance:

<iq from='romeo@3drealms.com/borntobewild'
 id='ph37a419'
 to='juliet@dnforever.com/makemyday'
 type='set'>
    <jingle xmlns='urn:xmpp:jingle:1'
     action='session-initiate'
     initiator='romeo@3drealms.com/borntobewild'
     sid='ohhyeah'>
        <content creator='initiator' name='dukenukem'>
            <description
             xmlns='http://dukenukemonline.com'
             media='game'>
                <payload-type id='1' type='controller'/>
            </description>
            <transport
             xmlns='urn:xmpp:jingle:transports:tcp'
             pwd='asd88fgpdd777uzjYhagZg'
             ufrag='8hhy'>
                <candidate component='1'
                 foundation='2'
                 generation='0'
                 id='y3s2b30v3r'
                 ip='192.0.2.3'
                 network='1'
                 port='45664'
                 priority='1694498815'
                 protocol='tcp'
                 rel-addr='10.0.1.1'
                 rel-port='8998'
                 type='srflx'/>
            </transport>
        </content>
    </jingle>
</iq>


So if you are looking forward to build Multiplayer Games, you may consider ejabberd or Openfire a ready to use platform for such.
This is an insight post, so please fell free to send question and ideas as comments.