Wowza Community

Unable to play SMIL media list

Hi,

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.

sample.smil

<?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.

Where did your store your SMIL file @Andrew O’Hara? It needs to be in the same directory as the sample mp4 or any other mps. Make sure your SMIL file is in the content folder in Wowza Streaming Engine folders. It shows up like this sometimes on its own or you can click on the Wowza Streaming Engine folder and it is in there as well. Either way is fine.

A bit more info is really required in your SMIL file and we have a great tutorial walking through these steps and playing the sample.mp4 in a playlist.

Here it is for you:

https://www.youtube.com/watch?v=KeR35oXkVkc

Hope it helps…