Like so:
"The teacher (along with her students) is viewing a film."
"Along with her students, the teacher is viewing a film."
"The teacher is viewing a film, along with her students."
So in short, it is the teacher who is viewing the film. The students are just extra information.