Hi Jocky..
glad to hear that you got the basics to work.... since I got already more
Get the new version with updated remote control server unter
http://neutrinotv.homeip.net/test/neutr ... 1-Test.zip .
The following commands are supported (case insensitive):
start/stop: start/stops the stream
zaptonext/zaptoprev: zapps to the next or the previous channel (changed from prev/next)
zaptoid <channel-id in hex>: planned, but not implemented yet
getservices: triggers a listing of all channels - format is explained below:
BOUQUETLISTBEGIN <totalbouquets>
BOUQUET ..
...
BOUQUETLISTEND
CHANNELLISTBEGIN <totalchannels>
CHANNEL ...
...
CHANNELLISTEND
getcurrentchannel: triggers the event for sending the current channel
CURRENTCHANNEL ...
Completely new are the events:
BOUQUETLISTBEGIN <nr> - indicates that a bouquetlisting is about to start, <nr> gives the total number of the bouquets
BOUQUETLISTEND - indicates the end of a bouquetlisting
CHANNELLISTBEGIN/CHANNELLISTEND: the same for channels
BOUQUET <nr> <name>
CHANNEL <type> <bouquet-nr> <channel-id in hex> <channel number> <channel-name>
CURRENTCHANNEL <type> <bouquet-nr> <channel-id in hex> <channel number> <channel-name>
(same as CHANNEL)
STARTEDSTREAMING: event which tells you that neutrinoTV started streaming
STOPPEDSTREAMING: event which tells that neutrinoTV aborted streaming
Events come asynchronously, i.e. they can come at any time, even in the middle of a channel listing. So, when communicating with neutrinoTV just asume only single lines as atomic units.
Independent of above events are OK and ERROR - you always get an OK, if the command was recognized (not executed!), and an ERROR if something is syntactically wrong with the command.
Sorry, that it was little bit painfull to implement socket-operations since I did not use http. But exactly the events are why I did not want to use http E.g. when you switch the channel, neutrinoTV sends an event CURRENTCHANNEL to ALL connected clients - something like that is not possible with http since you usually don't stay connected..
I will probably implement the zaptoid function next, and then go on fixing some other places in neutrinoTV - later, I will add full EPG support to the remote control interface.
Cheers, and have fun,
Arno