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

Auto-play with no button callbacks #91

Closed
avidsapp opened this issue Jun 9, 2021 · 1 comment
Closed

Auto-play with no button callbacks #91

avidsapp opened this issue Jun 9, 2021 · 1 comment

Comments

@avidsapp
Copy link

avidsapp commented Jun 9, 2021

For my use case, it's ideal that the stream start in conjunction with node and without button callbacks. Removing the buttons is simple enough, but directly calling wsac.playStream() returns the error Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.

@avidsapp
Copy link
Author

avidsapp commented Jun 9, 2021

Resolved by moving self.start_feed(); function outside of the scope of socket.on("message"... function, but still inside of new_client(socket) function in _server.js. Comment out buttons on index.html

@avidsapp avidsapp closed this as completed Jun 9, 2021
This issue was closed.
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

No branches or pull requests

1 participant