示例#1
0
        // Interace methods
        public void PrepareVideo(string vidName)
        {
            this.videoName = vidName;
            string defilepath = Application.streamingAssetsPath + "/" + vidName;

            Debug.Log("decoding path: " + defilepath);
            decoder.initDecoder(defilepath);

            Debug.Log("setting Pause!");
            decoder.setPause();
        }
示例#2
0
        public void startVideoPlay()
        {
            if (!isInitialized)
            {
                Debug.Log(LOG_TAG + " not initialized.");
                return;
            }

            if (isAdaptToResolution)
            {
                decoder.onInitComplete.AddListener(adaptResolution);
            }
            decoder.onInitComplete.AddListener(decoder.startDecoding);
            decoder.onInitComplete.AddListener(decoder.onInitComplete.RemoveAllListeners);
            decoder.initDecoder(fileSeeker.getPath());
        }