What do you need help with?
First successfully pin paired with Apple TV using this pyatv
Then I try to cast live video using play_url command as below
`atvremote -i C6:B9:2F:50:12:3F play_url=http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4`
When execute this command getting 500: Internal Server Error as following error log on terminal
Traceback (most recent call last): File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 998, in _run_application return await cli_handler(loop) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 727, in cli_handler return await _handle_commands(args, config, storage, loop) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 877, in _handle_commands ret = await _handle_device_command(args, cmd, atv, storage, loop) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 933, in _handle_device_command return await _exec_command(atv.stream, cmd, True, *cmd_args) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 965, in _exec_command value = await tmp(*args) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/core/facade.py", line 359, in play_url await self.relay("play_url")(url, **kwargs) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/protocols/airplay/__init__.py", line 137, in play_url return await self._play_task File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/protocols/airplay/player.py", line 73, in play_url await self._wait_for_media_to_end() File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/protocols/airplay/player.py", line 91, in _wait_for_media_to_end resp = await self.rtsp.connection.get("/playback-info") File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/support/http.py", line 423, in get return await self.send_and_receive("GET", path, allow_error=allow_error) File "/Users/abci/Library/Python/3.9/lib/python/site-packages/pyatv/support/http.py", line 496, in send_and_receive raise exceptions.HttpError( pyatv.exceptions.HttpError: HTTP/1.1 method GET failed with code 500: Internal Server Error
Then after I have checked player.py file at path pyatv/protocols/airplay/player.py
And modify one live of code as below
`resp = await self.rtsp.connection.get("/info")`
instead of
`resp = await self.rtsp.connection.get("/playback-info")`
after changes this line of code resolved above 500: Internal Server Error but then after run above command on Apple TV it will display black screen with loader approx 3-4 seconds then close
Anyone help on this if I missed any thing or there is existing issue in this code?
Thanks in advance.
What do you need help with?
First successfully pin paired with Apple TV using this pyatv
Then I try to cast live video using play_url command as below
When execute this command getting 500: Internal Server Error as following error log on terminal
Traceback (most recent call last): File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 998, in _run_application return await cli_handler(loop) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 727, in cli_handler return await _handle_commands(args, config, storage, loop) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 877, in _handle_commands ret = await _handle_device_command(args, cmd, atv, storage, loop) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 933, in _handle_device_command return await _exec_command(atv.stream, cmd, True, *cmd_args) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/scripts/atvremote.py", line 965, in _exec_command value = await tmp(*args) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/core/facade.py", line 359, in play_url await self.relay("play_url")(url, **kwargs) File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/protocols/airplay/__init__.py", line 137, in play_url return await self._play_task File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/protocols/airplay/player.py", line 73, in play_url await self._wait_for_media_to_end() File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/protocols/airplay/player.py", line 91, in _wait_for_media_to_end resp = await self.rtsp.connection.get("/playback-info") File "/Users/abc/Library/Python/3.9/lib/python/site-packages/pyatv/support/http.py", line 423, in get return await self.send_and_receive("GET", path, allow_error=allow_error) File "/Users/abci/Library/Python/3.9/lib/python/site-packages/pyatv/support/http.py", line 496, in send_and_receive raise exceptions.HttpError( pyatv.exceptions.HttpError: HTTP/1.1 method GET failed with code 500: Internal Server ErrorThen after I have checked player.py file at path pyatv/protocols/airplay/player.py
And modify one live of code as below
instead of
after changes this line of code resolved above 500: Internal Server Error but then after run above command on Apple TV it will display black screen with loader approx 3-4 seconds then close
Anyone help on this if I missed any thing or there is existing issue in this code?
Thanks in advance.