media-stream-player-js icon indicating copy to clipboard operation
media-stream-player-js copied to clipboard

Snapshot functionality doesn't work on localhost

Open lekoaf opened this issue 5 years ago • 0 comments

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 still_image_error

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.

lekoaf avatar Oct 02 '20 13:10 lekoaf