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

Fire Stick #46

Closed
Stef1972 opened this issue Apr 28, 2021 · 7 comments
Closed

Fire Stick #46

Stef1972 opened this issue Apr 28, 2021 · 7 comments
Labels
playback sensor Playback sensor support.

Comments

@Stef1972
Copy link

Prerequisite

  1. Turn on your device.
  2. Open any streaming or media app that you want.
  3. Play any video.
  4. Open ssh to your Homebridge server or open Terminal in Homebridge Config UI X.
  5. Run this command: adb -s DEVICE_IP_ADDRESS shell "dumpsys media_session" copy paste the output to a text file called media_session.txt
  6. Run this command: adb -s DEVICE_IP_ADDRESS shell "dumpsys audio" copy paste the output to a text file called audio.txt
  7. Note: in my experience most of apps will appear in dumpsys media_session which is the preferable way to detect, but some apps (like Disney+, Cartoon Network) will appear in dumpsys audio

Your Device
Fire Stick

App Name
Prime Video for the media session
Disney+ for audio session

Attachment
audio.txt
media_session.txt

@Stef1972 Stef1972 added the playback sensor Playback sensor support. label Apr 28, 2021
@dwaan dwaan mentioned this issue Apr 29, 2021
dwaan added a commit that referenced this issue Apr 29, 2021
- Initial support playback for FireTV #46  and #36
- More options to show/hide number, home input, and other input in Home App.
- Proper support for ADB command as suggested #45
@dwaan
Copy link
Owner

dwaan commented Apr 29, 2021

It seems app like Disney+ currently can't be detected via two of those ADB methods in Fire TV.

@Stef1972
Copy link
Author

Stef1972 commented May 1, 2021

It seems app like Disney+ currently can't be detected via two of those ADB methods in Fire TV.

Actually the sensor is always inactive even if I play a video with prime video

@dwaan
Copy link
Owner

dwaan commented May 9, 2021

It seems app like Disney+ currently can't be detected via two of those ADB methods in Fire TV.

Actually the sensor is always inactive even if I play a video with prime video

I need to see audio and especially media_session output for Prime Video when play or pause to better understand the behaviors.

@Stef1972
Copy link
Author

Here are all the logs. All of them refers to Primevideo.
logs.zip

dwaan added a commit that referenced this issue May 20, 2021
- Possible solution for bug #49, for power are not properly sync with HDMI CEC
- Another solution for issue #46 for playback sensor
- Solution for bug #51, regarding how the plugin will crash if there's no input
@Stef1972
Copy link
Author

Hi dwaan, the sensor is now working much more better. There is still a problem I noticed: if I open the youtube app on the Firestick the sensor becomes active and it remains active even if I close the app, restart the homebridge, turn off and on the FireStick. I tried to exclude the youtube app from the sensor on the configuration but the issue is still present...
The sensor remains active even if I play a video (and then I stop it) in an other app.
At a certain point randomly the sensor start to work again (until I open youtube again!)

the config:
{
"name": "Firestick ",
"ip": "192.168.1.207",
"interval": 5000,
"category": "TV_STREAMING_STICK",
"playbacksensor": true,
"playbacksensorexclude": "com.amazon.firetv.youtube",
"debug": false,
"backbutton": "KEYCODE_BACK",
"playpausebutton": "KEYCODE_MEDIA_PLAY_PAUSE",
"infobutton": "KEYCODE_HOME",
"hidenumber": true,
"hidehome": true,
"hideother": true,
"poweron": "KEYCODE_AWAKE",
"poweroff": "KEYCODE_SLEEP"
}

Attached: Media_session and Audio both while Youtube app is playing or is paused
logs_youtube.zip

@Stef1972
Copy link
Author

The playback sensor don’t work with the new versions (v2 beta 1, v2 beta 2). It never become active even it the firestick is playing.

@dwaan
Copy link
Owner

dwaan commented May 7, 2022

Moved to issue #81

@dwaan dwaan closed this as completed May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
playback sensor Playback sensor support.
Projects
None yet
Development

No branches or pull requests

2 participants