aws-samples / amazon-ivs-player-web-sample

This project contains code samples demonstrating how to build, package, and integrate with the Amazon IVS Player Web SDK.
https://docs.aws.amazon.com/ivs/
MIT No Attribution
81 stars 32 forks source link

Empty M3U8 media playlist doesn't trigger 'events.PlayerEventType.ERROR' event #51

Open moerradi opened 2 years ago

moerradi commented 2 years ago

Describe the bug i'm trying to serve custom m3u8 file using AWS IVS player, however when I try to send the player a master m3u8 playlist that points on an empty m3u8 media playlist the Error event doesn't get triggered and the play just gets stuck in an IDLE state

To Reproduce

  1. create an nginx server that contains 3 files a master playlist similar to this:
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-STREAM-INF:BANDWIDTH=400000,RESOLUTION=288x160 FRAME_RATE=30
    index1.m3u8
    #EXT-X-STREAM-INF:BANDWIDTH=900000,RESOLUTION=640x360 FRAME_RATE=30
    index2.m3u8

    and empty files index1.m3u8 and index2.m3u8 give the IVS player http://localhost/index.m3u8 the player will load the master then when it tries to load the media playlist and finds it empty it just crashes without triggering the ERROR event

johnBartos commented 2 years ago

Hey @moerradi. thanks for the report. I'll bring this up with the team and see what we can do about it.