Windows goes galactic

Revealed: Samsung's Surface Pro-like Galaxy Book, running Windows 10

Saving money on data

Mint SIM is the perfect way to get cheap data in the U.S.

We made some changes

Our new forums are here!

Don't count Windows Phone out just yet

Dead? Psh. Here are 5 reasons to stick with Windows 10 Mobile

VPN vs. Proxy

The difference between a proxy and a VPN

Latitude attitude

Dell Latitude 7280 is a business laptop with tons of consumer attitude

4K all the way

You probably don't NEED a 4K webcam, but we love Logitech's BRIO 4K anyway

Long live Windows phone

Contrary to popular belief, Windows phone won't die anytime soon

XP-YESSSSSSS

Dell's already awesome XPS 15 gets even better in 2017

Surface Pwn 5

Surface Pro 5, Project NEON details leaked on LinkedIn?

Redefining the PC

Why Microsoft's Surface phone could be MUCH more than a mere 'phone'

Surface table meets Windows 10

Yes, we did put Windows 10 on the original Surface table ... and it rocks

Cream o' the crop

Before buying a Microsoft laptop, check out our pick for the absolute best

Simple and secure, just the way I like it

We think Windows 10 Cloud is a great idea, here's why

uber micro

Halo Wars 2 has something for everyone. Here's our full review.

Oldie but goldie

We reviewed Microsoft's decade-old Surface table

Creators Update comin' at ya

These are the coolest new features in the next big Xbox One update (video)

Buyer's guide

The Razer Blade 14 is the best laptop Razer has to offer

Windows 10 app gems

10 terrific Windows 10 apps you should be using

Tower of power

Here's what we think of Dell's XPS Tower Special Edition

< >
Welcome to the Windows Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. phpfreek2007's Avatar
    Member

    Posts
    2 Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
       #1  
    Hi,

    I have two separate code: one for continuous flashlight on and second for video capture. when i run these codes in different project it gives proper output. but the problem occurs when i combine these codes in one project.

    In first code which gives continuous flashlight on i have used "_videoCameraVisualizer.SetSource (_videoCamera1);" where _videoCameraVisualizer is object of VideoCameraVisualizer class and _videoCamera1 is object of VideoCamera class. I have use System.Reflection namespace in this project.

    in second code which displays video capture i have used "video.SetSource(source);" where video is object of VideoBrush class and source is object of CaptureSource class.

    when I combine this codes the flashlight remains on continuously but got error at "source.Start();". The error is "NotSupportedException was unhandled - 0x80131515".

    I want coutinuous flashlight on with video capturing. For continuous flashlight I got this link : Locked So I have used this. and for video Capture i have used CaptureSource class and following code on button_click :

    if (ispressvideo == false)
    {
    ispressvideo = true;
    if (source != null)
    {
    source.Stop();

    }
    source = new CaptureSource();
    source.VideoCaptureDevice = CaptureDeviceConfiguration.GetDefaultVideoCaptureDevice();
    source.AudioCaptureDevice = CaptureDeviceConfiguration.GetDefaultAudioCaptureDevice();

    VideoBrush video = new VideoBrush();
    video.SetSource(source);
    CaptureDisplay.Fill = video;

    if (CaptureDeviceConfiguration.AllowedDeviceAccess || CaptureDeviceConfiguration.RequestDeviceAccess())
    {
    //_videoCamera1 = null;
    source.Start();// Error comes at this place
    }
    }

    I am trying to solve this error from last two days but can not understand what is the problem. :(

    Thanks in advance.

Tags for this Thread

Posting Permissions

";