Page 1 of 1

Not able to click Allow Deny on Camera and Mic Access

Posted: Tue Jun 30, 2009 1:15 pm
by Bikram Thapa
Hi Support,

I am using f-in-box which plays translucent flash files. It is an MFC Application. When user selects the recorder option to use the camera, flash security popup dialog box asks the user to Allow or Deny Camera and Microphone Access. I am not able to click the Allow and Deny button. Also I am not able to click any other clickable item on the flash movie. Dragging works and also does mouse right click context menu popup.

Thanks
Bikram...

Posted: Wed Jul 01, 2009 11:05 am
by Softanics
Thank you for your question.

Unfortunaly, we still can't resolve this issue. I would recommend to create an usual window, without WS_EX_LAYERED style, for movies that require this dialog.

Thank you.

Modify Style at run time

Posted: Tue Jul 07, 2009 10:02 am
by Bikram Thapa
Hi Support,
Can I use ModifyStyleEx so that I can toggle between the Ex_layered and Simple Window. I tried using these two methods but the window becomes totally transparent or hidden.

Code: Select all

myflashMap[i].m_pFlashWnd->ShowWindow(SW_HIDE);

myflashMap[i].m_pFlashWnd->ModifyStyleEx(0, WS_EX_LAYERED);
OR
::SetWindowLong(myflashMap[i].m_hwndFlashPlayerControl,GWL_EXSTYLE, myflashMap[i].m_pFlashWnd->GetExStyle() | WS_EX_LAYERED | WS_EX_TRANSPARENT);

myflashMap[i].m_pFlashWnd->ShowWindow(SW_SHOW);
myflashMap[i].m_pFlashWnd->UpdateWindow();





Thanks
Bikram...

Posted: Wed Jul 08, 2009 4:10 pm
by Softanics
I think you should call SetWindowPos as wrote in MSDN:

Certain window data is cached, so changes you make using SetWindowLong will not take effect until you call the SetWindowPos function. Specifically, if you change any of the frame styles, you must call SetWindowPos with the SWP_FRAMECHANGED flag for the cache to be updated properly.


Thank you.

Posted: Thu Jul 09, 2009 12:05 pm
by Bikram Thapa
Hi Support,
Yes I have changed the code. On camera button click I get fscommand to toggle. I do following:

Code: Select all

if(argList.CompareNoCase(_T("false"))==0){                     
               LONG nOldStyle = ::GetWindowLong(hwndFlashPlayerControl, GWL_STYLE);
               LONG nNewStyle = nOldStyle & ~WS_EX_LAYERED;
               ::SetWindowLong(hwndFlashPlayerControl, GWL_STYLE , nNewStyle);
               ::SetWindowPos(hwndFlashPlayerControl,NULL, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_FRAMECHANGED);
            }
            else {
               LONG nOldStyle = ::GetWindowLong(hwndFlashPlayerControl, GWL_STYLE);
               LONG nNewStyle = nOldStyle & WS_EX_LAYERED;
               ::SetWindowLong(hwndFlashPlayerControl, GWL_EXSTYLE, nNewStyle);
               SetWindowPos(hwndFlashPlayerControl,NULL, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|SWP_FRAMECHANGED);
            }


Though now I get the WS_EX_LAYERED style removed and window is visible, I am still not able to click the "Allow Deny Button".
My guess is that there has to be a time lag between the command to change style and camera activation.
Will that help?

Thanks
Bikram...

Posted: Thu Jul 09, 2009 7:29 pm
by Softanics
What if you create the window without WS_EX_LAYERED at the beginning? You can click on the button?

Thank you.

Some Users can click the allow deny button

Posted: Fri Aug 28, 2009 9:54 am
by Bikram Thapa
Hi Support,
An interesting input, some of our clients have reported that they are able to click the allow deny buttion. Can this be possible, please look into it and see if any solution can be found. One of the machine was vista home edtion sp1.

Thanks N Regards
Bikram...