Jump to content

C# - Basic Program that plays a video, then closes once finished

Baeger

So basically I want to make (what I assume is) a basic program that plays a video file as soon as it's opened, then once the video is done playing, the program closes.

I also want to make a second program that does the same, but instead of closing the video, the video loops instead.

 

I haven't used C# in about 4 years and even then it was at a pretty basic level.  It doesn't have to be in C# but I'm trying to get it to work with DisplayFusion as well so it'd be preferred.

Any ideas? I don't know where to begin really. 

About me:  23 Year old Software Developer from Wales, UK.  PC gamer and occasional Xbox Series X gamer (fanboy in recovery lol).  I stream occasionally as a hobby. 

The Rigs/Specs

 

KONAN (Main Rig): 
 

Spoiler

 

CPU: Intel Core I7-10700K

Case: Phanteks Enthoo Evolv X Digital Midi Tower Glass Gaming Case - Gunmetal Grey

Motherboard: Asus ROG Strix Z490-F Gaming (Socket LGA 1200) DDR4 ATX Motherboard

GPU: Gigabyte GeForce RTX 3070 Gaming OC 8GB GDDR6 Graphics Card

RAM: Team Group Vulcan Z T-Force 48GB (2x8GB & 2x16GB) DDR4 PC4-25600C16 3200MHz

PSU: Corsair HXi Series HX850i

Storage: M.2, SATA SSD, Array of 6TB HDDs, etc etc. 

 

CASWYN (Old Main Rig - Retired):

Spoiler

CASWYN (Main Rig):  i7 6700k @4.4Ghz, AsRock Z170 Pro4 Motherboard, Nvidia GeForce GTX 1080, 16GB Kingston HyperX Fury Black Series (2133MHz, DDR4) Array of several Hard Drives totaling to 9TB, Samsung 840 120Gb SSD (Boot drive)  Ask for other stuff where relevant

 

CLESEK (Laptop):

Spoiler

Dell Inspiron 7559 Gaming Laptop - i7-6700HQ, 12GB DDR4 RAM, GeForce GTX 960m, ADATA 128GB SSD, 1TB Standard HDD

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 12/7/2017 at 9:04 PM, M.Yurizaki said:

Honestly I have no idea what I'm looking at here.  I see there's project files that I can just use but I have no idea how to get those to work in Visual Studio

About me:  23 Year old Software Developer from Wales, UK.  PC gamer and occasional Xbox Series X gamer (fanboy in recovery lol).  I stream occasionally as a hobby. 

The Rigs/Specs

 

KONAN (Main Rig): 
 

Spoiler

 

CPU: Intel Core I7-10700K

Case: Phanteks Enthoo Evolv X Digital Midi Tower Glass Gaming Case - Gunmetal Grey

Motherboard: Asus ROG Strix Z490-F Gaming (Socket LGA 1200) DDR4 ATX Motherboard

GPU: Gigabyte GeForce RTX 3070 Gaming OC 8GB GDDR6 Graphics Card

RAM: Team Group Vulcan Z T-Force 48GB (2x8GB & 2x16GB) DDR4 PC4-25600C16 3200MHz

PSU: Corsair HXi Series HX850i

Storage: M.2, SATA SSD, Array of 6TB HDDs, etc etc. 

 

CASWYN (Old Main Rig - Retired):

Spoiler

CASWYN (Main Rig):  i7 6700k @4.4Ghz, AsRock Z170 Pro4 Motherboard, Nvidia GeForce GTX 1080, 16GB Kingston HyperX Fury Black Series (2133MHz, DDR4) Array of several Hard Drives totaling to 9TB, Samsung 840 120Gb SSD (Boot drive)  Ask for other stuff where relevant

 

CLESEK (Laptop):

Spoiler

Dell Inspiron 7559 Gaming Laptop - i7-6700HQ, 12GB DDR4 RAM, GeForce GTX 960m, ADATA 128GB SSD, 1TB Standard HDD

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 12/7/2017 at 9:09 PM, PRAGMA said:

Probably a worse way of doing it since audio is a bit fucked, but you could just run a CEFSharp environment then just link it to a hosting of the video as the webpage url, Done.

Is there a guide for this somewhere?

 

About me:  23 Year old Software Developer from Wales, UK.  PC gamer and occasional Xbox Series X gamer (fanboy in recovery lol).  I stream occasionally as a hobby. 

The Rigs/Specs

 

KONAN (Main Rig): 
 

Spoiler

 

CPU: Intel Core I7-10700K

Case: Phanteks Enthoo Evolv X Digital Midi Tower Glass Gaming Case - Gunmetal Grey

Motherboard: Asus ROG Strix Z490-F Gaming (Socket LGA 1200) DDR4 ATX Motherboard

GPU: Gigabyte GeForce RTX 3070 Gaming OC 8GB GDDR6 Graphics Card

RAM: Team Group Vulcan Z T-Force 48GB (2x8GB & 2x16GB) DDR4 PC4-25600C16 3200MHz

PSU: Corsair HXi Series HX850i

Storage: M.2, SATA SSD, Array of 6TB HDDs, etc etc. 

 

CASWYN (Old Main Rig - Retired):

Spoiler

CASWYN (Main Rig):  i7 6700k @4.4Ghz, AsRock Z170 Pro4 Motherboard, Nvidia GeForce GTX 1080, 16GB Kingston HyperX Fury Black Series (2133MHz, DDR4) Array of several Hard Drives totaling to 9TB, Samsung 840 120Gb SSD (Boot drive)  Ask for other stuff where relevant

 

CLESEK (Laptop):

Spoiler

Dell Inspiron 7559 Gaming Laptop - i7-6700HQ, 12GB DDR4 RAM, GeForce GTX 960m, ADATA 128GB SSD, 1TB Standard HDD

 

Link to comment
Share on other sites

Link to post
Share on other sites

On 12/11/2017 at 9:09 PM, PRAGMA said:

Yeah all around github and stuff but its kinda advanced, if I were you, just look into using VLC's addon extension thingy been a long time since I used it but look into it, its essentially just running a VLC window in the backend and then displaying the vid in ur app.

That sounds fantastic!  That's exactly what I need to be honest. I was just using VLC as a program before to play my videos but I couldn't find a way to tell it to loop one video and close another when it'd finish so an addon for VLC would be absolutely perfect.  

 

About me:  23 Year old Software Developer from Wales, UK.  PC gamer and occasional Xbox Series X gamer (fanboy in recovery lol).  I stream occasionally as a hobby. 

The Rigs/Specs

 

KONAN (Main Rig): 
 

Spoiler

 

CPU: Intel Core I7-10700K

Case: Phanteks Enthoo Evolv X Digital Midi Tower Glass Gaming Case - Gunmetal Grey

Motherboard: Asus ROG Strix Z490-F Gaming (Socket LGA 1200) DDR4 ATX Motherboard

GPU: Gigabyte GeForce RTX 3070 Gaming OC 8GB GDDR6 Graphics Card

RAM: Team Group Vulcan Z T-Force 48GB (2x8GB & 2x16GB) DDR4 PC4-25600C16 3200MHz

PSU: Corsair HXi Series HX850i

Storage: M.2, SATA SSD, Array of 6TB HDDs, etc etc. 

 

CASWYN (Old Main Rig - Retired):

Spoiler

CASWYN (Main Rig):  i7 6700k @4.4Ghz, AsRock Z170 Pro4 Motherboard, Nvidia GeForce GTX 1080, 16GB Kingston HyperX Fury Black Series (2133MHz, DDR4) Array of several Hard Drives totaling to 9TB, Samsung 840 120Gb SSD (Boot drive)  Ask for other stuff where relevant

 

CLESEK (Laptop):

Spoiler

Dell Inspiron 7559 Gaming Laptop - i7-6700HQ, 12GB DDR4 RAM, GeForce GTX 960m, ADATA 128GB SSD, 1TB Standard HDD

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×