To motivate the use case a little: I love to search for documentaries on MediathekViewWeb on my phone or laptop but mostly watch on my TV.
So far, I downloaded the content, put in on some local share and played it from there on the TV.
IMHO, that is quite tedious - especially, if the content turns out to be not what I was hoping for etc.
It came to my mind to use Google Cast to streamline (literally) this. That works mostly out of the box, though it's a little quirky (on Chrome for Android the "Cast" button in the player just shows up after starting the stream, on desktop I couldn't find an option to just stream the video and not the entire tab...) and requires some additional clicks.
So I gave it a try and integrated it into the app, actually quite simple.
The, from my point of view, downsides are:
- It only works on Chromium-based browsers (but can be detected, so won't be broken in other browsers)
- The Cast Web Sender SDK can/should not be bundled [1] and therefore requires a request towards Google's CDN to fetch it. In my prototype this request happens lazily, just when the user wants to use the cast functionality.
To address the privacy concern, an additional dialogue could be shown - a cookie could be placed to remember the decision.
If there is interest in having this feature added, I would be happy to make my prototype ready and create an MR.
[1]: Google does not explicitly state this for the Sender part of the SDK, but for the receiver part (but the reasoning would be the same I guess): https://developers.google.com/cast/docs/web_receiver/basic#google_web_receiver_sdk
To motivate the use case a little: I love to search for documentaries on MediathekViewWeb on my phone or laptop but mostly watch on my TV.
So far, I downloaded the content, put in on some local share and played it from there on the TV.
IMHO, that is quite tedious - especially, if the content turns out to be not what I was hoping for etc.
It came to my mind to use Google Cast to streamline (literally) this. That works mostly out of the box, though it's a little quirky (on Chrome for Android the "Cast" button in the player just shows up after starting the stream, on desktop I couldn't find an option to just stream the video and not the entire tab...) and requires some additional clicks.
So I gave it a try and integrated it into the app, actually quite simple.
The, from my point of view, downsides are:
To address the privacy concern, an additional dialogue could be shown - a cookie could be placed to remember the decision.
If there is interest in having this feature added, I would be happy to make my prototype ready and create an MR.
[1]: Google does not explicitly state this for the Sender part of the SDK, but for the receiver part (but the reasoning would be the same I guess): https://developers.google.com/cast/docs/web_receiver/basic#google_web_receiver_sdk