Best way to disable player movement in a view frame

What would be the best way to disable player movement in a view frame?