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 ?
Asked
Active
Viewed 600 times
0
-
1Take a look at an approach in [Panel Tabs Extension](https://github.com/lnikkila/chrome-panel-tabs). – wOxxOm Oct 14 '15 at 08:51
-
I never know that before :) But my purpose is creating panel for my extension , its not pc software ... Thank you :) – Cuong Truong Huy Oct 21 '15 at 15:19
-
Just in case: that wasn't a "software" but also an extension. – wOxxOm Oct 21 '15 at 16:14
1 Answers
2
You can inject the
html
in thetab
where you want to show the html. See this answer how to injecthtml
:Use your own
css
ascontent 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 setsrc
of video element to this blob usingwindow.URL.createObjectURL