ADBTuner: A "channel tuning" application for networked Google TV / Android TV devices

@turtletank,

It is stopping the video on it's own ... I did not exit the preview it just stops.

Does it always happen after like 30 seconds in the log you posted above?

Yes right after the video starts.

1 Like

Did it happen the first time? Can you try force closing the Xfinity app on the device and then tuning?

It is playing now after power cycling the device to make sure app was fully closed.... but then I closed the preview window tried to tune again got errors ...

2024-03-06 23:43:48.288 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-06 23:43:48.289 - uvicorn.access - 192.168.50.92:63303 - "GET /stream/1/1 HTTP/1.1" 200
2024-03-06 23:43:48.310 - root - Tuner: Stream open (attempt 1).
2024-03-06 23:43:48.453 - httpx - HTTP Request: GET http://192.168.50.242:8086/6.ts "HTTP/1.1 200 OK"
2024-03-06 23:45:51.866 - server - http disconnect
2024-03-06 23:45:51.873 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-06 23:45:52.061 - lib.adb - ADB: Connected.
2024-03-06 23:45:52.061 - lib.adb - ADB: Stopping media playback.
2024-03-06 23:45:52.061 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-06 23:45:53.206 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_PAUSE
2024-03-06 23:45:54.035 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-06 23:45:54.036 - server - Released tuner 1
2024-03-06 23:45:54.036 - server - Tuner: Cleanup complete. test1 (HBOHDP)
2024-03-06 23:46:17.415 - server - Reserved tuner 1
2024-03-06 23:46:17.416 - server - Using tuner id: 1
2024-03-06 23:46:17.417 - uvicorn.access - 192.168.50.92:63386 - "GET /stream/1 HTTP/1.1" 307
2024-03-06 23:46:17.441 - server - Tuner: Tuning to HBOHDP on test1
2024-03-06 23:46:17.448 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-06 23:46:17.622 - lib.adb - ADB: Connected.
2024-03-06 23:46:17.622 - lib.adb - ADB: 192.168.50.41 - dumpsys display
2024-03-06 23:46:17.714 - lib.adb - ADB: 192.168.50.41 - getprop ro.build.version.release
2024-03-06 23:46:17.747 - lib.adb - ADB: Android Version: 9.0.
2024-03-06 23:46:17.747 - lib.adb - ADB: 192.168.50.41 - pm list packages -3
2024-03-06 23:46:17.881 - lib.adb - ADB: 192.168.50.41 - pidof com.xfinity.cloudtvr.tenfoot
2024-03-06 23:46:17.998 - lib.adb - ADB: Stopping media playback.
2024-03-06 23:46:17.999 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-06 23:46:18.866 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-06 23:46:20.924 - uvicorn.access - 192.168.50.92:63386 - "GET /stream/1/1 HTTP/1.1" 500
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 284, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 86, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 169, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/server.py", line 712, in stream
    playback_state = adb_controller.get_media_state()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/adb.py", line 114, in get_media_state
    screenshot_size = screenshot.size
                      ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'size'

Thank you. I just pushed an update to fix this crash. Let me know if it improves the situation.

Edit: there were two updates. The first one still had a bug. Sorry about that.

Thanks for the update. Unfortunately, this cranky 'lil guy is still waiting...

I can try and pull logs if you want.

Errors out after playing and exiting preview ....

2024-03-07 00:12:08.673 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-07 00:12:11.486 - server - Tuner: Waiting for playback start. Status: unknown
2024-03-07 00:12:22.230 - lib.adb - Checking for profile screen
2024-03-07 00:12:25.476 - lib.adb - Checking for profile screen
2024-03-07 00:12:27.865 - lib.adb - Detected 99.95% black pixels. Assuming HDCP is active and video is playing.
2024-03-07 00:12:27.866 - server - Tuner: Tuning completed in 21.0 seconds. Display was on, application (com.xfinity.cloudtvr.tenfoot) was closed.
2024-03-07 00:12:27.866 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:12:27.867 - uvicorn.access - 192.168.50.92:63808 - "GET /stream/1/1 HTTP/1.1" 200
2024-03-07 00:12:27.886 - root - Tuner: Stream open (attempt 1).
2024-03-07 00:12:27.968 - httpx - HTTP Request: GET http://192.168.50.242:8086/6.ts "HTTP/1.1 200 OK"
2024-03-07 00:13:02.707 - server - http disconnect
2024-03-07 00:13:02.715 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:13:02.933 - lib.adb - ADB: Connected.
2024-03-07 00:13:02.933 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:13:02.933 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:13:04.138 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_PAUSE
2024-03-07 00:13:05.135 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:13:05.136 - server - Released tuner 1
2024-03-07 00:13:05.136 - server - Tuner: Cleanup complete. test1 (HBOHDP)
2024-03-07 00:13:44.406 - server - Reserved tuner 1
2024-03-07 00:13:44.406 - server - Using tuner id: 1
2024-03-07 00:13:44.407 - uvicorn.access - 192.168.50.92:63848 - "GET /stream/1 HTTP/1.1" 307
2024-03-07 00:13:44.423 - server - Tuner: Tuning to HBOHDP on test1
2024-03-07 00:13:44.431 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:13:44.592 - lib.adb - ADB: Connected.
2024-03-07 00:13:44.592 - lib.adb - ADB: 192.168.50.41 - dumpsys display
2024-03-07 00:13:44.695 - lib.adb - ADB: 192.168.50.41 - getprop ro.build.version.release
2024-03-07 00:13:44.740 - lib.adb - ADB: Android Version: 9.0.
2024-03-07 00:13:44.741 - lib.adb - ADB: 192.168.50.41 - pm list packages -3
2024-03-07 00:13:44.872 - lib.adb - ADB: 192.168.50.41 - pidof com.xfinity.cloudtvr.tenfoot
2024-03-07 00:13:44.982 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:13:44.982 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:13:45.978 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-07 00:13:47.954 - uvicorn.access - 192.168.50.92:63848 - "GET /stream/1/1 HTTP/1.1" 500
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 435, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 284, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/sessions.py", line 86, in __call__
    await self.app(scope, receive, send_wrapper)
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/usr/local/lib/python3.11/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 241, in app
    raw_response = await run_endpoint_function(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 169, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/server.py", line 712, in stream
    playback_state = adb_controller.get_media_state()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/adb.py", line 113, in get_media_state
    if screenshot.any():
       ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'any'
1 Like
2024-03-06 16:15:06 2024-03-07 00:15:06.880 - server - Reserved tuner 1
2024-03-06 16:15:06 2024-03-07 00:15:06.880 - server - Using tuner id: 1
2024-03-06 16:15:06 2024-03-07 00:15:06.881 - uvicorn.access - 172.17.0.1:59634 - "GET /stream/5 HTTP/1.1" 307
2024-03-06 16:15:06 2024-03-07 00:15:06.885 - server - Tuner: Tuning to B/R Sports Test on Chromecast 1
2024-03-06 16:15:06 2024-03-07 00:15:06.887 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-06 16:15:06 2024-03-07 00:15:06.958 - lib.adb - ADB: Connected.
2024-03-06 16:15:06 2024-03-07 00:15:06.958 - lib.adb - ADB: 192.168.50.236 - dumpsys display
2024-03-06 16:15:07 2024-03-07 00:15:07.043 - lib.adb - ADB: 192.168.50.236 - getprop ro.build.version.release
2024-03-06 16:15:07 2024-03-07 00:15:07.082 - lib.adb - ADB: Android Version: 12.0.
2024-03-06 16:15:07 2024-03-07 00:15:07.084 - lib.adb - ADB: 192.168.50.236 - pm list packages -3
2024-03-06 16:15:07 2024-03-07 00:15:07.150 - lib.adb - ADB: 192.168.50.236 - pidof com.wbd.stream
2024-03-06 16:15:07 2024-03-07 00:15:07.206 - lib.adb - ADB: Stopping media playback.
2024-03-06 16:15:07 2024-03-07 00:15:07.206 - lib.adb - ADB: 192.168.50.236 - input keyevent KEYCODE_MEDIA_STOP
2024-03-06 16:15:07 2024-03-07 00:15:07.275 - lib.adb - ADB: 192.168.50.236 - am start -a android.intent.action.VIEW -d "https://play.max.com/video/watch/83776fd8-f837-5ad1-a3c1-cb4d98f5b375" com.wbd.stream
2024-03-06 16:15:11 2024-03-07 00:15:11.858 - lib.adb - Checking for profile screen
2024-03-06 16:15:13 2024-03-07 00:15:13.816 - lib.adb - Checking for profile screen
2024-03-06 16:15:15 2024-03-07 00:15:15.683 - lib.adb - Checking for profile screen
2024-03-06 16:15:17 2024-03-07 00:15:17.623 - lib.adb - Checking for profile screen
2024-03-06 16:15:19 2024-03-07 00:15:19.416 - lib.adb - Checking for profile screen
2024-03-06 16:15:21 2024-03-07 00:15:21.283 - server - Tuner: Compatibility Mode - Stream released after 14.4 seconds. Display was on, application (com.wbd.stream) was closed.
2024-03-06 16:15:21 2024-03-07 00:15:21.283 - lib.adb - ADB: Closing connection - 192.168.50.236
2024-03-06 16:15:21 2024-03-07 00:15:21.287 - uvicorn.access - 172.17.0.1:59634 - "GET /stream/1/5 HTTP/1.1" 200
2024-03-06 16:15:21 2024-03-07 00:15:21.306 - root - Tuner: Stream open (attempt 1).
2024-03-06 16:15:21 2024-03-07 00:15:21.367 - httpx - HTTP Request: GET http://192.168.50.207/0.ts "HTTP/1.1 200 OK"

Pushed another update. Sorry it's been too long of a day to be rushing this stuff.
Let me know if it's improved.

Not for me, unfortunately.

1 Like

No need to rush .... It works great on initial launch but when I close the Preview and restart the Channel it plays for a bit and closes.

2024-03-07 00:35:15.743 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-07 00:35:18.599 - lib.adb - Detected 100.0% black pixels. Assuming HDCP is active and video is playing.
2024-03-07 00:35:18.600 - server - Tuner: Waiting for playback start. Status: playing
2024-03-07 00:35:18.600 - server - Tuner: Tuning completed in 4.36 seconds. Display was on, application (com.xfinity.cloudtvr.tenfoot) was closed.
2024-03-07 00:35:18.600 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:35:18.601 - uvicorn.access - 192.168.50.92:64214 - "GET /stream/1/1 HTTP/1.1" 200
2024-03-07 00:35:18.621 - root - Tuner: Stream open (attempt 1).
2024-03-07 00:35:18.694 - httpx - HTTP Request: GET http://192.168.50.242:8086/6.ts "HTTP/1.1 200 OK"
2024-03-07 00:36:57.358 - server - http disconnect
2024-03-07 00:36:57.367 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:36:57.564 - lib.adb - ADB: Connected.
2024-03-07 00:36:57.564 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:36:57.565 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:36:58.668 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_PAUSE
2024-03-07 00:36:59.550 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:36:59.551 - server - Released tuner 1
2024-03-07 00:36:59.551 - server - Tuner: Cleanup complete. test1 (HBOHDP)
2024-03-07 00:37:07.303 - server - Reserved tuner 1
2024-03-07 00:37:07.303 - server - Using tuner id: 1
2024-03-07 00:37:07.304 - uvicorn.access - 192.168.50.92:64287 - "GET /stream/1 HTTP/1.1" 307
2024-03-07 00:37:07.320 - server - Tuner: Tuning to HBOHDP on test1
2024-03-07 00:37:07.328 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:37:07.498 - lib.adb - ADB: Connected.
2024-03-07 00:37:07.499 - lib.adb - ADB: 192.168.50.41 - dumpsys display
2024-03-07 00:37:07.611 - lib.adb - ADB: 192.168.50.41 - getprop ro.build.version.release
2024-03-07 00:37:07.642 - lib.adb - ADB: Android Version: 9.0.
2024-03-07 00:37:07.643 - lib.adb - ADB: 192.168.50.41 - pm list packages -3
2024-03-07 00:37:07.719 - lib.adb - ADB: 192.168.50.41 - pidof com.xfinity.cloudtvr.tenfoot
2024-03-07 00:37:07.833 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:37:07.833 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:37:08.734 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-07 00:37:10.764 - server - Tuner: Waiting for playback start. Status: unknown
2024-03-07 00:37:11.856 - lib.adb - Detected 99.95% black pixels. Assuming HDCP is active and video is playing.
2024-03-07 00:37:11.857 - server - Tuner: Tuning completed in 4.54 seconds. Display was on, application (com.xfinity.cloudtvr.tenfoot) was running.
2024-03-07 00:37:11.857 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:37:11.858 - uvicorn.access - 192.168.50.92:64287 - "GET /stream/1/1 HTTP/1.1" 200
2024-03-07 00:37:11.877 - root - Tuner: Stream open (attempt 1).
2024-03-07 00:37:11.955 - httpx - HTTP Request: GET http://192.168.50.242:8086/6.ts "HTTP/1.1 200 OK"
2024-03-07 00:37:47.700 - server - http disconnect
2024-03-07 00:37:47.708 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:37:47.877 - lib.adb - ADB: Connected.
2024-03-07 00:37:47.877 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:37:47.877 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:37:48.628 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_PAUSE
2024-03-07 00:37:49.387 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:37:49.387 - server - Released tuner 1
2024-03-07 00:37:49.388 - server - Tuner: Cleanup complete. test1 (HBOHDP)

It's not crashing anymore so that's good. From the log it's detecting that the player (browser preview in your case) is disconnecting so it's acting as though you closed it. If you have the time at some point it would be helpful if you could check to see if the same happens in Channels DVR.

I pushed one more update just now. It doesn't change any behavior, but I added any detected text to the log output to help troubleshoot this further.

- lib.adb - Checking for profile screen
- lib.adb - On screen text: "who's watching? Test User add profile".
- lib.adb - Matched "who's watching".
- server - Tuner: Profile screen detected.

After the video stops playing on relaunch this is what I see in the Preview ...

image


2024-03-07 00:50:25.231 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-07 00:50:27.888 - lib.adb - Detected 100.0% black pixels. Assuming HDCP is active and video is playing.
2024-03-07 00:50:27.888 - server - Tuner: Waiting for playback start. Status: playing
2024-03-07 00:50:27.888 - server - Tuner: Tuning completed in 4.34 seconds. Display was on, application (com.xfinity.cloudtvr.tenfoot) was closed.
2024-03-07 00:50:27.888 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:50:27.889 - uvicorn.access - 192.168.50.92:64490 - "GET /stream/1/1 HTTP/1.1" 200
2024-03-07 00:50:27.909 - root - Tuner: Stream open (attempt 1).
2024-03-07 00:50:27.974 - httpx - HTTP Request: GET http://192.168.50.242:8086/6.ts "HTTP/1.1 200 OK"
2024-03-07 00:51:35.413 - server - http disconnect
2024-03-07 00:51:35.419 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:51:35.603 - lib.adb - ADB: Connected.
2024-03-07 00:51:35.604 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:51:35.604 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:51:36.504 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_PAUSE
2024-03-07 00:51:37.370 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:51:37.371 - server - Released tuner 1
2024-03-07 00:51:37.371 - server - Tuner: Cleanup complete. test1 (HBOHDP)
2024-03-07 00:51:47.220 - server - Reserved tuner 1
2024-03-07 00:51:47.221 - server - Using tuner id: 1
2024-03-07 00:51:47.222 - uvicorn.access - 192.168.50.92:64502 - "GET /stream/1 HTTP/1.1" 307
2024-03-07 00:51:47.241 - server - Tuner: Tuning to HBOHDP on test1
2024-03-07 00:51:47.249 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-07 00:51:47.437 - lib.adb - ADB: Connected.
2024-03-07 00:51:47.437 - lib.adb - ADB: 192.168.50.41 - dumpsys display
2024-03-07 00:51:47.524 - lib.adb - ADB: 192.168.50.41 - getprop ro.build.version.release
2024-03-07 00:51:47.554 - lib.adb - ADB: Android Version: 9.0.
2024-03-07 00:51:47.554 - lib.adb - ADB: 192.168.50.41 - pm list packages -3
2024-03-07 00:51:47.665 - lib.adb - ADB: 192.168.50.41 - pidof com.xfinity.cloudtvr.tenfoot
2024-03-07 00:51:47.763 - lib.adb - ADB: Stopping media playback.
2024-03-07 00:51:47.764 - lib.adb - ADB: 192.168.50.41 - input keyevent KEYCODE_MEDIA_STOP
2024-03-07 00:51:48.635 - lib.adb - ADB: 192.168.50.41 - am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/HBOHW/5232923399725817105/HBOHW" com.xfinity.cloudtvr.tenfoot
2024-03-07 00:51:50.612 - server - Tuner: Waiting for playback start. Status: unknown
2024-03-07 00:51:51.752 - lib.adb - Detected 99.85% black pixels. Assuming HDCP is active and video is playing.
2024-03-07 00:51:51.753 - server - Tuner: Tuning completed in 4.52 seconds. Display was on, application (com.xfinity.cloudtvr.tenfoot) was running.
2024-03-07 00:51:51.753 - lib.adb - ADB: Closing connection - 192.168.50.41
2024-03-07 00:51:51.754 - uvicorn.access - 192.168.50.92:64502 - "GET /stream/1/1 HTTP/1.1" 200
2024-03-07 00:51:51.776 - root - Tuner: Stream open (attempt 1).
2024-03-07 00:51:51.845 - httpx - HTTP Request: GET http://192.168.50.242:8086/6.ts "HTTP/1.1 200 OK"

Maybe the spotlight effect that comes down from the top of the screen, is screwing up your ability to identify the text from the image? Or HBO coders are just speaking a different language...

2024-03-06 17:21:59 2024-03-07 01:21:59.109 - server - Reserved tuner 1
2024-03-06 17:21:59 2024-03-07 01:21:59.109 - server - Using tuner id: 1
2024-03-06 17:21:59 2024-03-07 01:21:59.110 - uvicorn.access - 172.17.0.1:65390 - "GET /stream/5 HTTP/1.1" 307
2024-03-06 17:21:59 2024-03-07 01:21:59.115 - server - Tuner: Tuning to B/R Sports Test on Chromecast 1
2024-03-06 17:21:59 2024-03-07 01:21:59.118 - lib.adb - ADB: Connecting to device (attempt 1).
2024-03-06 17:21:59 2024-03-07 01:21:59.180 - lib.adb - ADB: Connected.
2024-03-06 17:21:59 2024-03-07 01:21:59.181 - lib.adb - ADB: 192.168.50.236 - dumpsys display
2024-03-06 17:21:59 2024-03-07 01:21:59.964 - lib.adb - ADB: 192.168.50.236 - getprop ro.build.version.release
2024-03-06 17:22:00 2024-03-07 01:22:00.046 - lib.adb - ADB: Android Version: 12.0.
2024-03-06 17:22:00 2024-03-07 01:22:00.046 - lib.adb - ADB: 192.168.50.236 - pm list packages -3
2024-03-06 17:22:00 2024-03-07 01:22:00.280 - lib.adb - ADB: 192.168.50.236 - pidof com.wbd.stream
2024-03-06 17:22:00 2024-03-07 01:22:00.429 - lib.adb - ADB: Stopping media playback.
2024-03-06 17:22:00 2024-03-07 01:22:00.430 - lib.adb - ADB: 192.168.50.236 - input keyevent KEYCODE_MEDIA_STOP
2024-03-06 17:22:01 2024-03-07 01:22:01.138 - lib.adb - ADB: 192.168.50.236 - am start -a android.intent.action.VIEW -d "https://play.max.com/video/watch/83776fd8-f837-5ad1-a3c1-cb4d98f5b375" com.wbd.stream
2024-03-06 17:22:03 2024-03-07 01:22:03.196 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:06 2024-03-07 01:22:06.559 - server - Tuner: Waiting for playback start. Status: unknown
2024-03-06 17:22:07 2024-03-07 01:22:07.124 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:08 2024-03-07 01:22:08.616 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:11 2024-03-07 01:22:11.206 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:13 2024-03-07 01:22:13.792 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:16 2024-03-07 01:22:16.273 - lib.adb - Checking for profile screen
2024-03-06 17:22:17 2024-03-07 01:22:17.177 - lib.adb - On screen text: "ne lee tce ily".
2024-03-06 17:22:17 2024-03-07 01:22:17.227 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:19 2024-03-07 01:22:19.686 - lib.adb - Checking for profile screen
2024-03-06 17:22:20 2024-03-07 01:22:20.695 - lib.adb - On screen text: "ne lee tce ily".
2024-03-06 17:22:20 2024-03-07 01:22:20.743 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:23 2024-03-07 01:22:23.145 - lib.adb - Checking for profile screen
2024-03-06 17:22:24 2024-03-07 01:22:24.201 - lib.adb - On screen text: "ne lee tce ily".
2024-03-06 17:22:24 2024-03-07 01:22:24.249 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:26 2024-03-07 01:22:26.716 - lib.adb - Checking for profile screen
2024-03-06 17:22:27 2024-03-07 01:22:27.683 - lib.adb - On screen text: "ne lee tce ily".
2024-03-06 17:22:27 2024-03-07 01:22:27.735 - lib.adb - Failed to get status from media_session.
2024-03-06 17:22:30 2024-03-07 01:22:30.246 - server - Tuner: Could not detect playback state. Giving up after 31.13 seconds. Display was on, application (com.wbd.stream) was closed.
2024-03-06 17:22:30 2024-03-07 01:22:30.246 - server - Released tuner 1
2024-03-06 17:22:30 2024-03-07 01:22:30.246 - lib.adb - ADB: Stopping media playback.
2024-03-06 17:22:30 2024-03-07 01:22:30.246 - lib.adb - ADB: 192.168.50.236 - input keyevent KEYCODE_MEDIA_STOP
2024-03-06 17:22:30 2024-03-07 01:22:30.339 - lib.adb - ADB: 192.168.50.236 - input keyevent KEYCODE_MEDIA_PAUSE
1 Like

@turtletank Tested experimental and both of my apps Allente and Tv4Play works without compabitility mode :star_struck: Thanks !!!
Tuning on pc with preview mode or VLC is about 8 seconds
Tuning in Kodi iptv simple is still slow and the app on Nvidia shield restars many times before i get picture in Kodi
Would it be a option to get a "special setting" for apps like Kodi to have the choice in ADBtuner to send the video right away with appstart , i mean i rather see a video of the app starting and video is about to tune than have to wait 45 seconds. Don´t know if it is possible to have the "video running check" maybe 30 seconds later is this special case?

Tested experimental with YTTV and it improved tuning time to about 7 to 8 seconds. Using latest Firestick with LinkPi.

Thanks!

Tested the new experimental version of Philo and took channels out of compatibility mode.
Channels come up nice and fast. You might see a slight delay if the box has to launch the app. but, looking good.

2 Likes

Just some feedback.. Getting by the who's watching works perfect in either mode. In my case using Fubo, without compatibility mode, I see a quick pause symbol, which disappears in a few seconds and just leaves the last watched channel on - paused.

I am setting this up for the first time. I have YTTV and have this: URayCoder HEVC H.265 H.264 Live HDMI Video Encoder HD Video Audio Encoders (1 HDMI port). I also have docker and adb installed on Windows 11. I am able to change the channel on my google chromecast device using ADBTUNER. When I create a custom channel in CDVR and tune in I get the picture no signal. Can someone let me know if the HDMI port on the encoder supposed to be connected to the google chromecast device? Any help would be appreciated.