Zeronet: how to deal `window.URL.createObjectURL(new window.MediaSource())` host = null?

Created on 17 Dec 2016  Â·  11Comments  Â·  Source: HelloZeroNet/ZeroNet

hi, I'm cinema online owner, I want to add gtihub.com/bilibili/flv.js to my site to play Flv video , but when flv.js execute window.URL.createObjectURL(new window.MediaSource()), it get URL is"blob:null/3fa58623-5096-40fe-859d-1147135b2305" , it can't be load, how to deal it? thanks~

easy enhancement

Most helpful comment

I can't change the sandbox limitations, but adding a new "wrapperRequestFullscreen" could be possible.

All 11 comments

It's the sandboxed iframe's limitation and I don't know any workaround for it.

is it a bug with chrome?

I'm not sure if it's bug or a feature, there is lots of result if you search for "blob:null sandboxed iframe" on google

I tried to add allow-same-origin to zeronet iframe, and window.URL.createObjectURL(new window.MediaSource()) work. But..it seems like it will let zeronet to be unsafe😂

could zeronet add some video support? if not we are hard to build a video site in zeronet

You mean big file support by "video support"?

no, video in iframe can't change to full screen, now we only can change the video screen size to window size. I think maybe we can add a video support API for media file

I can't change the sandbox limitations, but adding a new "wrapperRequestFullscreen" could be possible.

Thanks a lot

Page.cmd("wrapperRequestFullscreen") added in latest rev: https://github.com/HelloZeroNet/ZeroNet/commit/5103879471176fced494dc70d35e8384275f787e

thank you very much :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yurkobb picture yurkobb  Â·  3Comments

sermont picture sermont  Â·  3Comments

sergei-bondarenko picture sergei-bondarenko  Â·  3Comments

iShift picture iShift  Â·  3Comments

trenta3 picture trenta3  Â·  3Comments