Closed muehlemann closed 5 years ago
Frame discarded in this case is not important for you. It only indicate you that you are in buffer limit of frames waiting for stream, this is caused for it:
StreamingActivity: error: Error configure stream, publish permitted failed.
This look that your second stream configuration in connection don't work for some reason. I think that the reason is because you server take some time to close your stream name and you can't replace it (I had this problem with free version of red5 server). To discard this problem try connect the second time to other stream name. Note: for stream name. I want to say in url: "rtmp://127.0.0.1/live/test" where test is stream name
In wowza server you can configure to replace stream if second person send a stream to same stream name maybe in red5 you can do a similar case to fix your error. If your problem persist let me know it and I will try reproduce it and fix with free red5 version. If you have any link for installation share me please (I tested it a year ago and I don't remember where I should find it).
Thank you for your response!
I am running red5pro but Ill try with a different server configuration. I will let you know the outcome shortly.
@pedroSG94 I just tried hitting a different rtmp server where the reconnection window is 15 minutes. I experienced the same issue.
As a side note the stream was able to be picked up again by the client after entering and exiting multitask mode a couple of times. This triggered the code in my onResume which just calls the livePostConnect
function.
I had no time for test it for now. I will try do some test tomorrow and report you the result.
Hi Pedro, I am running into an issue with your library where on reconnecting to the stream after a network change causes the following error:
SrsFlvMuxer: frame discarded
SERVER My streaming server is red5pro running on an AWS ec2 instance. Starting the stream works perfectly but reconnecting causes problems.
CODE when reconnecting this is the code that is use:
NOTES I am aware of these issues: • https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/98 • https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/91
And although you note that
SrsFlvMuxer: frame discarded
is related to a network issue. I can connect to the same stream if I initialize my StreamingActivity with the already existing stream. This leads me to believe that it is not network related.LOG Here is the full log:
Any help would be greatly appreciated!