hi i am trying to build a custom OSMF player using "osmf1.5.swc" and flash cs4 professional but getting this errors.....
1046: Type was not found or was not a compile-time constant: DRMStatusEvent.
1046: Type was not found or was not a compile-time constant: SystemUpdater.
1046: Type was not found or was not a compile-time constant: DRMStatusEvent.
1046: Type was not found or was not a compile-time constant: DRMErrorEvent.
1046: Type was not found or was not a compile-time constant: DRMAuthenticationCompleteEvent.
1046: Type was not found or was not a compile-time constant: DRMAuthenticationErrorEvent.
1046: Type was not found or was not a compile-time constant: SystemUpdater.
and the AS 3.0 code i am using is...
package
{
import flash.display.*;
import org.osmf.containers.MediaContainer;
import org.osmf.elements.VideoElement;
import org.osmf.media.MediaPlayer;
import org.osmf.media.URLResource;
public class displayarea extends MovieClip
{
public function displayarea()
{
//testing console o/p
trace("hello");
//OSMF code starts here
var container = new MediaContainer();
addChild(container);
var videoelement = new VideoElement(new URLResource("Pixar_Presto.flv"));
container.addMediaElement(videoelement);
var mediaplayer = new MediaPlayer();
mediaplayer.media = videoelement;
}
}
}
any suggestions?
Hi,
please make sure you get rid of the osmf.swc bundled in the flex sdk / flash pro and to follow the steps from http://osmf.org/dev/osmf/specpdfs/building-osmf.pdf .
S.
Thank's a lot that worked,but again i got this (in output tab not in compiler error tab) by pressing ctrl+enter
VerifyError: Error #1053: Illegal override of play2 in org.osmf.net.httpstreaming.HTTPNetStream.
ReferenceError: Error #1065: Variable MainTimeline is not defined.
however it is working fine when i opened the swf in a webbrowser.
North America
Europe, Middle East and Africa
Asia Pacific