You've not set username, so we could guess it's ec2-user
Embed player supports a special option to enable restart. So you should either pass the option
https://wcs:8888/embed_player?urlServer=wss://wcs:8443&streamName=test&mediaProviders=WebRTC&restart
or replace false to true in the string...