modules/media/src/main/java/javafx/scene/media/package.html

Print this page




  82 <br/>(*) HLS is a protocol rather than a container type but is included here to
  83 aggregate similar attributes.
  84 </p>
  85 
  86 <a name="SupportedProtocols"/>
  87 <h3>Supported Protocols</h3>
  88 
  89 <p>
  90 <table border="1" summary="supported protocols">
  91 <tr><th>Protocol</th><th>Description</th><th>Reference</th></tr>
  92 <tr>
  93     <td>FILE</td>
  94     <td>Protocol for URI representation of local files</td>
  95     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td>
  96 </tr>
  97 <tr>
  98     <td>HTTP</td>
  99     <td>Hypertext transfer protocol for representation of remote files</td>
 100     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td>
 101 </tr>





 102 <tr>
 103     <td>JAR</td>
 104     <td>Representation of media entries in files accessible via the FILE or HTTP protocols</td>
 105     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/JarURLConnection.html">java.net.JarURLConnection</a></td>
 106 </tr>
 107 <tr>
 108     <td>HTTP Live Streaming (HLS)</td>
 109     <td>Playlist-based media streaming via HTTP</td>
 110     <td><a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming">Internet-Draft: HTTP Live Streaming</a></td>
 111 </tr>
 112 </table>
 113 <br/>
 114 </p>
 115 <p>
 116 <h4>MPEG-4 Playback via HTTP</h4>
 117 It is recommended that MPEG-4 media to be played over HTTP be formatted such that the
 118 headers required to decode the stream appear at the beginning of the file. Otherwise,
 119 playback might stall until the entire file is downloaded.
 120 </p>
 121 <p>
 122 <h4>HTTP Live Streaming (HLS)</h4>
 123 HLS playback handles sources with these characteristics:
 124 <ul>
 125     <li>On-demand and live playlists.</li>
 126     <li>Elementary MP3 audio streams (audio/mpegurl) and multiplexed MP2T streams
 127         (application/vnd.apple.mpegurl) with one AAC audio and one H.264/AVC video track.</li>
 128     <li>Playlists with integer or float duration.</li>
 129 </ul>
 130 Sources which do not conform to this basic profile are not guaranteed to be handled.
 131 The playlist contains information about the streams comprising the source and is
 132 downloaded at the start of playback. Switching between alternate streams, bit rates,
 133 and video resolutions is handled automatically as a function of network conditions.
 134 </p>
 135 
 136 <a name="SupportedMetadataTags"/>
 137 <h3>Supported Metadata Tags</h3>




  82 <br/>(*) HLS is a protocol rather than a container type but is included here to
  83 aggregate similar attributes.
  84 </p>
  85 
  86 <a name="SupportedProtocols"/>
  87 <h3>Supported Protocols</h3>
  88 
  89 <p>
  90 <table border="1" summary="supported protocols">
  91 <tr><th>Protocol</th><th>Description</th><th>Reference</th></tr>
  92 <tr>
  93     <td>FILE</td>
  94     <td>Protocol for URI representation of local files</td>
  95     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td>
  96 </tr>
  97 <tr>
  98     <td>HTTP</td>
  99     <td>Hypertext transfer protocol for representation of remote files</td>
 100     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td>
 101 </tr>
 102     <td>HTTPS</td>
 103     <td>Hypertext transfer protocol secure for representation of remote files</td>
 104     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">java.net.URI</a></td>
 105 </tr>
 106 <tr>
 107 <tr>
 108     <td>JAR</td>
 109     <td>Representation of media entries in files accessible via the FILE, HTTP or HTTPS protocols</td>
 110     <td><a href="https://docs.oracle.com/javase/8/docs/api/java/net/JarURLConnection.html">java.net.JarURLConnection</a></td>
 111 </tr>
 112 <tr>
 113     <td>HTTP Live Streaming (HLS)</td>
 114     <td>Playlist-based media streaming via HTTP or HTTPS</td>
 115     <td><a href="http://tools.ietf.org/html/draft-pantos-http-live-streaming">Internet-Draft: HTTP Live Streaming</a></td>
 116 </tr>
 117 </table>
 118 <br/>
 119 </p>
 120 <p>
 121 <h4>MPEG-4 Playback via HTTP</h4>
 122 It is recommended that MPEG-4 media to be played over HTTP or HTTPS be formatted such that the
 123 headers required to decode the stream appear at the beginning of the file. Otherwise,
 124 playback might stall until the entire file is downloaded.
 125 </p>
 126 <p>
 127 <h4>HTTP Live Streaming (HLS)</h4>
 128 HLS playback handles sources with these characteristics:
 129 <ul>
 130     <li>On-demand and live playlists.</li>
 131     <li>Elementary MP3 audio streams (audio/mpegurl) and multiplexed MP2T streams
 132         (application/vnd.apple.mpegurl) with one AAC audio and one H.264/AVC video track.</li>
 133     <li>Playlists with integer or float duration.</li>
 134 </ul>
 135 Sources which do not conform to this basic profile are not guaranteed to be handled.
 136 The playlist contains information about the streams comprising the source and is
 137 downloaded at the start of playback. Switching between alternate streams, bit rates,
 138 and video resolutions is handled automatically as a function of network conditions.
 139 </p>
 140 
 141 <a name="SupportedMetadataTags"/>
 142 <h3>Supported Metadata Tags</h3>