Namespaces
Variants
Actions

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

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

文章信息

兼容于
平台: S60 3rd Edition FP2

文章
翻译:
hoolee
最后由 hamishwillee 在 20 Aug 2012 编辑
  • 详细描述

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 20 August 2012, at 05:21.
129 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved