设置"起源"在youtube-ios-player-helper打破程序功能

时间:2015-06-23 21:42:20

标签: ios youtube youtube-api youtube-iframe-api

使用YouTube iOS播放器帮助程序库(2015-06-16下载https://github.com/youtube/youtube-ios-player-helper),如果我添加该行:

@"origin": @"example.com",

之前:

@"modestbranding": @1

SingleVideoViewController.m的第30行,然后程序控件不再起作用影响视频,并且进度条不再更新。此外,很少有状态消息正在显示/接收。

我假设/希望"起源"会出现在分析中,表示来源,这就是我设置它的原因。

这个文本需要具有特定格式,还是我应该设置的其他内容?

我在这里交叉发布此问题,因为我对GitHub问题没有回应 https://github.com/youtube/youtube-ios-player-helper/issues/121

1 个答案:

答案 0 :(得分:0)

您没有传递origin参数的有效网址。

尝试@"origin": @"https://example.com"@"origin": @"http://example.com"。请注意http(s)://