Hey there bhaskar48,
Thanks for reaching out to the Apple Support Communities. We understand you're having issues with using AirPlay on your MacBook Pro, and we'd be happy to help.
To get started, does restarting your MacBook seem to help with the issue, even if it's just temporary? Log out, sleep, wake, restart, or shut down your Mac - Apple Support
If not, let's test the issue in safe mode. Safe mode can help to determine whether an issue is caused by software that loads as your Mac starts up. Check out the following resource for steps on how to test the issue in safe mode, and what to do if the issue doesn't occur in safe mode: How to use safe mode on your Mac - Apple Support
Let us know how that goes.
Have a great day!