How can it be that variable transcoderName within the for() loop returns "transcoder" (a valid string that represents the transcoder name), while stream.getLiveStreamTranscoder(transcoderName) returns null?
I don't see how your code is different from mine, except that you've added a line that splits the streamname on underscore and tries to find the source stream for the transcoded stream. Besides of that, you're still trying to get the ILiveStreamTranscoder object from the source stream, which I already tried in my previous post. However, what your write above the code sample looks controversial to the code sample itself: if getLiveStreamTranscoder takes a streamname, not a transcodername, it would mean that stream.getLiveStreamTranscoder("teststream") would return the ILiveStreamTranscoder instance instead of stream.getLiveStreamTranscoder("transcoder")
My intention is: if I have a transcoded stream, I want to be able to find the source stream from that WITHOUT having to do a split on the streamname. Splitting on underscore is a weak solution; e.g. your sample code will fail if someone uses a streamname "test_stream".