Exemplo n.º 1
0
        public static VSMXNativeObject create(VSMXInterpreter interpreter, UmdVideoPlayer umdVideoPlayer, VSMXNativeObject controller)
        {
            MoviePlayer      moviePlayer = new MoviePlayer(interpreter, umdVideoPlayer, controller);
            VSMXNativeObject @object     = new VSMXNativeObject(interpreter, moviePlayer);

            moviePlayer.Object = @object;

            @object.setPropertyValue("audioLanguageCode", new VSMXString(interpreter, "en"));
            @object.setPropertyValue("subtitleLanguageCode", new VSMXString(interpreter, "en"));

            return(@object);
        }
Exemplo n.º 2
0
        public static VSMXNativeObject create(VSMXInterpreter interpreter, UmdVideoPlayer umdVideoPlayer, string resource)
        {
            Controller       controller = new Controller(interpreter, umdVideoPlayer);
            VSMXNativeObject @object    = new VSMXNativeObject(interpreter, controller);

            controller.Object   = @object;
            controller.resource = resource;

            // Callbacks
            @object.setPropertyValue("onChangeResource", VSMXNull.singleton);
            @object.setPropertyValue("onMenu", VSMXNull.singleton);
            @object.setPropertyValue("onExit", VSMXNull.singleton);
            @object.setPropertyValue("onAutoPlay", VSMXNull.singleton);
            @object.setPropertyValue("onContinuePlay", VSMXNull.singleton);

            return(@object);
        }
Exemplo n.º 3
0
        public static VSMXNativeObject create(VSMXInterpreter interpreter)
        {
            Math             math    = new Math(interpreter);
            VSMXNativeObject @object = new VSMXNativeObject(interpreter, math);

            math.Object = @object;

            @object.setPropertyValue("PI", new VSMXNumber(interpreter, (float)Math.PI));

            return(@object);
        }