import Vnmf from '../../index' declare module '../../index' { /** Create audio-video treatment container,Eventually, the orbit in container can be synthesized into a video. * * > Through [Vnmf.createMediaContainer](./createMediaContainer) Create * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.html */ interface MediaContainer { /** Add audio or video tracks to the container * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.addTrack.html */ addTrack( /** Audio or video tracks to add */ track: MediaTrack, ): void /** Destruction of containers,Release of resources * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.destroy.html */ destroy(): void /** Merge orbits in containers and export video files * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.export.html */ export(): void /** Dissociate the path of incoming video source。Do not automatically add the orbit to container be synthesized。 * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.extractDataSource.html */ extractDataSource(option: MediaContainer.ExtractDataSourceOption): void /** Remove audio or video tracks from the container * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.removeTrack.html */ removeTrack( /** Audio or video tracks to remove */ track: MediaTrack, ): void } namespace MediaContainer { interface ExtractDataSourceOption { /** Video Source Address,Only local files are supported */ source: string } } /** Through [MediaContainer.extractDataSource](/docs/apis/media/video-processing/MediaContainer#extractdatasource) Back。 * [MediaTrack](/docs/apis/media/video-processing/MediaTrack) Audio or video track,We can do some work on the orbit. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaTrack.html */ interface MediaTrack { /** Type of orbit * @readonly */ kind: keyof MediaTrack.Kind /** Orbital length * @readonly */ duration: number /** Volume,Active under Audio Orbital,Writeable */ volume: number } namespace MediaTrack { interface Kind { /** Audio Track */ audio /** Video Track */ video } } interface VnmfStatic { /** Create audio-video treatment container,Eventually, the orbit in container can be synthesized into a video. * @supported weapp * @see https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/wx.createMediaContainer.html */ createMediaContainer(): MediaContainer } }