Skip to content

Support changing channels via ADB and other changes.#7

Open
gigem wants to merge 8 commits into
dyay108:masterfrom
gigem:master
Open

Support changing channels via ADB and other changes.#7
gigem wants to merge 8 commits into
dyay108:masterfrom
gigem:master

Conversation

@gigem

@gigem gigem commented Sep 3, 2023

Copy link
Copy Markdown

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