Hi Andrew,
The stream is not empty because is plays correctly on the player.
I use the methods bellow in a loop to add the content to the stream, just like in ModuleAddAudioTrack:
this.publisher.addAudioData(APacket.getData(), APacket.getData().length, APacket.getAbsTimecode() + offsetTimeCode);
…
this.publisher.addVideoData(VPacket.getData(), VPacket.getData().length, VPacket.getAbsTimecode());
I added the following statement in onConnect method of Module and it is not firing MediaCaster anymore.
client.setStreamType(“live”);
The following post was very helpfull to get closer to understand what is going on.
I would like to know if it is the correct approach.
I would like to known too if it is possible to set it on stream basis and not on client connection basis as I did. To avoid it affect all stream in client connection.
Thanks.
Aloha,
Rafael Sobral