Issue with camera rendering

Hello,
Im trying to render animation, rendering in open GL is doing well.
But when i try to render in Iray, the camera is ignored and the scene is rendered as seen from viewport, the camera movements are not rendered.
How to fix this issue ?
Comments
Are you sure you haven't switched active viewport, or changed te camera/view in use in the viewport? Both render engines should use the animations on the camera used to render through.
i see so i need to switch to the camera view. i thought the renderer would figure it out itself. thank you