Reputation: 59
I am working about Chrome Extension . I read a lot in Chrome developer but no result . My idea is load a html file to panel at right-bottom browser (or any position I liked) to show videos .I cannot use popup because it will be disappeared if i click anywhere. Except popup,buttons on menu bar , how can i create a panel in chrome browser ?
Upvotes: 0
Views: 676
Reputation: 7166
You can inject the html
in the tab
where you want to show the html. See this answer how to inject html
:
Use your own css
as content script
to position your element.
I assume you will be showing video in loaded html from external servers. But chrome extension do not allow you to reference external resources in your html. So you will need to download the video with response type blob
and just set src
of video element to this blob using window.URL.createObjectURL
Upvotes: 2