Ticket #415 (closed defect: fixed)
Null object related exception thrown when playlist loaded with autostart and loadOnDemand
| Reported by: | paul | Owned by: | paul |
|---|---|---|---|
| Priority: | blocker | Milestone: | OVA for JW5 (v1.0.1) |
| Component: | OVA for JW Player 5 | Version: | OVA for JW Player 5 (trunk) |
| Keywords: | Cc: | ||
| Forum thread: |
Description
Null object related exception thrown when playlist loaded with loadOnDemand.
See this test case:
http://localhost/support/marco/ondemand/jwplayer59.html
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.longtailvideo.jwplayer.utils::Strings$/isAbsolutePath()
at com.longtailvideo.jwplayer.utils::Strings$/getAbsolutePath()
at com.longtailvideo.jwplayer.media::VideoMediaProvider/load()
at com.longtailvideo.jwplayer.controller::Controller/play()
at com.longtailvideo.jwplayer.controller::Controller/unlockPlayback()
at com.longtailvideo.jwplayer.player::Player/unlock()
at org.openvideoads.plugin.jwplayer.streamer::OpenAdStreamer/unlockPlayer()
at org.openvideoads.plugin.jwplayer.streamer::OpenAdStreamer/onAdSlotLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.openvideoads.base::EventController/dispatchEvent()
at org.openvideoads.vast::VASTController/onAdSlotLoaded()
at org.openvideoads.vast.schedule.ads::AdSlot/onTemplateLoaded()
at org.openvideoads.vast.server.request::AdServerRequestProcessor/postProcessRequestsAndNotifyListener()
at org.openvideoads.vast.server.request::AdServerRequestProcessor/moveOntoNextAdServerRequestGroup()
at org.openvideoads.vast.server.request::AdServerRequestProcessor/processNextAdServerRequestInActiveAdServerRequestGroup()
at org.openvideoads.vast.server.request::AdServerRequestProcessor/takeNextStep()
at org.openvideoads.vast.server.request::AdServerRequestProcessor/onTemplateLoaded()
at org.openvideoads.vast.server.response::AdServerTemplate/signalTemplateLoaded()
at org.openvideoads.vast.server.response::AdServerTemplate/templateLoaded()
at org.openvideoads.vast.model::VideoAdServingTemplate/templateLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
Raised on the forums by Marco:
Change History
comment:2 Changed 13 months ago by paul
Looks like the deliveryType="streaming" is causing some type of matching when it comes to pulling out the media type after the on demand load... the following debug comes up once the ad call has completed:
12:12:44 GMT+0100 Debuggable: Loading up the newly retrieved ad slot into the player playlist
12:12:44 GMT+0100 LinearVideoAd: Searching for linear ad SPECIFICALLY matching type: any, bitrate: -1, width: -1, height: -1
12:12:44 GMT+0100 LinearVideoAd: Could not match a media file for the given search parameters
Why is a match not being found?

Looks to be tied to the ad call somehow. If a different ad call is used, the error does not happen and ads play.
In addition, a safety condition has been placed in the sync() function to stop the URL being set to null for holding clips - this ensures that the blank holding clip plays if there is an error.