Streamlit webrtc_streamer Start/stop callback

Is there any way to get callback of Start and Stop button event from webrtc streamer to do some validation on data collected from textbox and drop down on same web page.

In case of valid data collected by user then only webrtc streamer should start and render the video feed on web page and in failure case it should not start and show error message on page