Apple TV TVJS 应用程序中的流式视频在模拟器中工作但在设备上失败并出现神秘错误
Streaming video in an Apple TV TVJS app works in the simulator but fails on the device with an arcane error
我正在尝试在 TVML 应用程序中流式传输视频。流式传输视频在模拟器中有效,但在设备上我收到一条无法解释任何内容的神秘错误消息。
我正在使用 this example 中的代码,并在函数 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 :
Template controller: <_TVProductTemplateController: 0x12f021400>
2016-04-05 18:05:14.298 TeeVee[255:12143] #T:[Main] #Error #SYSTEM :
Error occurred: Error Domain=AVFoundationErrorDomain Code=-11800 "The
operation could not be completed"
UserInfo={NSUnderlyingError=0x130519500 {Error
Domain=NSOSStatusErrorDomain Code=-16044 "(null)"},
NSLocalizedFailureReason=An unknown error occurred (-16044),
NSLocalizedDescription=The operation could not be completed}
2016-04-05 18:05:14.298 TeeVee[255:12143] #T:[Main] #Error #SYSTEM :
Stopping due to error
呃,这是一个 AppTransport issue。我们正在将我们的 Kaltura 域列入白名单,但我想我们漏掉了一个。当我完全禁用 AppTransport 时,该应用程序可以正常运行。我希望 Apple 在发生错误时显示未列入白名单或 https 的域。
我正在尝试在 TVML 应用程序中流式传输视频。流式传输视频在模拟器中有效,但在设备上我收到一条无法解释任何内容的神秘错误消息。
我正在使用 this example 中的代码,并在函数 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 : Template controller: <_TVProductTemplateController: 0x12f021400> 2016-04-05 18:05:14.298 TeeVee[255:12143] #T:[Main] #Error #SYSTEM : Error occurred: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSUnderlyingError=0x130519500 {Error Domain=NSOSStatusErrorDomain Code=-16044 "(null)"}, NSLocalizedFailureReason=An unknown error occurred (-16044), NSLocalizedDescription=The operation could not be completed} 2016-04-05 18:05:14.298 TeeVee[255:12143] #T:[Main] #Error #SYSTEM : Stopping due to error
呃,这是一个 AppTransport issue。我们正在将我们的 Kaltura 域列入白名单,但我想我们漏掉了一个。当我完全禁用 AppTransport 时,该应用程序可以正常运行。我希望 Apple 在发生错误时显示未列入白名单或 https 的域。