Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Player API documentation? — Gideros Forum

Player API documentation?

paulclingerpaulclinger Member
edited May 2015 in General questions
I noticed in the changelog "Gideros Players are now discoverable in Gideros Studio automatically and available through dropdown". What's the API for that as I'm considering adding this functionality to ZeroBrane Studio?

Likes: keszegh

+1 -1 (+1 / -0 )Share on Facebook

Comments

  • hgy29hgy29 Maintainer
    @paulclinger,

    Yes, feel free to ask for more details.
    Should we expose discovery through gdrbridge/gdrdeamon ?
  • thanks @ar@rsawseen;

    > Should we expose discovery through gdrbridge/gdrdeamon ?

    @hgy29, not sure yet. As far as I understand, it's probably UDP-based, so I'd like to know what port/messages to listen for. If it's not UDP-based, then how does Gideros Studio find players?
  • hgy29hgy29 Maintainer
    Yes, its UDP based. Players broadcast on UDP port 15000. Packet content is:
    struct adv_ {
                            uint8_t signature[8]; // 'Gideros0'
                            uint32_t ip; //INADDR_ANY for same as UDP peer
                            uint16_t port;
                            uint16_t flags;
                            char devName[32];
                        } advPacket;
    All fields are in network endian (big endian).
    ip and port indicate tcp ip and port for on which to contact the player. flags is unused yet, but may at some point convey some flags/extend the protocol. I thought of encoding player type (Win,Android,iOS) in this field to provide visual feedback (icon) on display. signature is litterally "Gideros0", and devName is the friendly name of the device.

    If ip holds the value INADDR_ANY (0 if I remember correctly), it means that the ip should be taken from the source of the udp message.
Sign In or Register to comment.