summaryrefslogtreecommitdiff
path: root/indra/test_apps/llplugintest/llmediaplugintest.cpp
diff options
context:
space:
mode:
authorAdam Moss <moss@lindenlab.com>2009-08-31 17:16:21 +0000
committerAdam Moss <moss@lindenlab.com>2009-08-31 17:16:21 +0000
commit158946668a75a0dad7b53bc74fd2b6f8f4a4befc (patch)
treefdbd74ca881f5dd386c84496e393504c6b7eacb5 /indra/test_apps/llplugintest/llmediaplugintest.cpp
parent6dbef5f2a41d5ee974b808b8e863d4f973dfa2c3 (diff)
svn merge -r130875:131962 svn+ssh://svn.lindenlab.com/svn/linden/branches/pluginapi/pluginapi_05_newllqtwebkit
DEV-31438 Rename LLMozLib (Qt/WebKit) to something else - LLQtWebKit
Diffstat (limited to 'indra/test_apps/llplugintest/llmediaplugintest.cpp')
-rw-r--r--indra/test_apps/llplugintest/llmediaplugintest.cpp35
1 files changed, 6 insertions, 29 deletions
diff --git a/indra/test_apps/llplugintest/llmediaplugintest.cpp b/indra/test_apps/llplugintest/llmediaplugintest.cpp
index 7a84ef83cb..cd90884d09 100644
--- a/indra/test_apps/llplugintest/llmediaplugintest.cpp
+++ b/indra/test_apps/llplugintest/llmediaplugintest.cpp
@@ -120,7 +120,7 @@ LLMediaPluginTest::LLMediaPluginTest( int app_window, int window_width, int wind
mVersionMajor( 2 ),
mVersionMinor( 0 ),
mVersionPatch( 0 ),
- mMaxPanels( 16 ),
+ mMaxPanels( 25 ),
mViewportAspect( 0 ),
mAppWindow( app_window ),
mCurMouseX( 0 ),
@@ -174,13 +174,6 @@ LLMediaPluginTest::LLMediaPluginTest( int app_window, int window_width, int wind
{
std::string description = line.substr( 0, comma_pos );
std::string url = line.substr( comma_pos + 1 );
-#if LL_DARWIN || LL_LINUX
- // Don't load flash movies on mac or linux yet.
- if ( url.find( ".swf" ) != std::string::npos )
- {
- continue;
- }
-#endif
mBookmarks.push_back( std::pair< std::string, std::string >( description, url ) );
}
else
@@ -229,16 +222,14 @@ LLMediaPluginTest::LLMediaPluginTest( int app_window, int window_width, int wind
resetView();
// initial media panel
- const int num_initial_panels = 4;
- for( int i = 0; i < num_initial_panels; ++i )
- {
- //addMediaPanel( mBookmarks[ rand() % ( mBookmarks.size() - 1 ) + 1 ].second );
- };
+ //const int num_initial_panels = 4;
+ //for( int i = 0; i < num_initial_panels; ++i )
+ //{
+ // addMediaPanel( mBookmarks[ rand() % ( mBookmarks.size() - 1 ) + 1 ].second );
+ //};
// always add a Web panel for testing
addMediaPanel( "http://www.google.com" );
- //addMediaPanel( "http://www.wiicade.com/Data/72/game.swf" );
- //addMediaPanel( "http://movies.apple.com/movies/wb/watchmen/watchmen-tlr2_480p.mov" );
}
////////////////////////////////////////////////////////////////////////////////
@@ -1465,9 +1456,6 @@ std::string LLMediaPluginTest::mimeTypeFromUrl( std::string& url )
std::string mime_type = "text/html";
// we may need a more advanced MIME type accessor later :-)
- if ( url.find( ".swf" ) != std::string::npos ) // Flash movies
- mime_type = "application/x-shockwave-flash";
- else
if ( url.find( ".mov" ) != std::string::npos ) // Movies
mime_type = "video/quicktime";
else
@@ -1497,9 +1485,6 @@ std::string LLMediaPluginTest::pluginNameFromMimeType( std::string& mime_type )
else
if ( mime_type == "text/html" )
plugin_name = "media_plugin_webkit.dll";
- else
- if ( mime_type == "application/x-shockwave-flash" )
- plugin_name = "media_plugin_flash_activex.dll";
#elif LL_LINUX
std::string plugin_name( "libmedia_plugin_null.so" );
@@ -1816,14 +1801,6 @@ void LLMediaPluginTest::getRandomMediaSize( int& width, int& height, std::string
{
width = ( ( rand() % 100 ) + 100 ) * 4;
height = ( width * ( ( rand() % 400 ) + 1000 ) ) / 1000;
- }
- else
- // adjust this random size if it's Flash so we get
- // a more useful size for testing..
- if ( mime_type == "application/x-shockwave-flash" )
- {
- width = ( ( rand() % 100 ) + 100 ) * 4;
- height = ( width * ( ( rand() % 400 ) + 1000 ) ) / 1000;
};
}