Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:将CVideoRecorderUtility设置为VGA后在Nokia N96上无效

From Wiki
Jump to: navigation, search

Archived.png存档: 这篇文章是存档,因为考虑到今天它与第三方开发者建立商业解决方案不相关。

Article Metadata

兼容于
平台: S60 3rd Edition FP2
S60 3rd Edition FP2

文章
翻译:
hoolee
最后由 hamishwillee 在 14 Jun 2013 编辑
  • 详细描述

N96上CVideoRecorderUtility不支持以VGA(640x480)方式录制视频。


我们可以在Nokia Developer的S60 Platform: Video Example找到相关代码。

这个C++代码示例演示了如何录制并播放视频文件。我们使用CVideoRecorderUtility和CCamera类来录制视频片段,以及CVideoPlayerUtility来播放,并做到暂停视频和显示视频信息。

使用示例程序时,需要使用MIME参数初始化video recording controller,这时可以指定为VGA编码方案(video/mp4v-es; profile-level-id=4),然后通过在MvruoOpenComplete()回调函数中设置VGA选项

void CVideoRecorderAdapter::MvruoOpenComplete( TInt aError )
{
if( aError == KErrNone )
{
iUtility->SetVideoFrameSizeL( TSize( 640, 480 ) );
...
iUtility->Prepare();
}
}

调用CVideoRecorderUtility::Prepare()将导致MvruoPrepareComplete()回调执行,这时在N96将返回KErrNotSupported结果。

  • 解决方案

暂无解决方案,在N96上可以最高支持视频分辨率为352x288 (CIF).

This page was last modified on 14 June 2013, at 05:05.
264 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×