Ticket #184 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

scaling: "fit" throws an exception

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

The scaling option throws an exception. See this config:

"streams": [

{

"file":" http://cdn.tv3.ie/videos/0111/apprentice5_Tv3_16x9_1_28229.mp4",
"type": "smil",
"customProperties": {

"title": "MP4 Example Stream",
"description": "SMIL derived stream",
"scaling": "fit"

}

}

]

Change History

comment:1 Changed 3 years ago by paul

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

Fixed - modified onStreamSchedule() to have this code:

else if(prop == "scaling") {

try {

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

}
catch(e:Exception) {

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

}

}

Note: See TracTickets for help on using tickets.