divi255 / sphinxcontrib.asciinema

Easily embed asciinema videos into Sphinx documentation
MIT License
18 stars 12 forks source link

Embedding local asciinema files into web pages broken #11

Closed Thorsten-Sick closed 3 years ago

Thorsten-Sick commented 3 years ago

Security settings in modern browsers prevent mixing the web based player with local cast files.

The workaround is to directly embed the data as base64 data url: https://github.com/asciinema/asciinema-player/issues/64

It would be great to automatically generate base64 encoded data from the ascii-cast and create the specific data url.

If this can not be done default, maybe offer a configuration switch to make this optional

divi255 commented 3 years ago

thanks for the request. I'll think about it when have a time