Skip navigation
Demetron
Currently Being Moderated

flash pro cs4 and OSMF 1.5

Jun 18, 2012 10:49 PM

Tags: #osmf #flash_cs4

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?

 
Replies
  • Currently Being Moderated
    Jun 19, 2012 1:10 AM   in reply to Demetron

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 19, 2012 2:53 AM   in reply to Demetron

    Not entirely; the error messages you provided are caused by events that were added in Flash Player 11.1 (from the top of my head). You'll need to update the globalplayer to that version.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points