Bonjour à tous,
Débutant avec Windev, je cherche à intégrer un ActiveX destiné à afficher la vidéo d'une caméra.
Pour la caméra, c'est une AXIS. J'ai installé le SDK et trouvé l'AcitveX correspondant (AXIS MEDIA CONTROL CLASS)
J'ai tiré les infos suivantes de la doc (pour VB6.0)
Je n'arrive pas à "traduire" cela et surtout à initialiser le contrôle.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 Private Sub Cmd_PlayLive_Click() ' Set the media URL and the media type AMC.MediaURL = "http://10.13.9.123/axis-cgi/mjpg/video.cgi" AMC.MediaType = "mjpeg-unicast" ' Start the download of the mjpeg stream from the Axis camera/video server On Error GoTo ErrorHandler AMC.Play Exit Sub ErrorHandler: MsgBox "Error: " & Err.Description End Sub Private Sub Cmd_StopPlay_Click() AMC.Stop End Sub
Est-ce qu'un PRO de Windev pourrait m'aiguiller sur la façon de procéder ?
Tous mes remerciements par avance
Partager