I'm trying to load a video file that I have added to my resources to play when a button is clicked. When the button is clicked the video should both load and play. Here is my code that fails:
this does not work. It says Arguement1 can not be converted from "byte[]" to "string" However if I hard code the directory it works:
How do I reference the .avi that is located in my references and not hard code to the one not in my resources?
Thanks for the help guys.
Code:
video = new Video(properties.resources.koala_talk);
Code:
video = new Video(@"C:\assignment3\koala_talk.avi");
Thanks for the help guys.
Comment