Y
Y
Yaroslav2014-05-22 10:05:04
JavaFX
Yaroslav, 2014-05-22 10:05:04

Why doesn't the EmbeddedMediaPlayer example from the Oracle site (JavaFX in browser) work?

The task is to play mp4 video in the browser using a Java applet. JavaFX 2.2 supports this format and introduces special classes for creating a player.

Trying to understand the example http://docs.oracle.com/javafx/2/media/simpleplayer.htm . I downloaded EmbeddedMediaPlayer.zip from there and unpacked it. Downloaded the latest NetBeans (8.0). Opened the project in it, compiled it. Everything works fine outside the browser. But as soon as you open EmbeddedMediaPlayer.html in the browser or make a web start, the player starts, but the video is NOT loaded into it!

I made the assumption that the launch is made in the sandbox and the local application cannot download video from Oracle, which is the default ( download.oracle.com/otndocs/products/javafx/oow201...). OK. Uploaded the contents of the dist folder to my server.

Test video - kciray.com/testVideo.mp4 . It should load just fine from kciray.com/EmbeddedMediaPlayer.html . But no, it throws an error. By the way, I tried to replace mp4 with mp3 music - the same picture.

fcef804194b24cc0890676dbdff8a2cf.jpg
29fb030bb21b4aefa93aa4f3958ff064.jpg

System - Windows 7 x64. Although there is Windows 7 x86 under virtualbox - I did the same steps there - it doesn't work!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question