media-stream-player-js
media-stream-player-js copied to clipboard
Snapshot functionality doesn't work on localhost
Describe the bug The snapshot functionality doesn't work on localhost.
It works for MJPEG and H264, but not Still image.
To Reproduce Run any of the examples in a localhost environment and try to export a snapshot when Still image is active.
Screenshots

Environment (please complete the following information):
- OS: Linux
- Browser: Chrome 83
- Version MSP 2.4.1
Additional context
I was using the python simpleHttpServer to create a localhost environment for the web component example. But it doesn't work with the React example and yarn dev either.
After Googling, it was suggested that you add crossOrigin="anonymous" to the image tag, but then the stream wouldn't play at all.