Skip to content

Can not stop properly in window 10 #12

@LuckyTeng

Description

@LuckyTeng

I have a window10 tablet, it has front and rear camera, when I change one to another, it stop responding.

I think in CloseAll() function, it call StopWhenReady(), this is asyc call, and it behavior is different than prior.

And window 10 introduce a new service, "Camera Frame", it allows multiple apps to get the frame of camera at the same time.

So my solution is as below, remove StopWhenReady() in CloseAll():

try
{
//DX.MediaControl.StopWhenReady();
DX.MediaControl.Stop();
}
It stop normally but the sideeffect is that SnapshotSourceImage() does't work.

Any perfect solution?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions