Skip to main content
Participant
June 23, 2022
Answered

window.open for cep

  • June 23, 2022
  • 2 replies
  • 1288 views
Hi!
 
I'm developing an extension for Premiere Pro and using CEP. For my task, I need to open a window with another site and get information from it (as in window.open for JavaScript). window.open is not available in CEP.
 
Is there a solution for this?
 
I have read a lot of materials about this, but it seems that many methods don't work now.

Thank you.
This topic has been closed for replies.
Correct answer Justin Taylor-Hyper Brew

Use the 

openURLInDefaultBrowser('https://google.com')

method in CSInterface.

 

If you need to communicate with another site, then use something like fetch() or Web Sockets.

2 replies

Justin Taylor-Hyper Brew
Community Expert
Community Expert
July 13, 2022

Use the 

openURLInDefaultBrowser('https://google.com')

method in CSInterface.

 

If you need to communicate with another site, then use something like fetch() or Web Sockets.

Bruce Bullis
Legend
July 11, 2022

CEP panels are, themselves, also web pages; as you've noted, window.open wouldn't make much sense, in that environment. 

Panels can also open urls in the system's default browser, but I doubt csInterface.openURLInDefaultBrowser() is what you want...

 

What sort of web page are you attempting to open? Could you obtain the information you're getting from that web page, via another method? Perhaps an API?