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

RTSP only seems to work half of the time

XMLWordPrintable

      Posted by user on http://javafx.com/docs/articles/javafx1-2.jsp

      --------
      RTSP only seems to work half of the time for me. im connecting to Windows Media Encoder. if i connect from Windows Media Player itself, it works 100% of the time. but connecting from a javafx application, using the same url, only works half of the time. here is the code im using:
      import javafx.scene.Scene;
      import javafx.stage.Stage;
      import javafx.scene.media.Media;
      import javafx.scene.media.MediaPlayer;
      import javafx.scene.media.MediaView;
       
       
      var stage : Stage = Stage {
      width: 100
      height: 100
      scene: Scene {
      content: MediaView {
      mediaPlayer: MediaPlayer {
      autoPlay: true
      media: Media {
      source: "rtsp://xxx.xxx.xxx.xxx:27150"
      }
       
      }
      }
      }
      }

            vbaranovsunw Vyacheslav Baranov (Inactive)
            udhanikoorcl Uday Dhanikonda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: