# Stream videos with HTML-DASH and HLS Why would I want to use hls or dash? Dash and Hls are great for streaming large files and give the user the ability to jump around in the video, fast forward, rewind or jump to an index. In the past you needed expensive streaming servers and serve videos using rtsp: or mms: In StreamEngine convert a file you want to stream from a website to mp4-hls, mp4-dash or mp4-hls+dash. This will create a tar or tar.gz file DASH - Dynamic Adaptive Streaming over HTTP then copy the file to your webserver and name it playlist.m3u8 or modify the <source src = "playlist.m3u8" ... line below. ```html HLS-DASH Player ``` This HTML file does the following: 1. It includes the video.js CSS and JavaScript files from a CDN. 2. It creates a video player using the `video-js` tag. 3. It sets the source of the video to your `playlist.m3u8` file. 4. It initializes the video.js player and attempts to start playback. To use this: 1. Save this HTML code to a file (e.g., `player.html`) on your web server. 2. Make sure your `playlist.m3u8` file is in the same directory as the HTML file, or update the `src` attribute with the correct path to your playlist file. 3. Access the HTML file through your web server (e.g., `https://yourserver.com/player.html`). Note: - Ensure that your web server is correctly configured to serve the `.m3u8` file with the correct MIME type (`application/x-mpegURL`). - The player's size is set to 640x360 pixels. You can adjust these values as needed. - This example uses video.js version 7.20.3. You may want to check for the latest version and update the URLs accordingly.