What term describes what an actor breaks when he addresses the audience directly from stage, like in Hamlet’s “to be or not to be” soliloquy?
Breaking the fourth wall
The Fourth Wall is a theatrical term for the imaginary “wall” that exists between actors on stage and the audience. … The same effect often occurs in movies, only the fourth wall in that instance is a camera lens.
Metafiction – fiction in which the author self-consciously alludes to the artificiality or literariness of a work by parodying or departing from novelistic conventions and traditional narrative techniques.