begeekmyfriend / yasea

RTMP live streaming client for Android
MIT License
4.88k stars 1.32k forks source link

Error:A problem occurred receiving StreamBegin from server #672

Open lomoya90 opened 5 years ago

lomoya90 commented 5 years ago

Client receive StreamBegin(User control message) from picarto.tv server, before client send createStream command. image Should we do like this: image

It works ok!

begeekmyfriend commented 5 years ago

I do not know about picarto.tv server. Have you conducted sufficient test to ensure that your modification is all right for all the RTMP server?

lomoya90 commented 5 years ago

I do not know about picarto.tv server. Have you conducted sufficient test to ensure that your modification is all right for all the RTMP server?

@begeekmyfriend Yes, I found the reason.But there is still a problem with the processing when receiving STREAM_BEGIN. Not all servers will send STREAM_BEGIN after receiving a successful CREATE_STREAM,STREAM_BEGIN can be sent in advance. So,nothing should be done after receiving STREAM_BEGIN.

begeekmyfriend commented 5 years ago

Well, you may shoot a PR for this issue.