Playing Twitch video in JavaFX WebView

I am trying to make app where you can watch streams. So far I have tried many things but this piece of code works almost perfectly. But in my app I see only THIS

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;

public class Main extends Application {    
public static void main(String[] args) { launch(args); }

@Override public void start(Stage stage) throws Exception {
WebView webview = new WebView();
webview.setPrefSize(640, 390);

stage.setScene(new Scene(webview));;

How to do it? Any ideas or solutions ? :slight_smile: Thank you for your time.

Does JavaFX even support the MSE components needed to play back HTML5 streams? Alternatively you could try loading it as Flash.

JavaFX support HTML5 videos. But I quess streams are something more complicated right?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.