【问题标题】:Getting error on [exportSession exportAsynchronouslyWithCompletionHandler:^-[TiBlob _formatReader]: unrecognized selector sent to instance在 [exportSession exportAsynchronouslyWithCompletionHandler:^-[TiBlob _formatReader] 上出现错误:无法识别的选择器已发送到实例
【发布时间】:2012-06-28 13:21:22
【问题描述】:

我在使用导出视频时遇到以下错误 [exportSession exportAsynchronouslyWithCompletionHandler:^

错误:

-[TiBlob _formatReader]:无法识别的选择器发送到实例

我正在使用 Titanium 模块。我正在将视频从应用程序发送到模块。

对此有任何想法,因为我对此一无所知。提前感谢专家的建议。

【问题讨论】:

  • 当我从模块本身获取视频时,这工作正常。仅当我从应用程序设置模块实例时才会发生错误。

标签: iphone titanium media video-processing titanium-modules


【解决方案1】:

我将视频文件作为“event.media”从 Titanium 应用程序传递。现在我将“event.media”作为 TiBlob 的对象添加到自定义 Titanium 模块。

videoObj= [[TiBlob alloc]init];

初始化videoObj后,从application中获取value给videoObj。使用 videoObj(TiBlob) 我只是初始化 AVAsset。这为我解决了问题。

NSURL *url= [[NSURL alloc]initWithString:videoObj.path];
source = [[AVURLAsset alloc] initWithURL:url options:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:AVURLAssetPreferPreciseDurationAndTimingKey]];

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-04
    • 1970-01-01
    • 2019-04-13
    • 1970-01-01
    • 1970-01-01
    • 2017-04-19
    • 1970-01-01
    相关资源
    最近更新 更多