public boolean open ( ) { LibMediaInfo lib = LibMediaInfo . INSTANCE ; handle = lib . MediaInfo_New ( ) ; if ( handle != null ) { int opened = lib . MediaInfo_Open ( handle , new WString ( filename ) ) ; if ( opened == 1 ) { return true ; } else { lib . MediaInfo_Delete ( handle ) ; } } return false ; }
Open the media file .