Upgrade from 3.51 to 4.0.1 broken.
Hello all...
I upgrade from 3.5.1 to 3.5.7 that worked fine, when i upgraded from 3.5.7 to 4.0.1 one of my applications broke. Now i di dnto write them , i am just a sys admin. The person that wrote them is no longer working for us...
i installed this on Centos 5.5 64 bit
when i go to view a video, it does not stream and i see this error in the logs
| 2011-10-28 | 11:11:44 | 27619 (s)2641173 | bitrates provider start! | - |
| 2011-10-28 | 11:11:44 | 27619 (s)2641173 | videosFolder/004/4948 - | |
| 2011-10-28 | 11:11:44 | 27619 (s)2641173 | fileDirHolder: /opt/adobe/fms/applications/bitratesProvider/videosFolder/004/4948 | - |
| 2011-10-28 | 11:11:44 | 27619 (s)2641173 | type: . - | |
| 2011-10-28 | 11:11:44 | 27619 (e)2641173 | Sending error message: /opt/adobe/fms/applications/bitratesProvider/main.asc: line 55: TypeError: aDir has no properties | - |
| 2011-10-28 | 11:11:44 | 27619 (e)2641173 | Sending error message: Failed to execute method (getVideoBitrates). | - |
Once again i know nothing about programing this stuff, hopefully its an easy fix?
the actual function it complains about is this...
Client.prototype.getVideoBitrates = function( id, type ){
if( type == "full" ){
type = "."
}else if( type == "preview" ){
type = "_001";
}else if( type == "trailer" ){
type = "_002";
}
var a = new Array();
var thousandCoe = Math.floor( id / 1000 );
var thousandFolder = ( thousandCoe < 10 )? "00" + String(thousandCoe) : "0" + String(thousandCoe)
//
trace("videosFolder/" + thousandFolder + "/" + id);
var fileDirHolder = new File( "videosFolder/" + thousandFolder + "/" + id );
trace("fileDirHolder: " + fileDirHolder);
var aDir = fileDirHolder.list();
//
trace("type: " + type );
for( var i = 0; i < aDir.length; i++ ){
if( String(aDir).indexOf( ("1000k" + type) ) != -1 ){
a.push( {id:"1000k", value:1000} );
}
if( String(aDir).indexOf( ("700k" + type) ) != -1 ){
a.push( {id:"700k", value:700} );
}
if( String(aDir).indexOf( ("1600k" + type) ) != -1 ){
a.push( {id:"1600k", value:1600} );
}
if( String(aDir).indexOf( ("240k" + type) ) != -1 ){
a.push( {id:"240k", value:240} );
}
if( String(aDir).indexOf( ("360k" + type) ) != -1 ){
a.push( {id:"360k", value:360} );
}
//trace("a: " + a.toString() );
}
//trace("Call getVideoBitrates()....... > " + a.toString() );
this.call("getVideoBitrates", null, a);
//
this.disconnectUser();
}
Any ideas??? Sorry for not being clearer...
