Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 6:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: dynamic video playback
PostPosted: January 20th, 2005, 1:46 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
I think the advanced forum suits this question, but if not, feel free to replace.


The thing i'm trying to accomplish: I need to load video's dynamicly into opus. I have a sort of screensaver / attention movie to start my presentation. This consists of some movies which play after each other.

The movies must be uploaded through a content management system, thus seperate from opus. So i need to get those movielocations from a database, and load the movies into opus. I'm now testing this with a simple array, and trying to load the movies into opus... But, cant get it working.

Code:
var movieArr = new Array();
movieArr[0] = "C:/zuilenserver/test/movies/vw.mpg";
movieArr[1] = "C:/zuilenserver/test/movies/vts.mpg";

MOVIE = movieArr[0];
MOVIE.Play();


Top
 Profile  
 
 Post subject:
PostPosted: January 20th, 2005, 1:57 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,

Thank you for your enquiry.

The Play() function applies to the video object (not the file you wish to play), so you will need to edit your code to read the following:

Code:
var movieArr = new Array();
movieArr[0] = "C:/zuilenserver/test/movies/vw.mpg";
movieArr[1] = "C:/zuilenserver/test/movies/vts.mpg";

movie = movieArr[0];
Video.Play();


Now rename the Video object on your page to 'Video'.

Finally, open the properties of the Video object and select the Video tab. Now clear the current contents of the Filename field and type in the following:

<movie>

Click Apply and OK to confirm the changes and preview the publication. The video should now play as expected.

I hope this helps. Please do not hesitate to contact me if you have any further queries.

Kind regards,

_________________
Robin Garrett
Digital Workshop Technical Support


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 20th, 2005, 2:04 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Hi Robin,

Thanks again for the quick answers. I just started using Opus Pro here at my job, but as a php-er it's like being thrown into a lion's pit :-) And off-course, everything has to be done yesterday.

I think i'll be having zome more questions..


Top
 Profile  
 
 Post subject:
PostPosted: January 20th, 2005, 4:58 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Now I use the next code:

Code:
var movieArr = new Array();

movieArr[1] = "C:/zuilenserver/test/movies/vts.mpg"
movieArr[0] = "C:/zuilenserver/test/movies/vw.mpg"

// num of movies
movieNum = movieArr.length
//Debug.trace(movieNum + "\n")

//vars for movie playback
current = 0;

while (1) {
   //Debug.trace(movieArr[current]  + "\n");
   
   movie = movieArr[current];   
   Video.Play();
   movieLen = Video.GetLength();
   Debug.trace(movieLen + "\n");   
   // wait
   wait(movieLen + 3);
   // count
   if(current < (movieNum - 1)) {
      current++;
   } else {
      current = 0;
   }
}


Only it seems the waiting doesn't work as i wanted it. the trace function prints the old movielength, and only the first time the wait function waits exactly the length of the movie (+3).

Is the total length being added up, or am i missing something ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 68 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group