Les Snippets

Connexion

Executer une video plein écran sur un écran spécifique

Niveau requis pour utiliser/comprendre cette source : 1 ( Débutant )
Créé le 12/10/2009 00:30:56 et initié par Willi [Liste]
Vue : 902
Catégorie(s) : Multimédia
Langages dispo pour ce code :
- VB 2005, VB 2008
- Voir tous les langages pour ce code snippet



Langage : VB 2005 , VB 2008
Date ajout : 12/10/2009
Posté par Willi [Liste]
imports system.runtime.interopservices 
imports system.windows.forms 
imports system.drawing 
 
module modVid 
 
    <dllimport("user32.dll")> _ 
    function movewindow(byval hwnd as intptr, byval x as integer, byval y as integer, byval nwidth as integer, byval nheight as integer, byval brepaint as boolean) as boolean 
    end function 
 
    public sub ShowVideo(ByVal video as String, ByVal screenIndex as Integer) 
 
        dim screens as screen() = screen.allscreens() 
        if screens.length <= screenIndex then 
 
        dim pr as process = process.start("wmplayer.exe", chr$(34) & video & chr$(34) & " /fullscreen") 
 
            dim secscreen as rectangle = screens(screenIndex - 1).workingarea 
 
            system.threading.thread.sleep(1000) 
            movewindow(pr.mainwindowhandle, secscreen.x, secscreen.y, secscreen.width, secscreen.height, true) 
 
        end if 
 
    end sub 
 
end module

Remarque :
'Exemple affichage video plein écran sur écran n°2
ShowVideo("C:\MaVideo.avi",2)

Snippets en rapport avec : Video, Fullscreen, Move, Window



Codes sources en rapport avec : Video, Fullscreen, Move, Window

{Visual Basic, VB6, VB.NET, VB 2005} UTILISATION DE L' API GOOGLE YOUTUBE RECHERCHER ET LIRE DES VIDÉOS
Dans ce tutoriel nous allons voir comment utiliser l'Api google Youtube pour rechercher et afficher ...

{Visual Basic, VB6, VB.NET, VB 2005} UN PLAYER MULTI FORMAT
bonjour a tous apres diverse recherche sur la posiblilité de faire de beau skins je me suis arreté s...

{C# / C#.NET} NOTIFICATIONS DANS UN DELEGATE ASYNCHRONE
Bonjour, Pour un projet en développement, j'ai mis au point un delegate asynchrone avec 2 événement...

{Visual Basic, VB6, VB.NET, VB 2005} EXTRACT' SOUND MP3
Cette application permet d'extraire la piste audio d'un fichier vidéo et la convertir en MP3. Le MP...

{Delphi} SCREENCAMTURE 0.2
Créer un tutoriel vidéo ? Rien de plus simple ! ScreenCamture permet la capture vidéo de l'écran ou...

{Flash} FLVPLAYER+XML+TXT DYNAMIQUE+TILELIST+UILOADER
flvplayer+xml+txt dynamique+tilelist+uiloader le voilà enfin, le player avec le xml externe, et ...

{Visual Basic, VB6, VB.NET, VB 2005} BACKGROUNDVIDEO.OCX
Comment mettre simplement un fond de fenêtre ou contrôle en vidéo (comme les DreamScenes sous Vista....

{Flash} PLAYER DE FICHIER FLV ASSEZ SYMPATHIQUE
Apres avoir regarder les sources proposant des player flv j'ai créer un petit lecteur de fichier flv...

{Javascript / DHTML} DRAG DROP DE VIDEOS
script qui sert a draguer(pas des filles)droper des image dans un lecteur de video flash compatible ...

{PHP} ALBUM PHOTOS / DIAPORAMA AVEC OU SANS MUSIQUE / PANORAMA / VIDEOS SANS BASE MYSQL
Paramétrage des albums et de chacun des albums pas fichiers texte. Les photos sont rangés dans un d...