How to add Tracks to already started FilteredStream ?

May 2, 2014 at 1:42 PM
Edited May 2, 2014 at 1:53 PM
I added some tracks to a filtered stream and started it as:
filteredStream.StartStreamMatchingAllConditions();
Now when the stream is listening to twitter feed, how can I add more tracks to it to be filtered?

So far I am trying to do something like this:
filteredStream.AddTrack("#newtag");
filteredStream.StopStream();
filteredStream.ResumeStream();
But on ResumeStream() it errors as follows:
The operation is not valid due to current state of the object.
OR is there an alternate of doing this, for example: can I start a stream without any tracks, and when a tweet is received, I would filter its text manually ?
May 5, 2014 at 9:45 PM
Hi,

You need to stop the stream before adding a track.
filteredStream.StopStream();
filteredStream.AddTrack("#newtag");
filteredStream.ResumeStream();
Linvi
Marked as answer by linvi on 5/5/2014 at 1:45 PM