aws-samples / aws-samples/amazon-ivs-player-web-sample
Empty M3U8 media playlist doesn't trigger 'events.PlayerEventType.ERROR' event
- Dominant language
- JavaScript
- Stars
- 90
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
**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
Contributor guide
Research direction
No repository file or test is named. Start by reproducing the issue with the nginx-hosted master playlist and empty index1.m3u8 and index2.m3u8 files in the AWS IVS Player Web SDK; done means the player emits events.PlayerEventType.ERROR instead of remaining IDLE.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100