Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8095049

JavaFX2 media doesn't support Ubuntu 14.10 and later

    Details

      Description

      Ubuntu 14.10 doesn't provide libavcodec52 and libavformat52, so javafx from jdk7 can't play most of the media.
      When trying to play media file, an exception is thrown:
      Debug (0:00:00:064): Initializing GSTPlatform
      Debug (0:00:00:110): CLocator::CLocator()
      Debug (0:00:00:111): CLocatorStream::CLocatorStream()
      Error (0:00:00:113): "Error media audio format unsupported"
      Exception in thread "Thread-3" com.sun.media.jfxmedia.MediaException: "Error media audio format unsupported"
              at com.sun.media.jfxmediaimpl.MediaUtils.nativeError(MediaUtils.java:331)
              at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMedia.init(GSTMedia.java:50)
              at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMedia.<init>(GSTMedia.java:33)
              at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer.<init>(GSTMediaPlayer.java:39)
              at com.sun.media.jfxmediaimpl.platform.gstreamer.GSTPlatform.prerollMediaPlayer(GSTPlatform.java:100)
              at com.sun.media.jfxmediaimpl.platform.PlatformManager.createMediaPlayer(PlatformManager.java:173)
              at com.sun.media.jfxmediaimpl.NativeMediaManager.getPlayer(NativeMediaManager.java:264)
              at com.sun.media.jfxmedia.MediaManager.getPlayer(MediaManager.java:139)
              at mts.java.AbstractTest.createPlayer(AbstractTest.java:487)
              at mts.java.AbstractTest.createReadyPlayer(AbstractTest.java:494)
              at com.sun.media.jfxmedia.MediaManagerTestGetAllMediaPlayers$1.run(MediaManagerTestGetAllMediaPlayers.java:29)
              at java.lang.Thread.run(Thread.java:745)


      Workaround: it is possible to download and install this packages from repositories for older Ubuntu releases.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stayer Kirill Kirichenko (Inactive)
                Reporter:
                arusakov Andrey Rusakov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: