我正在尝试在 TVML 应用程序中流式传输视频。流式传输视频在模拟器中有效,但在设备上我收到一条无法解释的神秘错误消息。
我正在使用此示例中的代码,并在函数 startPlayback(event) 部分中更改了以下代码。
var player = new Player();
player.playlist = new Playlist();
var video = new MediaItem('video', 'http://cdnapi.kaltura.com/p/1626222/sp/162622200/playManifest/entryId/0_eq9i2jbt/format/url/protocol/http/a.m3u8');
video.title = 'title';
video.subtitle = 'subtitle';
video.description = 'description';
video.artworkImageURL = 'artworkImageURL';
player.playlist.push(video);
setPlaybackEventListeners(player);
player.play();
错误信息:
2016-04-05 18:05:08.821 TeeVee[255:12143] #T:[Main] #Notice #SYSTEM:模板控制器:<_TVProductTemplateController:0x12f021400> 2016-04-05 18:05:14.298 TeeVee[255:12143 ] #T:[Main] #Error #SYSTEM : 发生错误:错误域=AVFoundationErrorDomain Code=-11800“操作无法完成” UserInfo={NSUnderlyingError=0x130519500 {Error Domain=NSOSStatusErrorDomain Code=-16044"(null) "}, NSLocalizedFailureReason=发生未知错误 (-16044), NSLocalizedDescription=操作无法完成} 2016-04-05 18:05:14.298 TeeVee[255:12143] #T:[Main] #Error #SYSTEM :因错误而停止