setAudioTrack method

  1. @override
Future<void> setAudioTrack(
  1. int textureId,
  2. Map<String, dynamic> track
)
override

Overlays an external audio track on the loaded timeline.

track is a JSON-compatible map produced by AudioTrack.toJson.

Implementation

@override
Future<void> setAudioTrack(int textureId, Map<String, dynamic> track) {
  return methodChannel.invokeMethod<void>('setAudioTrack', <String, Object?>{
    'textureId': textureId,
    'track': track,
  });
}