Play video in SWT app?

I want to run a video in a SWT application on Windows. Do you think this is possible in the first place? If so, what technologies do you offer?

Thank you very much and welcome Krt_Malta p>

+3
source share
2 answers

I managed to do this quite initially. I used the AWT SWT bridge and played the video using JMF on AWT, therefore I was able to see it in SWT.

+3
source

Hmnnn ... I would probably create a SWT composite with a built-in browser and run your video in that built-in browser. That way, you can simply use the rendering capabilities of the video browser.

public class BrowserComposite extends Composite {
  private Browser _browser;

  public BrowserComposite(Composite parent) {
    super(parent, SWT.NONE);
    setLayout(new FillLayout());
    _browser = new Browser(this, SWT.NONE);
  }

}

, , Flash - .

FYI - Windows IE, , Mozilla, Mozilla . Mac Safari - , Mozilla.

+4

Source: https://habr.com/ru/post/1736001/


All Articles