Thanks hiddentux,
and I should thank camille as well,
We can get the relative path using the code snippet shared by Camillie.
Earlier, even after trying to load video using her code, I couldnot get the video to play.
Reason was that video was not loaded.
I realized that when I am using breakpoint, video is playing, however when I remove the breakpoint, it won't
` vkString str;
str = GetStage().GetProject().GetAssetURI().GetString();
//str = "file:///C:/Path/To/Experience/win32/data/experience/experience.mpbin/experience.mpproj"
vkString::ConstIterator iter = str.FindLast("/");
str.Cut(iter);
iter = str.FindLast("/");
str.Cut(iter);
//I need to cut twice so str = "file:///C:/Path/To/Experience/win32/data/experience"
// I have saved my videos manually in the experience folder
str << "/Videos/Intro.wmv";
if(introVideo)
{
introVideo.SetSourcePath(str);
introVideo.SetSourceType(vkVideo::EType::File);
introVideo.Load();
// Important step if the video is not loaded
while(!introVideo.IsPlaying())
introVideo.Play();
}
}`
Hope it helps
Thanks