Ticket #131 (closed defect: duplicate)
OVA compatibility with ipad flowplayer plugin
| Reported by: | alexkb | Owned by: | paul |
|---|---|---|---|
| Priority: | critical | Milestone: | OVA for Flowplayer (0.5.2) |
| Component: | OVA for Flowplayer | Version: | OVA for Flowplayer (trunk) |
| Keywords: | Cc: | ||
| Forum thread: |
Description
The OVA plugin is working great for us, but as soon as we enable the ipad plugin ( http://flowplayer.org/plugins/javascript/ipad.html), and load the page on a pc, we get a javascript error:
############
Error: $f("a.player1", " http://releases.flowplayer.org/swf/flowplayer-3.2.3.swf", {playlist: [{url: " http://blip.tv/file/get/######.m4v"}], plugins: {controls: {autoHide: "always"}, ova: {url: " http://player.longtailvideo.com/flowplayer/ova-trial.swf", autoPlay: true, overlays: {regions: [{id: "bottom", verticalAlign: "bottom", horizontalAlign: "center", backgroundColor: "#000000", padding: "-10 -10 -10 -10", width: 450, height: 50}]}, ads: {servers: [{type: "OpenX", apiAddress: " http://#####/www/delivery/fc.php"}], notice: {textStyle: "smalltext"}, schedule: [{zone: "16", position: "pre-roll"}, {zone: "17", position: "auto:bottom", width: 450, height: 50, startTime: "00:05:00", duration: "15"}, {zone: "18", position: "auto:bottom", width: 450, height: 50, startTime: "00:10:00", duration: "15"}, {zone: "19", position: "auto:bottom", width: 450, height: 50, startTime: "00:15:00", duration: "15"}, {zone: "20", position: "post-roll"}]}}}}).ipad is not a function
Source File: http://####/video8.php
Line: 87
############
The player still loads fine on pc in this instance. When viewing the video on ipad though, it tells the user they need flash installed.
The same video works fine on both devices, when the OVA plugin isn't used.
Thanks.
- Alex
Change History
comment:1 Changed 3 years ago by paul
- Status changed from new to assigned
- Version set to OVA for Flowplayer (trunk)
comment:2 Changed 3 years ago by paul
Hi Alex,
The issue seems to be in the way the player container is being identified.
I tested the following config and it seems to work perfectly. When doing this I did find that if I use the class i.e. "a.example" of the player container to identify it, a javascript error is generated. Using an ID all is fine - no javascript error.
Can you let me know if this solves your issue?
<a id="test" style="display:block;width:500px;height:300px;"></a>
<script type="text/javascript">
flowplayer("test", FP_SWF_2, {
playlist: [
{
url: OVA_HTTP_SHOW_STREAM_1,
duration: 20
}
],
plugins: {
ova: {
url: OVA_OAS_URL_2,
"ads": {
"servers": [
{
"type": "OpenX",
"apiAddress": OVA_OPENX_API
}
],
"schedule": [
{
"zone": "5",
"position": "pre-roll"
}
]
},
"debug": {
"levels": OVA_OAS_DEBUG,
"debugger": "firebug"
}
}
}
}
).ipad();
</script>
comment:3 Changed 3 years ago by alexkb
Hi Paul,
Thanks for the prompt reply! I've just given this a shot, and it does fix the jscript error in pc web browsers. However, the video doesn't play on the ipad - instead of it telling the user they need to install flash, it shows a black box.
I guess this is more of a problem for the ipad flowplayer plugin developers, but if you have any other suggestions, please let me know.
Thanks again.
- Alex
comment:4 Changed 3 years ago by paul
- Status changed from assigned to closed
- Resolution set to duplicate
Hi..
So my reading on this is that OVA can't work with the iPad at present because after all, it does require Flash to run. From what I understand of the iPad JS plugin for Flowplayer, it falls back to the embedded Video tag if the iPad is detected.. so for OVA to work with that, a HTML5 version of the VAST framework is required.
I'm actually developing the HTML 5 version of OVA right now and hope to have a version out shortly.. but it's still a way to go..
I may be wrong on this, but that's my current understand. I think that I'll close out this issue ticket on that basis and merge it into Ticket #36 which is tracking the development of the HTML5 plugin.
Sorry it's not a working solution for you right now ...
comment:5 Changed 3 years ago by alexkb
Hey Paul,
Thinking about this problem a bit more, I guess, what would be a suitable solution in the interm, is for the OVA plugin to detect the user's browser doens't support flash, and to just use flowplayer ad-free.
This is what the majority of webmasters would put up with for now, because non-flash supported devices are still relatively low anyway.
Thanks.
- Alex

Investigating - assigned to fix in the next release.