sdk - how to add http header for authentication to Chromecast request
问题描述
While integrating Chromecast into iOS app, I have faced the problem accessing media content that requires authentication. In this particular case, authentication token must be added to the request in the http header, not as token in the url. There does not seem to be a way to do this with Cast SDK directly. So I have played with custom CAF receiver app, hoping that I can pass this data through customdata to receiver app and receiver app then would form the request with proper http header using playerManager.setMessageInterceptor. But again, how to add custom http header to the final request in the CAF receiver app?
解决方案
推荐阅读
- r - 表中的 R rmarkdown 连字符/破折号在输出中变为点
- mysql - mysql查询计算加入三个表的行数并计算一个表的行数
- google-bigquery - “展平”表格的重复字段并聚合
- php - 逗号分隔的字符串作为 url 数组
- opencv - 使用 haar 级联(opencv)在图像中进行对象检测
- laravel - Laravel:这是接收类别及其子类别产品的最佳方式吗?
- python - 具有值的字典到 MultiIndex 数据框列表的列表
- excel - VBA学习器 - 左侧的函数调用
- java - 即使经过许可,短信管理器也不发送消息
- angularjs - AngularJS / Laravel DELETE(不允许的方法)