Below is a client-side (browser-based) solution for pre-roll and playlists for iOS devices. This works for VOD to live, or VOD to VOD. (It did not work in my test for live to VOD.) Switching from one video or stream to another with different audio encoding will not work. The transitions are not seamless, there is a couple moments of load time.
VOD pre-roll for live stream