Function to get stream index from PlayerStreamInfo instance or -1 if unknown.
a PlayerStreamInfo
the stream index of this stream.