Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to scroll #4

Open
fivestones opened this issue Sep 26, 2020 · 1 comment
Open

Add the ability to scroll #4

fivestones opened this issue Sep 26, 2020 · 1 comment

Comments

@fivestones
Copy link

I know there's no interface to scroll with on the chromecast itself, but it'd be great if there was an option in castdeck that would add javascript scroll messages to the chromecasted page so it would scroll at the user-defined speed from top to bottom (or maybe down and back up over and over?)

@rikkertkoppes
Copy link
Contributor

Hi, thanks for your interest in castDeck! It's a nice idea and I can see some use cases:

  1. scroll the client based on user input from castDeck itself
  2. scroll the client automatically, based on timing

The main problem with this is cross site scripting. Since the user application is displayed in an iframe, I cannot get any message into it without also adding some scripts to the user application itself (using postMesage or websockets). If you start doing that, you might just as well implement the entire scrolling behaviour into the user application

This is what I do for my own purposes, which is displaying a (potentially long) competition schedule. That page automatically scrolls with time and centers the current participant in the viewport. With this approach, use case 2 vanishes.

Use case 1 may be interesting though.

I'll keep this issue open for now. I am kinda pressed for time, but if I can spare some time in the next few weeks, i'll give it a go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants