• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 786
  • Last Modified:

how can i play a video in a VFP form in a repeted way

I mean where the video play arrive to the end, it must play again from the beginning
0
luciliacoelho
Asked:
luciliacoelho
  • 5
  • 4
1 Solution
 
CaptainCyrilCommented:
There is a setting called loop or AutoRepeat.
0
 
luciliacoelhoAuthor Commented:
there is any object OLE property to do this? or must write code?
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
CaptainCyrilCommented:
Are you using Media Player? Back when I was diddling with media player I was able to do that using a property.
0
 
luciliacoelhoAuthor Commented:
yes, i use media player. but the property i refer is OleObject Properties. If this is not possible how can i open and replay automatically?
0
 
CaptainCyrilCommented:
There is an event called PlayStateChange. It fires when it stops playing. So you can tell the player to play the file again.

You need to create a class wrapper around Media Player to be able to do this.

DEFINE CLASS MyMediaPlayer AS ...
    PROCEDURE PlayStateChange
    *** here is where you write the code to play the file again and again
ENDDEFINE
0
 
luciliacoelhoAuthor Commented:
it is not possibel in another way more simply?
0
 
CaptainCyrilCommented:
If it's setting a property yes it would be simple. If you need to trap an even I am afraid you have to write a wrapper class.

If would also be helpful if you explain how you access the Media Player.
0
 
luciliacoelhoAuthor Commented:
the media player makes the replay. thanks
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now