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

Support changing channels via ADB and other changes. #7

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

gigem
Copy link

@gigem gigem commented Sep 3, 2023

Add the following features:

  • Add intent filters for https://watch.spectrum.net/livetv to allow starting on a specific channel or changing to a specifc channel.
  • Lower the minimum SDK to allow use on recent, FireTV devices.
  • Automatically dismiss the Still There? dialog that pops up every 4 hours or so.

David Engel added 8 commits August 14, 2023 21:10
Allow passing in the desired channelId as an extra string in the
activity intent using ADB.  Also use singleTask launch mode in order
to prevent multiple instances of the app running simultaneously.  The
following is an example invocation using the new functionality.

adb shell am start \
    -n com.workaround.spectv/com.workaround.spectv.MainActivity \
    -e channelId 32645
Either I was mistaken that it ever worked or Spectrum recently stopped
allowing it.  It's probably the former.
The history.back is not needed in this case and just slows things down
by resetting the player before loading the new URL.
Wait for the Continue button in the Still There? popup to appear and
click it to keep the stream playing.  This version works but has the
disadvantage that it polls for an event that happens very, very,
infrequently.  A better version will be committed shortly.
Wait for the Continue button in the Still There? popup to appear and
click it to keep the stream playing.  This version works better than
the previous one.  It creates a MutationObserver to wait for changes
to the HTML and only checks for the Continue button in the changed
subtrees when they occur.  Consequently, there is no polling and in
testing so far, the popup is dismissed before it is even visible.
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

Successfully merging this pull request may close these issues.

2 participants