Using C#, I have created video with WindowsMediaRenderer's Render() method as mentioned in below code, the created video is not working in web browser, it runs only in windows media player.
Can you please help me to resolve this issue ?
using (WindowsMediaRenderer renderer = new WindowsMediaRenderer(timeline, resultMobileVideoFile, WindowsMediaProfiles.HighQualityVideo, null, null))
{
renderer.Render();
}
What I have tried:
using (ITimeline timeline = new DefaultTimeline())
{
IGroup groupV = timeline.AddVideoGroup("groupV", 25, 32, 1280, 720);
IGroup groupA = timeline.AddAudioGroup("groupA", 25);
var firstClip = groupV.AddTrack().AddVideo(startingVideoFile);
groupA.AddTrack().AddAudio(audioFile, 0, 0, 5);
var secondClip = groupV.AddTrack().AddVideo(middleVideo, firstClip.Duration);
groupA.AddTrack().AddAudio(middleVideo, firstClip.Duration);
var fouthClip = groupV.AddTrack().AddVideo(endingVideoFile, firstClip.Duration + secondClip.Duration);
groupA.AddTrack().AddAudio(audioFile, firstClip.Duration + secondClip.Duration, 0, 5);
using (WindowsMediaRenderer renderer = new WindowsMediaRenderer(timeline, resultMobileVideoFile,
WindowsMediaProfiles.HighQualityVideo, null, null))
{
renderer.Render();
}
}