Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 adding video to a trivia program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
muscatp




PostPosted: Tue Dec 05, 2006 10:58 am   Post subject: adding video to a trivia program

hello i am trying to add video clips into a trivia program i am writing. basically, i need it to display after the correct answer is given. if anyone can help me with this id really apprieciate it.thank you Very Happy
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Tue Dec 05, 2006 1:36 pm   Post subject: (No subject)

there's no build in method to play a video file inside Turing. You can ether decode the media format yourself (and try drawing it in pixels), or simply load an external player with Sys.Exec()
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Dan




PostPosted: Tue Dec 05, 2006 7:00 pm   Post subject: (No subject)

Playing video in turing can be done like tony side, it has been proven here: http://compsci.ca/v2/viewtopic.php?t=10788

Unfrontly he did not post any of his source code for this whonder, but unless you whont to spend alot of time working on replicating it Sys.Exec() is the best you can do for now.

Rember that if you just pass Sys.Exec() a path to movie file it will play in the defualt player for that file type, this could be anything or nothing depending on the computer. So rather the giving it the path to the file you might whont to tell it to launch media player and pass media player the file to open.

Also another way to make it look like you have loaded a video in to turing whold be to break each frame of the video in to an image and then display that image with the right timing in turing and just hope the audio matches up. (you should have to strip out the audio in the video and use the music comands to play it in turing).
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: