Set poster image for video element.


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.


    "file": "",
    "image": "",
}).on('ready', function() {
    // Set poster image for video element to avoid black background for audio-only programs.
    var video = document.getElementById('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 build18956

GitHub Issue & Pull request