Camera record live preview

Hello, i can’t find answer for that. Is it possible, to display on screen content of camera live recording? I mean mirror like functionality, i want to see on screen what front camera sees.