Reputation: 63
My project is based on the MediaComposition API.
MediaComposition composition = new MediaComposition();
It uses clips with video effects...
MediaClip mainClip = await MediaClip.CreateFromFileAsync(someVideo);
mainClip.VideoEffectDefinitions.Add(new VideoEffectDefinition(typeof(SomeVideoEffect).FullName, new PropertySet { "Data", data }));
composition.Clip.Add(mainClip);
And it also uses overlays...
MediaClip overlayClip = MediaClip.CreateFromColor(Colors.Red, mainClip.OriginalDuration);
MediaOverlay overlay = new MediaOverlay(overlayClip);
MediaOverlayLayer layer = new MediaOverlayLayer();
layer.Overlays.Add(overlay);
compositon.OverlayLayers.Add(layer);
The thing is, the overlays are always on top of the video effects, and the order of adding them has no effect. In other words, even if the overlays are added to the composition before the video effects, the overlays still block the view of the video effects. Is there a way to make the video effects show on top of the overlays?
Upvotes: 0
Views: 81