BtnStart CLICKED
if streaming is ON
then button shows "Pause"
else button show "Resume".
This implies:
BtnStart CLICKED
if btnStart.Text == "Resume"
then turn stream on because it is paused AND Then set btnStart.Text= "Pause"
else pause stream because it is on AND Then set btnStart.Text= "Resume"
This is exactly what i have implemented. there could be better ways, use one if you have it :)
Now go Start button's click event code. there paste the following: