首页 > 解决方案 > 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?

标签: sdkchromecastgoogle-castreceivergoogle-cast-sdk

解决方案


推荐阅读