Bug 974730 - [Camera] Camera Library has to listen for the onPreviewStateChange event