Cuong Truong Huy
Cuong Truong Huy

Reputation: 59

Panel in Chrome Extension

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

Answers (1)

Siddharth
Siddharth

Reputation: 7166

  1. You can inject the html in the tab where you want to show the html. See this answer how to inject html :

    Inject HTML into a page from a content script

  2. Use your own css as content script to position your element.

  3. 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

Related Questions