ios - 我如何在 ios swift 3.0 中禁用 ytplayer 中的 youtube Logo

标签 ios swift

我已经在我的项目中实现了 ytplayer,但是如何在 Ytplayerview 中禁用 YOUTUBE LOGO。

实际上我添加了“modestbranding”:1 个参数,但它不起作用。我仍然在视频播放器中获得 youtube Logo 。

请给我建议正确的答案..谢谢 advc

playerVars = [ "controls": 1 , "playsinline": 1, "autoplay": 1,//"autohide": 1, "rel": 0, "showinfo": 0,//"显示”:1,“颜色”:“白色”,“cc_load_policy”:1,“iv_load_policy”:1,“modestbranding”:1]self.player.load(withVideoId:“yvhrORy4x30”,playerVars:playerVars)

最佳答案

这是一个片段:

let playerVars = [
            "modestbranding": 1,
            "controls" : 1,
            "rel" : 0,
            "fs" : 1,
            "playsinline" : 1,
            "origin" : "https://www.example.com",
            "showinfo" : 0
        ] as [String : Any]

关于ios - 我如何在 ios swift 3.0 中禁用 ytplayer 中的 youtube Logo ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48376086/

相关文章:

iphone - iTunes 连接 : "Too few reports have been submitted for a report to be shown"

ios - 如果我向 UIButton 添加背景颜色,我该如何插入它以使背景变小?

javascript - Vimeo 播放器 JS API 在 iOS 中无法运行

ios - 核心数据 iCloud 同步还是其他?

arrays - 当我使用字符串 : Any 时,我的 JSON 数组为空

ios - 用户首次启动应用程序时显示教练标记 View Swift 3

ios - 表内的 UIButton 未触发

android - 应用程序中嵌入的youtube视频播放黑屏

ios - 从 QLPreviewController 隐藏共享按钮

swift - 如何在 Swift 中将参数传递给 NSExpression 的自定义 NSNumber 函数?