I embedded JWPlayer on my page with custom error message that display different image when stream is not online but error image is not loading.
<script type='text/javascript'>
jwplayer('player').setup({
file: 'http://blog.com/stream.m3u8',
image: 'http://blog.com/streamimage.png',
title: 'STREAMING TITLE',
width: '100%',
height: "100%",
aspectratio: '16:9',
skin: 'glow',
mute: 'true',
ga: '{}'
});
jwplayer().onError(function(){
jwplayer().load({image:"http://blog.com/streamimage-error.png"});
jwplayer().play();
});
</script>
file:"http://blog.com/error.mp4"
for example. – Hemihedral