I am trying to publish text data from a local machine to a media server and other machines are subscribing to the stream using netstream. Text data is sent as soon as generated.
RTMP messages containing text are transferred with at least delay of on average 500 ms which rises up to 1000 ms in cases. This delay is with respect to the fastest message received through RTMP.
Also I tried a trial program though which I sent and received plain text messages using RTMP on same computer and they had a round trip time of nearly (less than) 300ms. But when I attached camera as a video source and sent the messages along with it , round trip time of messages along with video was with nearly 100ms.
So can anybody help me understanding why is messages reaching slower when it is without video. Is it some protocol that streams video faster or I might be missing something . Again if the round trip time is 300 ms then I should be able to send message in that time but I am getting additional delay of 500ms. Could you please suggest what may be possible reasons for that and help me out. I want to receive messages in 100 ms time without sending any extra video along with text. Any other suitable suggestions for streaming data or text messages are also invited.