Set poster image for video element.

Source:

Audio only MP3 stream via HLS.

Expected behavior

Poster image should be visible during audio playback.
Playback should not fail due to cross domain issues while loading the poster image.

Settings:

jwplayer('player').setup({
    "file": "http://stream.ktict.co.kr:8081/livex025/99/playlist.m3u8",
    "image": "http://assets.ur.se/id/196066/images/1_l.jpg",
}).on('ready', function() {
    // Set poster image for video element to avoid black background for audio-only programs.
    var video = document.getElementById(this.id).getElementsByTagName('video')[0];
    if (video) video.setAttribute('poster', this.getConfig().image);
});

JW Player version

7.7.2 with Enterprise key

Stream server

Wowza Streaming Engine 4 Perpetual Edition 4.5.0.01 build18956

GitHub Issue & Pull request

https://github.com/jwplayer/jwplayer/issues/1330
https://github.com/jwplayer/jwplayer/pull/1497