You link it to the YouTube app as a remote controller/chrome cast. The communication between it and YouTube app happens through YouTube APIs.