Providing an integrated view of your timeline when playing HLS interstitials
Go beyond simple ad insertion with point and fill occupancy HLS interstitials.
Overview
Configure the sample code project
Using the examples under the Live stream examples section of the app requires running a local test stream. The project includes a Go script that starts a local web server that hosts this example stream. You must have Go installed to run this script.
Open a Terminal window, change to the /Source/LiveStreamExample/ directory, and run the following command to start the stream:
go run liveStreamGenerator.go --http :8443 map.mp4 segment0.m4s segment1.m4s segment2.m4sWhen the stream starts, copy its URL, which is in the following format: http://<hostname>:8443/media.m3u8. In the Xcode project, open the Menu.json file, and replace the placeholder URLs (http://livestreamserver.url:8443/media.m3u8) with your local stream URL. Relaunch the app to view the live stream examples.