4

I am writing a custom receiver for chromecast and was wondering if there is a way we can have our own, custom XHR loader functionality rather then the built in goog.net.XhrIo?

Basically I need to override the functionality of goog.net.XhrIo for all segments/fragments and media files.

I need this to send some beacons back to my servers for analytics.

Thanks!

4

1 回答 1

2

If you are using the Media Player Library (MPL), then you can use skipRequest() and setResponse() to achieve what you want to do. Note that the Host class provides a number of overrides for updating Segments, Manifest, License and Captions request info.

于 2016-11-30T23:24:38.013 回答