function Media(medianame,playurl,icpid,channelid,mediaicpid,clipid,url,servicetype){ this.medianame=medianame; this.playurl=playurl; this.icpid=icpid; this.channelid=channelid; this.mediaicpid=mediaicpid; this.clipid=clipid; this.url=url; this.servicetype=servicetype; } //添加集合的对象 function addElement(theArray,theElement){ if(theArray == null){ theArray = new Array; } theArray[theArray.length] = theElement; } var mediaArray = Array(); addElement(mediaArray,new Media("drm agent 测试","http://stream-auth.bbn.com.cn/user/Play.jsp",520,908,33685,142574,"" ,1));