Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

"Live" only logo for a wowza stream...


I'm trying to add a live logo (image) to a JW player. I see I can do it with the "logo" customization, however that shows up when offline and online from a wowza stream.

Is there a way to display a logo in the same way, but have it not show up when the stream that the player is connected to is offline?


At the same time, if the stream is offline, is it possible to show a "poster" image and not have the error display?

I guess I'm looking for sample code, as I can't seem to figure these two things out.

Thanks!
Blue

16 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Something like this?

http://support.jwplayer.com/customer/portal/articles/1442607-example-a-custom-error-message

blue

User  
1 rated :

Yes... indeed something like that... plus hide the logo... which I can't seem to get to hide once its set.

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link you can provide?

blue

User  
0 rated :

To the live stream?

http://poweredbysage.com/live-demo/


I'm running tests this am....

Ethan Feldman

JW Player Support Agent  
0 rated :

This is working fine. So you do not want the logo to show up in the player when the stream is down? That is not currently possible.

blue

User  
0 rated :

Too bad... ok... so is it possible to just show a poster image while offline rather than a video?

blue

User  
0 rated :

Ethan,

Is there a workaround that you would suggest? Perhaps a different way to show the "live" icon?

Blue

Ethan Feldman

JW Player Support Agent  
0 rated :

Why do you not want to show an icon?

blue

User  
0 rated :

Ethan,

Its really just when the steam is not online... showing a "live" logo doesn't make much sense :)

So its really two fold....

1. I'd like to show an image when the stream is offline... and when the stream is paused when live, have the image shown something different.

2. The "logo" icon we've been using is a live image... so that doesn't make sense to show when offline :)

Thoughts?
Blue

Ethan Feldman

JW Player Support Agent  
0 rated :

The best way to do this would be this would be to set up two players then based on streaming or not.

blue

User  
0 rated :

And manually change them? Or use code to determine which to show?

Ethan Feldman

JW Player Support Agent  
0 rated :

Manually.

blue

User  
0 rated :

Got it... ok... on the other code you sent over.

is this how it should look:

<script src="http://jwpsrv.com/library/nMZeyLWyEeOAlSIACi0I_Q.js"></script>

<div id='playerFzmSQlxSXdHP'></div>
<script type='text/javascript'>
jwplayer('playerFzmSQlxSXdHP').setup({
file: 'http://192.31.132.186/medium/ngrp:money20_medium/playlist.m3u8',
image: 'http://flipit-sage.s3.amazonaws.com/offline.jpg',
title: 'Money 2.0 Livestream',
width: '640',
height: '360',
autostart: 'true',
primary: 'flash',
ga: '{}'
});

jwplayer().onBuffer(function(){
theTimeout = setTimeout(function(){
jwplayer().load({file:"http://sage-jwplayer.s3.amazonaws.com/Offline.mp4",image:"http://flipit-sage.s3.amazonaws.com/offline.jpg"});
jwplayer().play();
},5000);
});

</script>

Ethan Feldman

JW Player Support Agent  
0 rated :

Yeah, that looks ok.

blue

User  
0 rated :

Hi again Ethan,

It does seem to catch when its offline... but once the stream goes back online, nothing....

Thoughts?

Ethan Feldman

JW Player Support Agent  
0 rated :

Sorry, what do you mean?

This question has received the maximum number of answers.