Assets/EasyAR/Scripts/csapi.cs
///<summary>
///Opens a video from path.
///path can be a local video file (path/to/video.mp4) or url (http://www.../.../video.mp4). storageType indicates the type of path. See `StorageType`_ for more description.
///This method is an asynchronous method. Open may take some time to finish. If you want to know the open result or the play status while playing, you have to handle callback. The callback will be called from a different thread. You can check if the open finished successfully and start play after a successful open.
///</summary>
Opens a video from path.
path can be a local video file (path/to/video.mp4) or url . storageType indicates the type of path. See `StorageType`_ for more description.
This method is an asynchronous method. Open may take some time to finish. If you want to know the open result or the play status while playing, you have to handle callback. The callback will be called from a different thread. You can check if the open finished successfully and start play after a successful open.
Opens a video from path . path can be a local video file ( path / to / video . mp4 ) or url . storageType indicates the type of path . See ` StorageType ` _ for more description . This method is an asynchronous method . Open may take some time to finish . If you want to know the open result or the play status while playing you have to handle callback . The callback will be called from a different thread . You can check if the open finished successfully and start play after a successful open .
public virtual void open(string path, StorageType storageType, CallbackScheduler callbackScheduler, Optional<Action<VideoStatus>> callback)
        {
            using (var ar = new Detail.AutoRelease())
            {
                Detail.easyar_VideoPlayer_open(cdata, Detail.String_to_c(ar, path), storageType, callbackScheduler.cdata, callback.map(p => p.OnSome ? new Detail.OptionalOfFunctorOfVoidFromVideoStatus { has_value = true, value = Detail.FunctorOfVoidFromVideoStatus_to_c(p.Value) } : new Detail.OptionalOfFunctorOfVoidFromVideoStatus { has_value = false, value = default(Detail.FunctorOfVoidFromVideoStatus) }));
            }
        }
public virtual void open ( string path , StorageType storageType , CallbackScheduler callbackScheduler , Optional < Action < VideoStatus > > callback ) { using ( var ar = new Detail . AutoRelease ( ) ) { Detail . easyar_VideoPlayer_open ( cdata , Detail . String_to_c ( ar , path ) , storageType , callbackScheduler . cdata , callback . map ( p => p . OnSome ? new Detail . OptionalOfFunctorOfVoidFromVideoStatus { has_value = true , value = Detail . FunctorOfVoidFromVideoStatus_to_c ( p . Value ) } : new Detail . OptionalOfFunctorOfVoidFromVideoStatus { has_value = false , value = default ( Detail . FunctorOfVoidFromVideoStatus ) } ) ) ; } }
Opens a video from path.
Opens a video from path .
path
string
storageType
StorageType
callbackScheduler
CallbackScheduler
callback
Optional<Action<VideoStatus>>