How to capture in game view and display it?

oh i didnt realize it was your comment i read it and is not what i need because what i need is a in game event that will autmaticly will start recording and save it not as outside in the editor and then start playing