Using Tvideo

Post Reply
bterce@matrixcomputer.com
Posts: 10
Joined: Mon Mar 05, 2007 11:18 pm
Location: Southern California

Using Tvideo

Post by bterce@matrixcomputer.com »

Hi,

I have a video object that is created when the application activates. At some point I need to use the public video object to play different files. I was able to make it play (using video_object:playfull()) , but only when it is the first time. It won't play again using the same file. I tried resetting the video position using video_object:position():=0 before calling the :play() method but it gives me an error. Or how can you make it play again using a different file without recreating the video object?

Thanks
Bert
bterce@matrixcomputer.com
Posts: 10
Joined: Mon Mar 05, 2007 11:18 pm
Location: Southern California

Post by bterce@matrixcomputer.com »

Addendum:

I can play again when using :play(nFrom,nTo) by specifying the nFrom and nTo parameters, but I don't know how to play again using :PlayFull().

Bert
User avatar
vilian
Posts: 795
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil
Contact:

Post by vilian »

Hi Bert,

After very suffering, I gave up to use this class! One hour it touches the video, another one not.

The best solution that I found to touch videos was with the example media.prg that it uses activex to interact with windows.media.player.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
bterce@matrixcomputer.com
Posts: 10
Joined: Mon Mar 05, 2007 11:18 pm
Location: Southern California

Post by bterce@matrixcomputer.com »

Thanks,

I'll give it a try. Will it give me some control of the media player, like checking the OnClick method to check if the user clicked the Video? Do I have a way of knowing if the file being played is done so I can play the next file?

Bert
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Bert,

The samples\media.prg shows how to manage the activex events. That may be usefull for your purpouse
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply