Skip to content

Commit

Permalink
Release 1.2.2
Browse files Browse the repository at this point in the history
Fix issue #18
Fix issue #19
  • Loading branch information
sarandogou committed Jan 30, 2015
1 parent e1dd1d1 commit 75df687
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 32 deletions.
2 changes: 1 addition & 1 deletion common/_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# define kPluginVersionMinor 2
#endif
#if !defined(kPluginVersionMicro)
# define kPluginVersionMicro 1
# define kPluginVersionMicro 2
#endif
#if !defined(kPluginVersionString)
# define kPluginVersionString WE_STRING(WE_CAT(kPluginVersionMajor, .)) WE_STRING(WE_CAT(kPluginVersionMinor, .)) WE_STRING(kPluginVersionMicro)
Expand Down
Binary file modified common/webrtc-everywhere-common.rc
Binary file not shown.
51 changes: 32 additions & 19 deletions ie/WebRTC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,40 +74,53 @@ void CWebRTC::FinalRelease()
ReleaseFakePeerConnectionFactory();
}

#if 0
HRESULT CWebRTC::QueryWindow()
{
if (m_spWindow) {
return S_OK;
}
else if (m_spClientSite) {
m_spContainer = NULL;
m_spDoc = NULL;
HRESULT hr = m_spClientSite->GetContainer(&m_spContainer);
if (SUCCEEDED(hr)) {
hr = m_spContainer->QueryInterface(IID_PPV_ARGS(&m_spDoc));
if (SUCCEEDED(hr)) {
hr = m_spDoc->get_parentWindow(&m_spWindow);
if (SUCCEEDED(hr)) {
hr = m_spWindow->get_location(&m_spLocation);
}
}
}
return hr;
}
return E_UNEXPECTED;
}

// IOleObjectImpl::SetClientSite()
STDMETHODIMP CWebRTC::SetClientSite(_Inout_opt_ IOleClientSite *pClientSite)
{
HRESULT hr = IOleObjectImpl::SetClientSite(pClientSite); // call base function
if (SUCCEEDED(hr) && m_spClientSite) {
#if 0
HRESULT _hr = m_spClientSite->QueryInterface(IID_PPV_ARGS(&m_spPresentSite));
if (FAILED(_hr)) {
// IViewObjectPresentSite only supported on IE9 and later
}
else {
/*hr = */m_spPresentSite->SetCompositionMode(VIEW_OBJECT_COMPOSITION_MODE_SURFACEPRESENTER);
}
#endif

HRESULT hr = S_OK;

_hr = m_spClientSite->GetContainer(&m_spContainer);
if (SUCCEEDED(_hr)) {
_hr = m_spContainer->QueryInterface(IID_PPV_ARGS(&m_spDoc));
if (SUCCEEDED(_hr)) {
_hr = m_spDoc->get_parentWindow(&m_spWindow);
if (SUCCEEDED(_hr)) {
_hr = m_spWindow->get_location(&m_spLocation);
}
}
}

if (m_spWindow) {
_hr = Utils::InstallScripts(m_spWindow);
if (SUCCEEDED(QueryWindow())) {
hr = Utils::InstallScripts(m_spWindow);
}
}
return hr;
}

#if 0

// IPersistPropertyBagImpl::Load
STDMETHODIMP CWebRTC::Load(__RPC__in_opt IPropertyBag *pPropBag, __RPC__in_opt IErrorLog *pErrorLog)
{
Expand Down Expand Up @@ -289,7 +302,7 @@ STDMETHODIMP CWebRTC::createDisplay(__out IDispatch** ppDisplay)
STDMETHODIMP CWebRTC::getUserMedia(VARIANT constraints, VARIANT successCallback, VARIANT errorCallback)
{
HRESULT hr = S_OK;

CComPtr<IDispatch>_constraints = Utils::VariantToDispatch(constraints);
CComPtr<IDispatch>_successCallback = Utils::VariantToDispatch(successCallback);
CComPtr<IDispatch>_errorCallback = Utils::VariantToDispatch(errorCallback);
Expand Down Expand Up @@ -619,7 +632,7 @@ STDMETHODIMP CWebRTC::get_isWebRtcPlugin(__out VARIANT_BOOL* pVal)
HRESULT CWebRTC::GetDispatch(CComPtr<IDispatch> &spDispatch)
{
if (!m_spWindow) {
CHECK_HR_RETURN(E_POINTER);
CHECK_HR_RETURN(QueryWindow());
}

CHECK_HR_RETURN(m_spWindow->QueryInterface(IID_PPV_ARGS(&spDispatch)));
Expand All @@ -629,7 +642,7 @@ HRESULT CWebRTC::GetDispatch(CComPtr<IDispatch> &spDispatch)
HRESULT CWebRTC::GetHTMLWindow2(CComPtr<IHTMLWindow2> &spWindow2)
{
if (!m_spWindow) {
CHECK_HR_RETURN(E_POINTER);
CHECK_HR_RETURN(QueryWindow());
}
spWindow2 = m_spWindow;
return S_OK;
Expand Down
6 changes: 4 additions & 2 deletions ie/WebRTC.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,9 @@ class ATL_NO_VTABLE CWebRTC :
STDMETHOD(get_videoHeight)(__out LONG* pVal);
STDMETHOD(get_isWebRtcPlugin)(__out VARIANT_BOOL* pVal);

#if 0
// IOleObjectImpl::SetClientSite()
STDMETHOD(SetClientSite)(_Inout_opt_ IOleClientSite *pClientSite);

#if 0
// IPersistPropertyBagImpl::Load
STDMETHOD(Load)(__RPC__in_opt IPropertyBag *pPropBag, __RPC__in_opt IErrorLog *pErrorLog);

Expand All @@ -231,6 +230,9 @@ class ATL_NO_VTABLE CWebRTC :
HRESULT GetDispatch(CComPtr<IDispatch> &spDispatch);
HRESULT GetHTMLWindow2(CComPtr<IHTMLWindow2> &spWindow2);

private:
HRESULT QueryWindow();

private:
_Buffer *m_pTempVideoBuff;
std::vector<CComPtr<IDispatch>>m_callbacks_onplay;
Expand Down
Binary file modified ie/webrtc-everywhere.aps
Binary file not shown.
8 changes: 4 additions & 4 deletions ie/webrtc-everywhere.rc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,2,0,1
PRODUCTVERSION 1,2,0,1
FILEVERSION 1,2,0,2
PRODUCTVERSION 1,2,0,2
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -75,12 +75,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Sarandogou"
VALUE "FileDescription", "WebRTC plugin for Safari, IE, Chrome, Opera and Firefox"
VALUE "FileVersion", "1.2.0.1"
VALUE "FileVersion", "1.2.0.2"
VALUE "LegalCopyright", "(c) 2014-2015 Sarandogou. All rights reserved."
VALUE "InternalName", "webrtc-everywhere-ie.dll"
VALUE "OriginalFilename", "webrtc-everywhere-ie.dll"
VALUE "ProductName", "WebRTC Everywhere Plugin"
VALUE "ProductVersion", "1.2.0.1"
VALUE "ProductVersion", "1.2.0.2"
END
END
BLOCK "VarFileInfo"
Expand Down
Binary file modified npapi/Release/webrtc-everywhere-npapi.res
Binary file not shown.
2 changes: 1 addition & 1 deletion npapi/Utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ NPError Utils::InstallScripts(NPP npp)

for (size_t i = 0; i < sizeof(__scripts) / sizeof(__scripts[0]); ++i) {
npScript.UTF8Characters = __scripts[i].code;
npScript.UTF8Length = we_strlen(npScript.UTF8Characters);
npScript.UTF8Length = (uint32_t)we_strlen(npScript.UTF8Characters);
if (!BrowserFuncs->evaluate(npp, npWindow, &npScript, &var)) {
CHECK_NPERR_BAIL(err = NPERR_GENERIC_ERROR);
}
Expand Down
8 changes: 4 additions & 4 deletions npapi/webrtc-everywhere-npapi.rc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,2,0,1
PRODUCTVERSION 1,2,0,1
FILEVERSION 1,2,0,2
PRODUCTVERSION 1,2,0,2
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -71,13 +71,13 @@ BEGIN
BEGIN
VALUE "CompanyName", "Sarandogou"
VALUE "FileDescription", "WebRTC plugin for Safari, IE, Chrome, Opera and Firefox"
VALUE "FileVersion", "1.2.0.1"
VALUE "FileVersion", "1.2.0.2"
VALUE "InternalName", "npwebrtc-everywhere.dll"
VALUE "LegalCopyright", "(c) 2014-2015 Sarandogou. All rights reserved."
VALUE "MIMEType", "application/webrtc-everywhere"
VALUE "OriginalFilename", "npwebrtc-everywhere.dll"
VALUE "ProductName", "WebRTC Everywhere Plugin"
VALUE "ProductVersion", "1.2.0.1"
VALUE "ProductVersion", "1.2.0.2"
END
END
BLOCK "VarFileInfo"
Expand Down
2 changes: 1 addition & 1 deletion wininstall/innosetup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "webrtc-everywhere"
#define MyAppVersion "1.2.0.1"
#define MyAppVersion "1.2.0.2"
#define MyAppPublisher "Sarandogou"
#define MyAppURL "https://ns313841.ovh.net/webrtc/"

Expand Down

0 comments on commit 75df687

Please sign in to comment.