VeeplayChromecast 1.1.1

VeeplayChromecast 1.1.1

测试已测试
语言语言 Obj-CObjective C
许可证 商业
发布上次发布2018年2月

Gabi DobocanOvidiu D. Nitan 维护。



 
依赖
Veeplay>= 0
google-cast-sdk~> 2.10.4
 

  • Veeplay

Veeplay Chromecast 插件 for iOS

此插件使 iOS 的 Veeplay 媒体播放器能够连接并将播放发送到 Google Chromecast

要安装

  • 将以下行添加到您的 Podfile 中

    pod "VeeplayChromecast"
    
  • 或者,如果没有使用 CocoaPods 进行安装,从仓库中获取最新静态库、头文件和资源 这里。同时,安装 Google Cast iOS Sender API 库的最新版本。

  • 导入 VeeplayChromecastManager 头文件

    #import "VeeplayChromecastManager.h"
    

要启动插件,在 APSChromeCastManager 共享实例上设置您的 Chromecast 应用程序 ID

[APSChromecastManager sharedInstance].chromecastAppId = @"appid"

您可以通过将 chromecast 添加到组件数组的 controls 部分,在您的 JSON 配置文件中的控制条中显示 Chromecast 播放控制

    {
        "content": [
            "url": "http://......",
            "autoplay": true,
            "controls": {
                "components": [
                    "playback",
                    "totalTime",
                    "slider",
                    "currentTime",
                    "chromecast"
                ]
            }
        ]
    }

此外,您还可以通过在 APSMediaUnit 的 controlsParameters 属性上添加 kAPSChromecastControl 来编程配置此功能

    unit.controlsParameters = @{kAPSControlsComponents: @(APSPlaybackControl|APSCurrentTimeControl|APSTimeSliderControl|APSTotalTimeControl|kAPSChromecastControl|APSFullScreenControl)};