Ticket #211 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[ERROR] time 17:28:16.657 :: org.flowplayer.model::ClipEvent : Error in fireExternal() TypeError: Error #1009: Cannot access a property or method of a null object reference. http://localhost/ova/ova.flowplayer/examples/flowplayer-specific/example08.html Line 0

Reported by: paul Owned by: paul
Priority: blocker Milestone: OVA for Flowplayer (v1.0.0)
Component: OVA for Flowplayer Version: OVA for Flowplayer (trunk)
Keywords: Cc:
Forum thread:

Description

[ERROR] time 17:28:16.657 :: org.flowplayer.model::ClipEvent : Error in fireExternal() TypeError: Error #1009: Cannot access a property or method of a null object reference.
 http://localhost/ova/ova.flowplayer/examples/flowplayer-specific/example08.html
Line 0

Is being generated - see Flowplayer specific example 8 - excluding ads from the playlist

Change History

comment:1 Changed 2 years ago by paul

It also seems that the clip properties are not being set. Looking at an example with a preview image, the image is being scaled out, not left at its 'orig' settings

comment:2 Changed 2 years ago by paul

More info... the ERROR is being generated because the clip has a "null" scaling value which is a result of this line of code in the OVA plugin:

clip.scaling = MediaSize.forName(event.stream.customProperties[prop]);

event.stream.customProperties[prop] is a MediaSize object when this line of code is hit, resulting in a null result from forName.

comment:3 Changed 2 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by using this code:

if(event.stream.customProperties[prop] is MediaSize) {

clip.scaling = event.stream.customProperties[prop];

}
else if(event.stream.customProperties[prop] is String) {

clip.scaling = MediaSize.forName(event.stream.customProperties[prop]);

}
else doLog("Unknown MediaSize definition type '" + event.stream.customProperties[prop] + "'", Debuggable.DEBUG_CONFIG);

Note: See TracTickets for help on using tickets.