iOS AudioSession categories, routes etc..

So you want to record/play something on iOS and now have to deal with AudioSession, categories, routing of audio  etc. There is good documentation on apple website here. Information on that link can be very overwhelming for a first timer and then mistakes happen.   Here is a great lecture video which I found to be useful….