Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Skip Ad Button

5 replies [Last post]
Reply

I'm having trouble getting RC3 to work locally so I can take advantage of the skip ad button.

The example found here works fine:

http://static.openvideoads.org/rc/3/ova.jwplayer.5x/examples/pages/skip-button/example01.html

If I copy that example locally it continues to work:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0" width="450" height="300" id="player">
<param name="movie" value="http://static.openvideoads.org/rc/3/ova.jwplayer.5x/dist/swf/5.7.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="plugins=http://static.openvideoads.org/rc/3/ova.jwplayer.5x/dist/swf/ova-jw.swf&config=http://static.openvideoads.org/rc/3/ova.jwplayer.5x/examples/config/skip-button/ova01.xml">
<embed id="player" data="http://static.openvideoads.org/rc/3/ova.jwplayer.5x/dist/swf/5.7.swf" src="http://static.openvideoads.org/rc/3/ova.jwplayer.5x/dist/swf/5.7.swf" width="450" height="300" allowscriptaccess="always" allowfullscreen="true" flashvars="plugins=http://static.openvideoads.org/rc/3/ova.jwplayer.5x/dist/swf/ova-jw.swf&config=http://static.openvideoads.org/rc/3/ova.jwplayer.5x/examples/config/skip-button/ova01.xml&file=http://streaming.openvideoads.org/shows/the-black-hole.mp4&duration=30&provider=video">
</object>

However, if I swap out the OVA plugin for a local version downloaded from here:

http://static.openvideoads.org/rc/3/ova.jwplayer.5x/

...the ad no longer displays and I get no debug info.

Now, if I also swap out the JW Player for a local version:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0" width="450" height="300" id="player">
<param name="movie" value="/jwplayer/player_5.8.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="flashvars" value="plugins=/jwplayer/plugins/ova_jw.swf&config=http://static.openvideoads.org/rc/3/ova.jwplayer.5x/examples/config/skip-button/ova01.xml">
<embed id="player" data="/jwplayer/player_5.8.swf" src="/jwplayer/player_5.8.swf" width="450" height="300" allowscriptaccess="always" allowfullscreen="true" flashvars="plugins=/jwplayer/plugins/ova_jw.swf&config=http://static.openvideoads.org/rc/3/ova.jwplayer.5x/examples/config/skip-button/ova01.xml&file=http://streaming.openvideoads.org/shows/the-black-hole.mp4&duration=30&provider=video">
</object>

...I still don't get the ad, but I DO get some debug info:

15:09:11 GMT-0500 Debuggable: Debug level has been set to 1088
15:09:11 GMT-0500 Debuggable: OVA for JW 5.x - v1.0.0 RC7 (build 15) - player is 5.8.2011 (Licensed version)
15:09:11 GMT-0500 Debuggable: No OVA configuration provided - ad streamer will not be capable of playing any ads
15:09:11 GMT-0500 Debuggable: OVA startup aborted.
15:09:11 GMT-0500 Debuggable: Unlock called, but OVA does not have the player locked - lock count is 0
15:09:11 GMT-0500 Debuggable: The External API has been registered

It seems like my local version of the OVA plugin refuses to read any config data I throw at it. I've tried a remote XML file, a local XML file, and also the inline option.

Please help!

Reply

Hi,

Ok, so you're issue is a config one.. the "No configuration provided" message is the pointer on that..

What happens when you bring up the following URL in your browser?

http://localhost/jwplayer/plugins/ova_jw.swf

?

Paul

Reply

Oh, wait a sec!!! I see the problem.

You've named the OVA SWF "ova_jw.swf" - please leave it as "ova-jw.swf" - JW Player has some rules around plugin SWF naming and the big one is that the name must reflect what you have put in the config. The "-" has special significance in the name.

"ova-jw" is a name that JW Player interprets as "ova" so the player expects <ova.XXX> tags in the config. By calling the SWF "ova_jw" JW Player is expecting your config to be specified with <ova_jw.XXX> tags.

Rename it back to "ova-jw.swf" and I bet it works...

Paul

Reply

That works! Thanks Paul!

Reply

Related issue...

For CDN and versioning reasons, I need to be able to rename the plugin swf file.

If I use /jwplayer/plugins/ova_rc7.swf I get the "No OVA configuration provided" as stated previously. I'm using the inline config option. Is there a way to indicate the different file name for the inline config?

I can't use <ova_rc7.XXX> tags since those are not included in the json for the inline config.

Reply

Hi - Ok, I understand...

So just rename it to "ova-something"... the dash is special in JW Player and allows versioning on the SWF and everything after the "-" will be derived when determining the plugin name for the config - it's kind of an internal/undocumented thing for now so use that with caution.

Just go "ova-jw_rc7.swf" or something - that should work...

Paul

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options