Apple TV TVJS应用程序中的流媒体视频在模拟器中工作,但在设备上失败,出现了一个神秘的错误



我正在尝试在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】#通知#系统:模板控制器:&lt_TVProductTemplateController:0x12f021400>2016-04-05 18:05:14.298 TeeVee[255:12143]#T:[Main]#错误#系统:出现错误:错误域=AVFoundationErrorDomain代码=-11800"操作无法完成"UserInfo={NSUnderlyingError=0x130519500}错误域=NSOSStatusErrorDomain Code=-16044"(null)"},NSLocalizedFailureReason=发生未知错误(-16044),NSLocalizedDescription=操作无法完成}2016-04-05 18:05:14.298 TeeVee[255:12143]#T:[Main]#错误#系统:由于错误而停止

Ugh,这是一个AppTransport问题。我们正在将我们的Kaltura域名列入白名单,但我想我们少了一个。当我完全禁用AppTransport时,该应用程序正常工作。我希望苹果在出现错误时显示未列入白名单或https的域。

相关内容

最新更新