0 Replies Latest reply on Feb 18, 2013 6:12 AM by eduardo.linead

    Problem with as3 interface VerifyError #1053

    eduardo.linead Level 1

      Hi, im currently extending an OSMF player project, REOPS, and i am having problems with a particular class.

      The project has an interface called IControlBar which is the interface to add a Controll Bar to the player, the ControlBar class is implementing this interface, but when i add two methods to the interface i get this error:

       

      VerifyError: Error #1053: Illegal override of ControlBar in com.realeyes.osmfplayer.controls.ControlBar.

       

      without those two methos in the IControlBar interface i have no errors, but also do not have the desired functionality in the ControlBar.

       

      here is the IControlBar class

       

      IControlBar

       

      package com.realeyes.osmfplayer.controls

      {

                public interface IControlBar extends ISkinElementBase

                {

       

          

         //WITH THESE METHODS I GET THE ERROR

        function goLiveEnabled():void;

       

        function goLiveDisabled():void;

       

                          /**

                           * Sets the percentage of the current progress indicator to the given

                           * percentage of the progress bar

                           *

                           * @param          p_value          (Number) percentage of the bar to set the progress indicator at

                           * @return          void

                           */

                          function setCurrentBarPercent( p_value:Number ):void;

                          /**

                           * Sets the percentage of the loading indicator to the given

                           * percentage of the progress bar

                           *

                           * @param          p_value          (Number) percentage of the bar to set the progress indicator at

                           * @return          void

                           */

                          function setLoadBarPercent( p_value:Number ):void;

                          /**

                           * Enables manual selection of a higher bitrate stream, if it exists

                           *

                           * @return          void

                           */

                          function bitrateUpEnabled():void;

                          /**

                           * Enables manual selection of a lower bitrate stream, if it exists

                           *

                           * @return          void

                           */

                          function bitrateDownEnabled():void;

                          /**

                           * Disables manual selection of a higher bitrate stream

                           *

                           * @return          void

                           */

                          function bitrateUpDisabled():void;

       

                          /**

                           * Disables manual selection of a lower bitrate stream

                           *

                           * @return          void

                           */

                          function bitrateDownDisabled():void;

       

       

       

       

       

                          /////////////////////////////////////////////

                          //  GETTER/SETTERS

                          /////////////////////////////////////////////

       

                          function get autoHide():Boolean;

                          function set autoHide(value:Boolean):void;

       

       

                          /**

                           * isLive

                           * Is the media playing live?

                           * @return          Boolean

                           */

                          function get isLive():Boolean;

                          function set isLive( p_value:Boolean ):void;

                          /**

                           * currentTime

                           * The current time in seconds.

                           * @return          Number

                           */

                          function get currentTime():Number;

                          function set currentTime( p_value:Number ):void;

       

                          /**

                           * duration

                           * The length of the media in seconds.

                           * @return          Number

                           */

                          function get duration():Number;

                          function set duration( p_value:Number ):void;

                          /**

                           * currentState

                           * The current state. Options include: 'stopped', 'paused', and 'playing'

                           * @return          String

                           */

                          function get currentState():String;

                          function set currentState( p_value:String ):void;

       

                          /**

                           * hasCaptions

                           * Should the control enable the closed caption controls if they exist

                           * @return          Boolean

                           */

                          function get hasCaptions():Boolean;

                          function set hasCaptions( p_value:Boolean ):void;

       

                          function get autoHideVolume():Boolean;

                          function set autoHideVolume( value:Boolean ):void;

       

       

                }

      }

       

       

      Thanks for any tip you can give me