Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program API audio and video synthesis and track operation


May 18, 2021 WeChat Mini Program Development Document


Table of contents


MediaTrack

Base library 2.9.0 starts to support, and low versions need to be compatible.

It can be returned via MediaContainer.extractDataSource.

MediaTrack audio or video tracks that can do some work on the tracks

Property

string kind

Track type, read-only

The legal value of kind

Value Description The lowest version
audio Audio track
video Video track

number duration

Track length, read-only

number volume

Volume, audio track valid, writeable