Fix for MAINT-7886 Resizing internal web browser window causes video playback to stop

Mon, 08 Jan 2018 14:51:32 -0800

author
callum_linden
date
Mon, 08 Jan 2018 14:51:32 -0800
changeset 55058
753a1220e885
parent 55057
d11c01d7cd73
child 55059
896189de0d14

Fix for MAINT-7886 Resizing internal web browser window causes video playback to stop

indra/media_plugins/cef/media_plugin_cef.cpp file | annotate | diff | revisions
     1.1 --- a/indra/media_plugins/cef/media_plugin_cef.cpp	Mon Jan 08 11:22:02 2018 -0800
     1.2 +++ b/indra/media_plugins/cef/media_plugin_cef.cpp	Mon Jan 08 14:51:32 2018 -0800
     1.3 @@ -167,6 +167,10 @@
     1.4  		{
     1.5  			memcpy(mPixels, pixels, mWidth * mHeight * mDepth);
     1.6  		}
     1.7 +		else
     1.8 +		{
     1.9 +			mCEFLib->setSize(mWidth, mHeight);
    1.10 +		}
    1.11  		setDirty(0, 0, mWidth, mHeight);
    1.12  	}
    1.13  }
    1.14 @@ -412,7 +416,7 @@
    1.15  				versions[LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER] = LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER_VERSION;
    1.16  				message.setValueLLSD("versions", versions);
    1.17  
    1.18 -				std::string plugin_version = "CEF plugin 1.2.0";
    1.19 +				std::string plugin_version = "CEF plugin 1.1.3";
    1.20  				message.setValue("plugin_version", plugin_version);
    1.21  				sendMessage(message);
    1.22  			}
    1.23 @@ -559,11 +563,11 @@
    1.24  
    1.25  						mTextureWidth = texture_width;
    1.26  						mTextureHeight = texture_height;
    1.27 +
    1.28 +						mCEFLib->setSize(mWidth, mHeight);
    1.29  					};
    1.30  				};
    1.31  
    1.32 -				mCEFLib->setSize(mWidth, mHeight);
    1.33 -
    1.34  				LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "size_change_response");
    1.35  				message.setValue("name", name);
    1.36  				message.setValueS32("width", width);

mercurial