我是iOS编码的新手,现在我想设置iOS前置摄像头的帧,如18 fps或25 fps。这是我的代码,我很困惑,无论我如何更改activeVideoMinFrameDuration和activeVideoMaxFrameDuration的值,最终视频总是30fps。
app/components/reject-dialog.js
export default Ember.Component.extend({
changeObserver: Ember.observer('rejectFormData.application_id', function(){
//do logic
}),
change() {
// this fires only when changed through this component
// I want this to fire even when changed from other components
alert('changed!');
},
actions: {
rejectApplication(formData) {
this.set('formData.application_id', 123);
}
}
});
答案 0 :(得分:1)
您可能还需要设置
videoFileOutput.movieFragmentInterval = CMTime(seconds: 1, preferredTimescale: 25)