I’m taking baby steps towards eventually serving a dynamic VOD playlist that adds more media chunks as they become available in the media cache. For now, I’ll settle for a playlist that will play the local sample.mp4. I chose to use SMIL because it’s the only playlist there appears to be any documentation for.
<?xml version="1.0" encoding="UTF-8"?> <smil title="sample"> <head> </head> <body> <stream name="sample"></stream> <playlist name="pl1" playOnStream="sample"> <video src="sample.mp4"/> </playlist> </body> </smil>
In the wowza test player, I select my VOD application, and I can play mp4:sample.mp4. But if I try to play smil:sample.smil, the player says it’s connected, but the logs say:
2020-01-22 19:07:58 UTC ERROR 500 MediaReaderFactory.getInstance : java.lang.ClassCastException: com.wowza.wms.mediareader.smil.MediaListReaderSMIL cannot be cast to com.wowza.wms.stream.IMediaReader|at com.wowza.wms.stream.MediaReaderFactory.getInstance(MediaReaderFactory.java:19)|at com.wowza.wms.stream.file.PlaylistPlayer.a(PlaylistPlayer.java:574)|at com.wowza.wms.stream.file.PlaylistPlayer.b(PlaylistPlayer.java:568)|at com.wowza.wms.stream.file.PlaylistPlayer.play(PlaylistPlayer.java:773)|at com.wowza.wms.stream.file.MediaStreamFilePlay.play(MediaStreamFilePlay.java:111)|
Judging by the error, wowza appears to be refusing to treat my playlist as a playlist. There may be a problem with my file, and I’ve already tried using both sample.mp4 and mp4:sample.mp4 as the video src attribute.
There’s a related question at https://www.wowza.com/community/questions/6775/media-reader-error.html, but the answer doesn’t seem to be helpful. Changing my VOD application to live would be contrary to my goal, and I’m not sure how I can change the stream type.