I have a sequence of MP4 videos that I want to play.. Some of them have "recap" lead ins on them that are made for people who take a break between viewings, but they can be annoying for people who want to watch them one after another......
The Wiki example led me to believe that I could pick a start time in each of the videos....
http://lslwiki.net/lslwiki/wakka.php?wakka=llParcelMediaCommandList
touch_start(integer num_detected)
{
llParcelMediaCommandList( [
PARCEL_MEDIA_COMMAND_AGENT, llDetectedKey(0),
PARCEL_MEDIA_COMMAND_TIME, START_TIME,
PARCEL_MEDIA_COMMAND_PLAY ] );
list Info = llParcelMediaQuery([PARCEL_MEDIA_COMMAND_URL, PARCEL_MEDIA_COMMAND_TEXTURE]);
llSay(0, "Playing '" + llList2String(Info, 0) + "' on texture '" + (string)llList2Key(Info, 1) + "' for agent " + llDetectedName(0));
llSetTimerEvent(RUN_LENGTH);
}
...by setting the start time to a (float) offset.
Well I tried it, and it "almost never" works... Most of the videos just load and play from offset 0.0. If I "back up" and replay the video after it has loaded for a while... "MOST of the time" the offset is observed ( so I know it is not a coding or parameter error)....
OK I figured it has something to do with how long it takes to load the video from the server, so I re-designed the sequence to check to see if there was an offset ... if there is , I do a "change the URL and pause..." depending on the 2 second function delay to allow for some processing mechanics, then repeat the llParcelMediaCommandList command with the start location and play...
Now.. SOMETIMES the offset works, and sometimes it doesn't..... of course , because I have the timer "adjusted" to compensate for the new length, the end of the video will get chopped of....
PLEASE, can someone tell me HOW HARD CAN IT BE to set an offset into a media file and ONLY play it from there? (and provide a WORKING example...) THANKIES!