// Start is called before the first frame update
    void Start()
    {
        avPlayer        = AVPlayerConnect.AVPlayerCreate();
        renderEventId   = AVPlayerConnect.AVPlayerGetEventID(avPlayer);
        renderEventFunc = AVPlayerConnect.AVPlayerGetRenderEventFunc();

        AVPlayerConnect.AVPlayerSetOnReady(
            avPlayer,
            transform.root.gameObject.name,
            ((Action <string>)CallbackReadyPlayer).Method.Name);
        AVPlayerConnect.AVPlayerSetContent(avPlayer, TEST_CONTENT_PATH);
    }
 public void OnPrepareMovie()
 {
     if (avPlayer == IntPtr.Zero)
     {
         avPlayer = AVPlayerConnect.AVPlayerCreate();
     }
     renderEventId   = AVPlayerConnect.AVPlayerGetEventID(avPlayer);
     renderEventFunc = AVPlayerConnect.AVPlayerGetRenderEventFunc();
     AVPlayerConnect.AVPlayerSetOnReady(
         avPlayer,
         transform.root.gameObject.name,
         ((Action <string>)CallbackReadyPlayer).Method.Name);
     AVPlayerConnect.AVPlayerSetContent(avPlayer, TEST_CONTENT_PATH);
 }