Merge.
commit
d63d3b4e7b
|
|
@ -1712,7 +1712,7 @@
|
|||
</map>
|
||||
</map>
|
||||
<key>version</key>
|
||||
<string>1.5.3.311349</string>
|
||||
<string>1.5.3.315268</string>
|
||||
</map>
|
||||
<key>llphysicsextensions_source</key>
|
||||
<map>
|
||||
|
|
@ -2338,6 +2338,46 @@
|
|||
<key>version</key>
|
||||
<string>0.8.0.1</string>
|
||||
</map>
|
||||
<key>vlc-bin</key>
|
||||
<map>
|
||||
<key>copyright</key>
|
||||
<string>Copyright (C) 1998-2016 VLC authors and VideoLAN</string>
|
||||
<key>license</key>
|
||||
<string>GPL2</string>
|
||||
<key>license_file</key>
|
||||
<string>LICENSES/vlc.txt</string>
|
||||
<key>name</key>
|
||||
<string>vlc-bin</string>
|
||||
<key>platforms</key>
|
||||
<map>
|
||||
<key>windows</key>
|
||||
<map>
|
||||
<key>archive</key>
|
||||
<map>
|
||||
<key>hash</key>
|
||||
<string>3bdbb86adc2119a0b7bb17a54372dcd2</string>
|
||||
<key>url</key>
|
||||
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-vlc-bin/rev/315283/arch/CYGWIN/installer/vlc_bin-2.2.3.315283-windows-315283.tar.bz2</string>
|
||||
</map>
|
||||
<key>name</key>
|
||||
<string>windows</string>
|
||||
</map>
|
||||
<key>linux</key>
|
||||
<map>
|
||||
<key>archive</key>
|
||||
<map>
|
||||
<key>hash</key>
|
||||
<string>2f410640df3f9812d1abff02a414cfa8</string>
|
||||
<key>url</key>
|
||||
<string>https://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-vlc-bin/rev/315283/arch/Linux/vlc_bin-2.2.3-linux-201606011750-r10.tar.bz2</string>
|
||||
</map>
|
||||
<key>name</key>
|
||||
<string>linux</string>
|
||||
</map>
|
||||
</map>
|
||||
<key>version</key>
|
||||
<string>2.2.3.315283</string>
|
||||
</map>
|
||||
<key>xmlrpc-epi</key>
|
||||
<map>
|
||||
<key>copyright</key>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ set(cmake_SOURCE_FILES
|
|||
DirectX.cmake
|
||||
DragDrop.cmake
|
||||
EXPAT.cmake
|
||||
## ExamplePlugin.cmake
|
||||
FindAPR.cmake
|
||||
FindAutobuild.cmake
|
||||
FindBerkeleyDB.cmake
|
||||
|
|
@ -100,6 +99,7 @@ set(cmake_SOURCE_FILES
|
|||
Variables.cmake
|
||||
ViewerMiscLibs.cmake
|
||||
VisualLeakDetector.cmake
|
||||
LibVLCPlugin.cmake
|
||||
WinManifest.cmake
|
||||
XmlRpcEpi.cmake
|
||||
ZLIB.cmake
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
# -*- cmake -*-
|
||||
include(Linking)
|
||||
include(Prebuilt)
|
||||
|
||||
if (USESYSTEMLIBS)
|
||||
set(LIBVLCPLUGIN OFF CACHE BOOL
|
||||
"LIBVLCPLUGIN support for the llplugin/llmedia test apps.")
|
||||
else (USESYSTEMLIBS)
|
||||
use_prebuilt_binary(vlc-bin)
|
||||
set(LIBVLCPLUGIN ON CACHE BOOL
|
||||
"LIBVLCPLUGIN support for the llplugin/llmedia test apps.")
|
||||
set(VLC_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include/vlc)
|
||||
endif (USESYSTEMLIBS)
|
||||
|
||||
if (WINDOWS)
|
||||
set(VLC_PLUGIN_LIBRARIES
|
||||
libvlc.lib
|
||||
libvlccore.lib
|
||||
)
|
||||
elseif (DARWIN)
|
||||
elseif (LINUX)
|
||||
# Specify a full path to make sure we get a static link
|
||||
set(VLC_PLUGIN_LIBRARIES
|
||||
${LIBS_PREBUILT_DIR}/lib/libvlc.a
|
||||
${LIBS_PREBUILT_DIR}/lib/libvlccore.a
|
||||
)
|
||||
endif (WINDOWS)
|
||||
|
|
@ -352,8 +352,8 @@ void LLGLSLShader::unloadInternal()
|
|||
for (GLsizei i = 0; i < count; i++)
|
||||
{
|
||||
glDetachObjectARB(mProgramObject, obj[i]);
|
||||
glDeleteObjectARB(obj[i]);
|
||||
}
|
||||
glDeleteObjectARB(obj[i]);
|
||||
}
|
||||
|
||||
glDeleteObjectARB(mProgramObject);
|
||||
|
||||
|
|
@ -1277,6 +1277,28 @@ void LLGLSLShader::uniformMatrix4fv(U32 index, U32 count, GLboolean transpose, c
|
|||
}
|
||||
}
|
||||
|
||||
void LLGLSLShader::uniform1b(U32 index, GLboolean x)
|
||||
{
|
||||
if (mProgramObject > 0)
|
||||
{
|
||||
if (mUniform.size() <= index)
|
||||
{
|
||||
UNIFORM_ERRS << "Uniform index out of bounds." << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
if (mUniform[index] >= 0)
|
||||
{
|
||||
std::map<GLint, LLVector4>::iterator iter = mValue.find(mUniform[index]);
|
||||
if (iter == mValue.end() || iter->second.mV[0] != x)
|
||||
{
|
||||
glUniform1iARB(mUniform[index], x);
|
||||
mValue[mUniform[index]] = LLVector4(x, 0.f, 0.f, 0.f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GLint LLGLSLShader::getUniformLocation(const LLStaticHashedString& uniform)
|
||||
{
|
||||
GLint ret = -1;
|
||||
|
|
|
|||
|
|
@ -125,6 +125,7 @@ public:
|
|||
void uniform3fv(const LLStaticHashedString& uniform, U32 count, const GLfloat* v);
|
||||
void uniform4fv(const LLStaticHashedString& uniform, U32 count, const GLfloat* v);
|
||||
void uniformMatrix4fv(const LLStaticHashedString& uniform, U32 count, GLboolean transpose, const GLfloat *v);
|
||||
void uniform1b(U32 index, GLboolean b);
|
||||
|
||||
void setMinimumAlpha(F32 minimum);
|
||||
|
||||
|
|
|
|||
|
|
@ -1487,6 +1487,14 @@ U32 LLRender::getMatrixMode()
|
|||
return mMatrixMode;
|
||||
}
|
||||
|
||||
void LLRender::setInverseTexCoordByY(bool v)
|
||||
{
|
||||
LLGLSLShader* shader = LLGLSLShader::sCurBoundShaderPtr;
|
||||
if (shader)
|
||||
{
|
||||
shader->uniform1b(LLShaderMgr::INVERSE_TEX_Y, v);
|
||||
}
|
||||
}
|
||||
|
||||
void LLRender::loadIdentity()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -355,6 +355,7 @@ public:
|
|||
void multMatrix(const GLfloat* m);
|
||||
void matrixMode(U32 mode);
|
||||
U32 getMatrixMode();
|
||||
void setInverseTexCoordByY(bool v);
|
||||
|
||||
const glh::matrix4f& getModelviewMatrix();
|
||||
const glh::matrix4f& getProjectionMatrix();
|
||||
|
|
|
|||
|
|
@ -526,7 +526,7 @@ void LLShaderMgr::dumpObjectLog(GLhandleARB ret, BOOL warns, const std::string&
|
|||
if (!filename.empty())
|
||||
{
|
||||
LL_CONT << "From " << filename << ":\n";
|
||||
}
|
||||
}
|
||||
LL_CONT << log << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
|
@ -1201,6 +1201,7 @@ void LLShaderMgr::initAttribsAndUniforms()
|
|||
|
||||
mReservedUniforms.push_back("origin");
|
||||
mReservedUniforms.push_back("display_gamma");
|
||||
mReservedUniforms.push_back("invert_tex_y");
|
||||
llassert(mReservedUniforms.size() == END_RESERVED_UNIFORMS);
|
||||
|
||||
std::set<std::string> dupe_check;
|
||||
|
|
|
|||
|
|
@ -219,7 +219,8 @@ public:
|
|||
TERRAIN_ALPHARAMP,
|
||||
|
||||
SHINY_ORIGIN,
|
||||
DISPLAY_GAMMA,
|
||||
DISPLAY_GAMMA,
|
||||
INVERSE_TEX_Y,
|
||||
END_RESERVED_UNIFORMS
|
||||
} eGLSLReservedUniforms;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,15 +4,18 @@ add_subdirectory(base)
|
|||
if (LINUX)
|
||||
add_subdirectory(gstreamer010)
|
||||
add_subdirectory(cef)
|
||||
add_subdirectory(libvlc)
|
||||
endif (LINUX)
|
||||
|
||||
if (WINDOWS OR DARWIN)
|
||||
if (DARWIN)
|
||||
add_subdirectory(quicktime)
|
||||
add_subdirectory(cef)
|
||||
endif (WINDOWS OR DARWIN)
|
||||
endif (DARWIN)
|
||||
|
||||
if (WINDOWS)
|
||||
add_subdirectory(cef)
|
||||
add_subdirectory(winmmshim)
|
||||
add_subdirectory(libvlc)
|
||||
endif (WINDOWS)
|
||||
|
||||
### add_subdirectory(example)
|
||||
|
|
|
|||
|
|
@ -108,17 +108,11 @@ private:
|
|||
|
||||
VolumeCatcher mVolumeCatcher;
|
||||
|
||||
// <FS:ND> FS specific CEF settings
|
||||
bool mFlipY;
|
||||
// </FS:ND>
|
||||
|
||||
// <FS:ND> Buffer for a popup image to be rendered as an overlay
|
||||
U8 *mPopupBuffer;
|
||||
U32 mPopupW;
|
||||
U32 mPopupH;
|
||||
U32 mPopupX;
|
||||
U32 mPopupY;
|
||||
// </FS:ND>
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -147,25 +141,18 @@ MediaPluginBase(host_send_func, host_user_data)
|
|||
mPickedFile = "";
|
||||
mLLCEFLib = new LLCEFLib();
|
||||
|
||||
// <FS:ND> FS specific CEF settings
|
||||
mFlipY = false;
|
||||
// </FS:ND>
|
||||
|
||||
// <FS:ND> Buffer for a popup image to be rendered as an overlay
|
||||
mPopupBuffer = NULL;
|
||||
mPopupW = 0;
|
||||
mPopupH = 0;
|
||||
mPopupX = 0;
|
||||
mPopupY = 0;
|
||||
// </FS:ND>
|
||||
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
MediaPluginCEF::~MediaPluginCEF()
|
||||
{
|
||||
delete [] mPopupBuffer; // <FS:ND> Buffer for a popup image to be rendered as an overlay
|
||||
delete[] mPopupBuffer;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
@ -188,10 +175,7 @@ void MediaPluginCEF::postDebugMessage(const std::string& msg)
|
|||
//
|
||||
void MediaPluginCEF::onPageChangedCallback(unsigned char* pixels, int x, int y, int width, int height, bool is_popup)
|
||||
{
|
||||
// <FS:ND> in case this is a popup, delete our old popup buffer and create a new one if needed.
|
||||
// Put this here as the media_plugin_cef will send a message with all but is_popup set to 0 in case the popup gets destroyed.
|
||||
#if FS_CEFLIB_VERSION >= 3
|
||||
if (is_popup)
|
||||
if( is_popup )
|
||||
{
|
||||
delete mPopupBuffer;
|
||||
mPopupBuffer = NULL;
|
||||
|
|
@ -200,17 +184,11 @@ void MediaPluginCEF::onPageChangedCallback(unsigned char* pixels, int x, int y,
|
|||
mPopupX = 0;
|
||||
mPopupY = 0;
|
||||
}
|
||||
#endif
|
||||
// </FS:ND>
|
||||
|
||||
if (mPixels && pixels)
|
||||
|
||||
if( mPixels && pixels )
|
||||
{
|
||||
if (is_popup)
|
||||
{
|
||||
// <FS:ND> This is a valid popup, copy the texture into our overlay buffer.
|
||||
// Can a texture ever have an alpha other than 255/1.0 to make an alpha blended popup/dropdown?
|
||||
// (According to Mobius not w/o hacks, so we assume opague)
|
||||
#if FS_CEFLIB_VERSION >= 3
|
||||
if( width > 0 && height> 0 )
|
||||
{
|
||||
mPopupBuffer = new U8[ width * height * mDepth ];
|
||||
|
|
@ -220,23 +198,6 @@ void MediaPluginCEF::onPageChangedCallback(unsigned char* pixels, int x, int y,
|
|||
mPopupX = x;
|
||||
mPopupY = y;
|
||||
}
|
||||
#endif
|
||||
// </FS:ND>
|
||||
|
||||
#if FS_CEFLIB_VERSION < 3
|
||||
// <FS:ND/> You are outdated and will be buggy
|
||||
for (int line = 0; line < height; ++line)
|
||||
{
|
||||
int inverted_y = mHeight - y - height;
|
||||
int src = line * width * mDepth;
|
||||
int dst = (inverted_y + line) * mWidth * mDepth + x * mDepth;
|
||||
|
||||
if (dst + width * mDepth < mWidth * mHeight * mDepth)
|
||||
{
|
||||
memcpy(mPixels + dst, pixels + src, width * mDepth);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -244,28 +205,24 @@ void MediaPluginCEF::onPageChangedCallback(unsigned char* pixels, int x, int y,
|
|||
{
|
||||
memcpy(mPixels, pixels, mWidth * mHeight * mDepth);
|
||||
}
|
||||
|
||||
// <FS:ND> If we have a popup, draw on top. Note: No alpha blending, this needs to be added it a popup can be transparent
|
||||
if( mPopupBuffer && mPopupH && mPopupW )
|
||||
if( mPopupBuffer && mPopupH && mPopupW )
|
||||
{
|
||||
U32 bufferSize = mWidth * mHeight * mDepth;
|
||||
U32 popupStride = mPopupW * mDepth;
|
||||
U32 bufferStride = mWidth * mDepth;
|
||||
int dstY = mHeight - mPopupY - mPopupH;
|
||||
if( !mFlipY )
|
||||
dstY = mPopupY;
|
||||
int dstY = mPopupY;
|
||||
|
||||
int src = 0;
|
||||
int dst = dstY * mWidth * mDepth + mPopupX * mDepth;
|
||||
|
||||
for (int line = 0; dst + popupStride < bufferSize && line < mPopupH; ++line)
|
||||
for( int line = 0; dst + popupStride < bufferSize && line < mPopupH; ++line )
|
||||
{
|
||||
memcpy( mPixels + dst, mPopupBuffer + src, popupStride );
|
||||
src += popupStride;
|
||||
dst += bufferStride;
|
||||
}
|
||||
}
|
||||
// </FS:ND>
|
||||
|
||||
}
|
||||
setDirty(0, 0, mWidth, mHeight);
|
||||
}
|
||||
|
|
@ -534,7 +491,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
|
|||
{
|
||||
// <FS:ND> FS specific CEF settings
|
||||
#if defined( LL_WINDOWS ) || defined( LL_LINUX )
|
||||
mLLCEFLib->setFlipY( mFlipY );
|
||||
mLLCEFLib->setFlipY( false );
|
||||
#endif
|
||||
// </FS:ND>
|
||||
|
||||
|
|
@ -582,13 +539,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
|
|||
message.setValueU32("internalformat", GL_RGB);
|
||||
message.setValueU32("format", GL_BGRA);
|
||||
message.setValueU32("type", GL_UNSIGNED_BYTE);
|
||||
|
||||
// <FS:ND> if mFlipY is true, teh CEF plugin will flip the texture and it will be in correct opengl format.
|
||||
// If false, it needs to be flipped by the viewer.
|
||||
// message.setValueBoolean("coords_opengl", true);
|
||||
message.setValueBoolean("coords_opengl", mFlipY );
|
||||
// </FS:ND>
|
||||
|
||||
message.setValueBoolean("coords_opengl", false);
|
||||
sendMessage(message);
|
||||
}
|
||||
else if (message_name == "set_user_data_path")
|
||||
|
|
@ -659,6 +610,8 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
|
|||
S32 x = message_in.getValueS32("x");
|
||||
S32 y = message_in.getValueS32("y");
|
||||
|
||||
y = mHeight - y;
|
||||
|
||||
// only even send left mouse button events to LLCEFLib
|
||||
// (partially prompted by crash in OS X CEF when sending right button events)
|
||||
// we catch the right click in viewer and display our own context menu anyway
|
||||
|
|
@ -832,10 +785,6 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
|
|||
{
|
||||
mJavascriptEnabled = message_in.getValueBoolean("enable");
|
||||
}
|
||||
else if( message_name == "cef_flipy" )
|
||||
{
|
||||
mFlipY = message_in.getValueBoolean("enable");
|
||||
}
|
||||
}
|
||||
else if (message_class == LLPLUGIN_MESSAGE_CLASS_MEDIA_TIME)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -0,0 +1,86 @@
|
|||
# -*- cmake -*-
|
||||
|
||||
project(media_plugin_libvlc)
|
||||
|
||||
include(00-Common)
|
||||
include(LLCommon)
|
||||
include(LLImage)
|
||||
include(LLPlugin)
|
||||
include(LLMath)
|
||||
include(LLRender)
|
||||
include(LLWindow)
|
||||
include(Linking)
|
||||
include(PluginAPI)
|
||||
include(MediaPluginBase)
|
||||
include(OpenGL)
|
||||
|
||||
include(LibVLCPlugin)
|
||||
|
||||
include_directories(
|
||||
${LLPLUGIN_INCLUDE_DIRS}
|
||||
${MEDIA_PLUGIN_BASE_INCLUDE_DIRS}
|
||||
${LLCOMMON_INCLUDE_DIRS}
|
||||
${LLMATH_INCLUDE_DIRS}
|
||||
${LLIMAGE_INCLUDE_DIRS}
|
||||
${LLRENDER_INCLUDE_DIRS}
|
||||
${LLWINDOW_INCLUDE_DIRS}
|
||||
${VLC_INCLUDE_DIR}
|
||||
)
|
||||
include_directories(SYSTEM
|
||||
${LLCOMMON_SYSTEM_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
### media_plugin_libvlc
|
||||
|
||||
if(NOT WORD_SIZE EQUAL 32)
|
||||
if(WINDOWS)
|
||||
add_definitions(/FIXED:NO)
|
||||
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
|
||||
add_definitions(-fPIC)
|
||||
endif(WINDOWS)
|
||||
endif(NOT WORD_SIZE EQUAL 32)
|
||||
|
||||
set(media_plugin_libvlc_SOURCE_FILES
|
||||
media_plugin_libvlc.cpp
|
||||
)
|
||||
|
||||
add_library(media_plugin_libvlc
|
||||
SHARED
|
||||
${media_plugin_libvlc_SOURCE_FILES}
|
||||
)
|
||||
|
||||
target_link_libraries(media_plugin_libvlc
|
||||
${LLPLUGIN_LIBRARIES}
|
||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
||||
${LLCOMMON_LIBRARIES}
|
||||
${VLC_PLUGIN_LIBRARIES}
|
||||
${PLUGIN_API_WINDOWS_LIBRARIES}
|
||||
)
|
||||
|
||||
add_dependencies(media_plugin_libvlc
|
||||
${LLPLUGIN_LIBRARIES}
|
||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
||||
${LLCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
if (WINDOWS)
|
||||
set_target_properties(
|
||||
media_plugin_libvlc
|
||||
PROPERTIES
|
||||
LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO /LTCG /NODEFAULTLIB:LIBCMT"
|
||||
)
|
||||
endif (WINDOWS)
|
||||
|
||||
if (DARWIN)
|
||||
# Don't prepend 'lib' to the executable name, and don't embed a full path in the library's install name
|
||||
set_target_properties(
|
||||
media_plugin_libvlc
|
||||
PROPERTIES
|
||||
PREFIX ""
|
||||
BUILD_WITH_INSTALL_RPATH 1
|
||||
INSTALL_NAME_DIR "@executable_path"
|
||||
LINK_FLAGS "-exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/../base/media_plugin_base.exp"
|
||||
)
|
||||
|
||||
endif (DARWIN)
|
||||
|
|
@ -0,0 +1,398 @@
|
|||
/**
|
||||
* @file media_plugin_libvlc.cpp
|
||||
* @brief LibVLC plugin for LLMedia API plugin system
|
||||
*
|
||||
* @cond
|
||||
* $LicenseInfo:firstyear=2008&license=viewerlgpl$
|
||||
* Second Life Viewer Source Code
|
||||
* Copyright (C) 2010, Linden Research, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation;
|
||||
* version 2.1 of the License only.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
|
||||
* $/LicenseInfo$
|
||||
* @endcond
|
||||
*/
|
||||
|
||||
#include "linden_common.h"
|
||||
|
||||
#include "llgl.h"
|
||||
#include "llplugininstance.h"
|
||||
#include "llpluginmessage.h"
|
||||
#include "llpluginmessageclasses.h"
|
||||
#include "media_plugin_base.h"
|
||||
|
||||
#include "vlc/vlc.h"
|
||||
#include "vlc/libvlc_version.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
class MediaPluginLibVLC :
|
||||
public MediaPluginBase
|
||||
{
|
||||
public:
|
||||
MediaPluginLibVLC( LLPluginInstance::sendMessageFunction host_send_func, void *host_user_data );
|
||||
~MediaPluginLibVLC();
|
||||
|
||||
/*virtual*/ void receiveMessage( const char* message_string );
|
||||
|
||||
private:
|
||||
bool init();
|
||||
|
||||
void initVLC();
|
||||
void playMedia();
|
||||
void resetVLC();
|
||||
|
||||
static void* lock(void* data, void** p_pixels);
|
||||
static void unlock(void* data, void* id, void* const* raw_pixels);
|
||||
static void display(void* data, void* id);
|
||||
|
||||
libvlc_instance_t* gLibVLC;
|
||||
libvlc_media_t* gLibVLCMedia;
|
||||
libvlc_media_player_t* gLibVLCMediaPlayer;
|
||||
|
||||
struct gVLCContext
|
||||
{
|
||||
unsigned char* texture_pixels;
|
||||
libvlc_media_player_t* mp;
|
||||
MediaPluginLibVLC* parent;
|
||||
};
|
||||
struct gVLCContext gVLCCallbackContext;
|
||||
|
||||
std::string mURL;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
MediaPluginLibVLC::MediaPluginLibVLC( LLPluginInstance::sendMessageFunction host_send_func, void *host_user_data ) :
|
||||
MediaPluginBase( host_send_func, host_user_data )
|
||||
{
|
||||
mTextureWidth = 0;
|
||||
mTextureHeight = 0;
|
||||
mWidth = 0;
|
||||
mHeight = 0;
|
||||
mDepth = 4;
|
||||
mPixels = 0;
|
||||
|
||||
gLibVLC = 0;
|
||||
gLibVLCMedia = 0;
|
||||
gLibVLCMediaPlayer = 0;
|
||||
|
||||
mURL = std::string();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
MediaPluginLibVLC::~MediaPluginLibVLC()
|
||||
{
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void* MediaPluginLibVLC::lock(void* data, void** p_pixels)
|
||||
{
|
||||
struct gVLCContext* context = (gVLCContext*)data;
|
||||
|
||||
*p_pixels = context->texture_pixels;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void MediaPluginLibVLC::unlock(void* data, void* id, void* const* raw_pixels)
|
||||
{
|
||||
// nothing to do here for the moment.
|
||||
// we can modify the raw_pixels here if we want to.
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void MediaPluginLibVLC::display(void* data, void* id)
|
||||
{
|
||||
struct gVLCContext* context = (gVLCContext*)data;
|
||||
|
||||
context->parent->setDirty(0, 0, context->parent->mWidth, context->parent->mHeight);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void MediaPluginLibVLC::initVLC()
|
||||
{
|
||||
char const* vlc_argv[] =
|
||||
{
|
||||
"--no-xlib",
|
||||
};
|
||||
|
||||
int vlc_argc = sizeof(vlc_argv) / sizeof(*vlc_argv);
|
||||
gLibVLC = libvlc_new(vlc_argc, vlc_argv);
|
||||
|
||||
if (!gLibVLC)
|
||||
{
|
||||
// for the moment, if this fails, the plugin will fail and
|
||||
// the media sub-system will tell the viewer something went wrong.
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void MediaPluginLibVLC::resetVLC()
|
||||
{
|
||||
libvlc_media_player_stop(gLibVLCMediaPlayer);
|
||||
libvlc_media_player_release(gLibVLCMediaPlayer);
|
||||
libvlc_release(gLibVLC);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void MediaPluginLibVLC::playMedia()
|
||||
{
|
||||
if (mURL.length() == 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (gLibVLCMediaPlayer)
|
||||
{
|
||||
libvlc_media_player_stop(gLibVLCMediaPlayer);
|
||||
libvlc_media_player_release(gLibVLCMediaPlayer);
|
||||
}
|
||||
|
||||
gLibVLCMedia = libvlc_media_new_location(gLibVLC, mURL.c_str());
|
||||
if (!gLibVLCMedia)
|
||||
{
|
||||
gLibVLCMediaPlayer = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
gLibVLCMediaPlayer = libvlc_media_player_new_from_media(gLibVLCMedia);
|
||||
if (!gLibVLCMediaPlayer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
libvlc_media_release(gLibVLCMedia);
|
||||
|
||||
gVLCCallbackContext.parent = this;
|
||||
gVLCCallbackContext.texture_pixels = mPixels;
|
||||
gVLCCallbackContext.mp = gLibVLCMediaPlayer;
|
||||
|
||||
libvlc_video_set_callbacks(gLibVLCMediaPlayer, lock, unlock, display, &gVLCCallbackContext);
|
||||
libvlc_video_set_format(gLibVLCMediaPlayer, "RV32", mWidth, mHeight, mWidth * mDepth);
|
||||
libvlc_media_player_play(gLibVLCMediaPlayer);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
void MediaPluginLibVLC::receiveMessage( const char* message_string )
|
||||
{
|
||||
LLPluginMessage message_in;
|
||||
|
||||
if(message_in.parse(message_string) >= 0)
|
||||
{
|
||||
std::string message_class = message_in.getClass();
|
||||
std::string message_name = message_in.getName();
|
||||
if(message_class == LLPLUGIN_MESSAGE_CLASS_BASE)
|
||||
{
|
||||
if(message_name == "init")
|
||||
{
|
||||
initVLC();
|
||||
|
||||
LLPluginMessage message("base", "init_response");
|
||||
LLSD versions = LLSD::emptyMap();
|
||||
versions[LLPLUGIN_MESSAGE_CLASS_BASE] = LLPLUGIN_MESSAGE_CLASS_BASE_VERSION;
|
||||
versions[LLPLUGIN_MESSAGE_CLASS_MEDIA] = LLPLUGIN_MESSAGE_CLASS_MEDIA_VERSION;
|
||||
versions[LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER] = LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER_VERSION;
|
||||
message.setValueLLSD("versions", versions);
|
||||
|
||||
std::ostringstream s;
|
||||
s << "LibVLC plugin ";
|
||||
s << LIBVLC_VERSION_MAJOR;
|
||||
s << ".";
|
||||
s << LIBVLC_VERSION_MINOR;
|
||||
s << ".";
|
||||
s << LIBVLC_VERSION_REVISION;
|
||||
|
||||
message.setValue("plugin_version", s.str());
|
||||
sendMessage(message);
|
||||
}
|
||||
else if(message_name == "idle")
|
||||
{
|
||||
}
|
||||
else if(message_name == "cleanup")
|
||||
{
|
||||
resetVLC();
|
||||
}
|
||||
else if(message_name == "shm_added")
|
||||
{
|
||||
SharedSegmentInfo info;
|
||||
info.mAddress = message_in.getValuePointer("address");
|
||||
info.mSize = (size_t)message_in.getValueS32("size");
|
||||
std::string name = message_in.getValue("name");
|
||||
|
||||
mSharedSegments.insert(SharedSegmentMap::value_type(name, info));
|
||||
|
||||
}
|
||||
else if(message_name == "shm_remove")
|
||||
{
|
||||
std::string name = message_in.getValue("name");
|
||||
|
||||
SharedSegmentMap::iterator iter = mSharedSegments.find(name);
|
||||
if(iter != mSharedSegments.end())
|
||||
{
|
||||
if(mPixels == iter->second.mAddress)
|
||||
{
|
||||
libvlc_media_player_stop(gLibVLCMediaPlayer);
|
||||
libvlc_media_player_release(gLibVLCMediaPlayer);
|
||||
gLibVLCMediaPlayer = 0;
|
||||
|
||||
mPixels = NULL;
|
||||
mTextureSegmentName.clear();
|
||||
}
|
||||
mSharedSegments.erase(iter);
|
||||
}
|
||||
else
|
||||
{
|
||||
//std::cerr << "MediaPluginWebKit::receiveMessage: unknown shared memory region!" << std::endl;
|
||||
}
|
||||
|
||||
// Send the response so it can be cleaned up.
|
||||
LLPluginMessage message("base", "shm_remove_response");
|
||||
message.setValue("name", name);
|
||||
sendMessage(message);
|
||||
}
|
||||
else
|
||||
{
|
||||
//std::cerr << "MediaPluginWebKit::receiveMessage: unknown base message: " << message_name << std::endl;
|
||||
}
|
||||
}
|
||||
else if(message_class == LLPLUGIN_MESSAGE_CLASS_MEDIA)
|
||||
{
|
||||
if(message_name == "init")
|
||||
{
|
||||
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "texture_params");
|
||||
message.setValueS32("default_width", 1024);
|
||||
message.setValueS32("default_height", 1024);
|
||||
message.setValueS32("depth", mDepth);
|
||||
message.setValueU32("internalformat", GL_RGB);
|
||||
message.setValueU32("format", GL_BGRA_EXT);
|
||||
message.setValueU32("type", GL_UNSIGNED_BYTE);
|
||||
message.setValueBoolean("coords_opengl", false);
|
||||
sendMessage(message);
|
||||
}
|
||||
else if(message_name == "size_change")
|
||||
{
|
||||
std::string name = message_in.getValue("name");
|
||||
S32 width = message_in.getValueS32("width");
|
||||
S32 height = message_in.getValueS32("height");
|
||||
S32 texture_width = message_in.getValueS32("texture_width");
|
||||
S32 texture_height = message_in.getValueS32("texture_height");
|
||||
|
||||
if(!name.empty())
|
||||
{
|
||||
// Find the shared memory region with this name
|
||||
SharedSegmentMap::iterator iter = mSharedSegments.find(name);
|
||||
if(iter != mSharedSegments.end())
|
||||
{
|
||||
mPixels = (unsigned char*)iter->second.mAddress;
|
||||
mWidth = width;
|
||||
mHeight = height;
|
||||
mTextureWidth = texture_width;
|
||||
mTextureHeight = texture_height;
|
||||
|
||||
playMedia();
|
||||
};
|
||||
};
|
||||
|
||||
LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA, "size_change_response");
|
||||
message.setValue("name", name);
|
||||
message.setValueS32("width", width);
|
||||
message.setValueS32("height", height);
|
||||
message.setValueS32("texture_width", texture_width);
|
||||
message.setValueS32("texture_height", texture_height);
|
||||
sendMessage(message);
|
||||
}
|
||||
else if(message_name == "load_uri")
|
||||
{
|
||||
mURL = message_in.getValue("uri");
|
||||
playMedia();
|
||||
}
|
||||
}
|
||||
else
|
||||
if (message_class == LLPLUGIN_MESSAGE_CLASS_MEDIA_TIME)
|
||||
{
|
||||
if (message_name == "stop")
|
||||
{
|
||||
if (gLibVLCMediaPlayer)
|
||||
{
|
||||
libvlc_media_player_stop(gLibVLCMediaPlayer);
|
||||
}
|
||||
}
|
||||
else if (message_name == "start")
|
||||
{
|
||||
if (gLibVLCMediaPlayer)
|
||||
{
|
||||
libvlc_media_player_play(gLibVLCMediaPlayer);
|
||||
}
|
||||
}
|
||||
else if (message_name == "pause")
|
||||
{
|
||||
if (gLibVLCMediaPlayer)
|
||||
{
|
||||
libvlc_media_player_pause(gLibVLCMediaPlayer);
|
||||
}
|
||||
}
|
||||
else if (message_name == "seek")
|
||||
{
|
||||
}
|
||||
else if (message_name == "set_loop")
|
||||
{
|
||||
}
|
||||
else if (message_name == "set_volume")
|
||||
{
|
||||
if (gLibVLCMediaPlayer)
|
||||
{
|
||||
F64 volume = message_in.getValueReal("volume");
|
||||
libvlc_audio_set_volume(gLibVLCMediaPlayer, (int)(volume * 100));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
bool MediaPluginLibVLC::init()
|
||||
{
|
||||
LLPluginMessage message( LLPLUGIN_MESSAGE_CLASS_MEDIA, "name_text" );
|
||||
message.setValue( "name", "LibVLC Plugin" );
|
||||
sendMessage( message );
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
int init_media_plugin( LLPluginInstance::sendMessageFunction host_send_func,
|
||||
void* host_user_data,
|
||||
LLPluginInstance::sendMessageFunction *plugin_send_func,
|
||||
void **plugin_user_data )
|
||||
{
|
||||
MediaPluginLibVLC* self = new MediaPluginLibVLC( host_send_func, host_user_data );
|
||||
*plugin_send_func = MediaPluginLibVLC::staticReceiveMessage;
|
||||
*plugin_user_data = ( void* )self;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -14,7 +14,6 @@ include(PluginAPI)
|
|||
include(MediaPluginBase)
|
||||
include(OpenGL)
|
||||
include(QuickTimePlugin)
|
||||
include(Boost)
|
||||
|
||||
include_directories(
|
||||
${LLPLUGIN_INCLUDE_DIRS}
|
||||
|
|
@ -54,12 +53,17 @@ target_link_libraries(media_plugin_quicktime
|
|||
${PLUGIN_API_WINDOWS_LIBRARIES}
|
||||
)
|
||||
|
||||
add_dependencies(media_plugin_quicktime
|
||||
${LLPLUGIN_LIBRARIES}
|
||||
${MEDIA_PLUGIN_BASE_LIBRARIES}
|
||||
${LLCOMMON_LIBRARIES}
|
||||
)
|
||||
|
||||
if (WINDOWS)
|
||||
set_target_properties(
|
||||
media_plugin_quicktime
|
||||
PROPERTIES
|
||||
LINK_FLAGS "/MANIFEST:NO /SAFESEH:NO /NODEFAULTLIB:LIBCMT"
|
||||
LINK_FLAGS_DEBUG "/MANIFEST:NO /SAFESEH:NO /NODEFAULTLIB:LIBCMTD"
|
||||
LINK_FLAGS "/MANIFEST:NO"
|
||||
)
|
||||
endif (WINDOWS)
|
||||
|
||||
|
|
|
|||
|
|
@ -311,7 +311,9 @@ private:
|
|||
MatrixRecord transform;
|
||||
SetIdentityMatrix( &transform ); // transforms are additive so start from identify matrix
|
||||
double scaleX = (double) mWidth / mNaturalWidth;
|
||||
double scaleY = -1.0 * (double) mHeight / mNaturalHeight;
|
||||
|
||||
// 2016-05-31 CP remove local flip (via -1.0) since texture coods for media on a prim are now flipped for VLC/CEF
|
||||
double scaleY = 1.0 * (double) mHeight / mNaturalHeight;
|
||||
double centerX = mWidth / 2.0;
|
||||
double centerY = mHeight / 2.0;
|
||||
ScaleMatrix( &transform, X2Fix( scaleX ), X2Fix( scaleY ), X2Fix( centerX ), X2Fix( centerY ) );
|
||||
|
|
@ -837,9 +839,7 @@ void MediaPluginQuickTime::receiveMessage(const char *message_string)
|
|||
else if(message_name == "cleanup")
|
||||
{
|
||||
// TODO: clean up here
|
||||
LLPluginMessage message("base", "goodbye");
|
||||
sendMessage(message);
|
||||
}
|
||||
}
|
||||
else if(message_name == "shm_added")
|
||||
{
|
||||
SharedSegmentInfo info;
|
||||
|
|
@ -921,7 +921,10 @@ void MediaPluginQuickTime::receiveMessage(const char *message_string)
|
|||
#endif
|
||||
message.setValueS32("depth", mDepth);
|
||||
message.setValueU32("internalformat", GL_RGB);
|
||||
message.setValueBoolean("coords_opengl", true); // true == use OpenGL-style coordinates, false == (0,0) is upper left.
|
||||
|
||||
// note this apparently only has an effect when media is opened in 2D browser.
|
||||
// see https://jira.secondlife.com/browse/BUG-18252 - media flipped in 2D so flipping it back.
|
||||
message.setValueBoolean("coords_opengl", false); // true == use OpenGL-style coordinates, false == (0,0) is upper left.
|
||||
message.setValueBoolean("allow_downsample", true);
|
||||
sendMessage(message);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2108,6 +2108,7 @@ if (WINDOWS)
|
|||
SLPlugin
|
||||
media_plugin_quicktime
|
||||
media_plugin_cef
|
||||
media_plugin_libvlc
|
||||
winmm_shim
|
||||
windows-crash-logger
|
||||
)
|
||||
|
|
@ -2353,6 +2354,7 @@ if (NOT ENABLE_MEDIA_PLUGINS)
|
|||
SLPlugin
|
||||
media_plugin_cef
|
||||
media_plugin_gstreamer010
|
||||
media_plugin_libvlc
|
||||
llcommon
|
||||
)
|
||||
else (NOT ENABLE_MEDIA_PLUGINS)
|
||||
|
|
@ -2475,7 +2477,7 @@ if (DARWIN)
|
|||
|
||||
# <FS:TS> Allow disabling media plugins for 64-bit building
|
||||
if (ENABLE_MEDIA_PLUGINS)
|
||||
add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_cef mac-crash-logger)
|
||||
add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_libvlc media_plugin_cef mac-crash-logger)
|
||||
else (ENABLE_MEDIA_PLUGINS)
|
||||
add_dependencies(${VIEWER_BINARY_NAME} SLPlugin mac-crash-logger)
|
||||
endif (ENABLE_MEDIA_PLUGINS)
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@
|
|||
uniform mat3 normal_matrix;
|
||||
uniform mat4 texture_matrix0;
|
||||
uniform mat4 modelview_projection_matrix;
|
||||
uniform bool invert_tex_y = false;
|
||||
const mat4 invTexM = mat4(
|
||||
1, 0, 0, 0,
|
||||
0,-1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
);
|
||||
|
||||
ATTRIBUTE vec3 position;
|
||||
ATTRIBUTE vec4 diffuse_color;
|
||||
|
|
@ -44,6 +51,10 @@ void main()
|
|||
//transform vertex
|
||||
gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
if(invert_tex_y)
|
||||
{
|
||||
vary_texcoord0 = vec2(invTexM * vec4(vary_texcoord0,0,1)).xy;
|
||||
}
|
||||
|
||||
passTextureIndex();
|
||||
vary_normal = normalize(normal_matrix * normal);
|
||||
|
|
|
|||
|
|
@ -26,6 +26,13 @@
|
|||
uniform mat4 texture_matrix0;
|
||||
uniform mat4 modelview_matrix;
|
||||
uniform mat4 modelview_projection_matrix;
|
||||
uniform bool invert_tex_y = false;
|
||||
const mat4 invTexM = mat4(
|
||||
1, 0, 0, 0,
|
||||
0,-1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
);
|
||||
|
||||
|
||||
ATTRIBUTE vec3 position;
|
||||
|
|
@ -62,6 +69,10 @@ void main()
|
|||
#endif
|
||||
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
if(invert_tex_y)
|
||||
{
|
||||
vary_texcoord0 = vec2(invTexM * vec4(vary_texcoord0,0,1)).xy;
|
||||
}
|
||||
|
||||
calcAtmospherics(pos.xyz);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,14 @@
|
|||
uniform mat4 texture_matrix0;
|
||||
uniform mat4 modelview_matrix;
|
||||
uniform mat4 modelview_projection_matrix;
|
||||
|
||||
uniform bool invert_tex_y = false;
|
||||
const mat4 invTexM = mat4(
|
||||
1, 0, 0, 0,
|
||||
0,-1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
);
|
||||
|
||||
ATTRIBUTE vec3 position;
|
||||
void passTextureIndex();
|
||||
|
|
@ -49,6 +57,11 @@ void main()
|
|||
vec4 pos = (modelview_matrix * vert);
|
||||
gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0);
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
|
||||
if(invert_tex_y)
|
||||
{
|
||||
vary_texcoord0 = vec2(invTexM * vec4(vary_texcoord0,0,1)).xy;
|
||||
}
|
||||
|
||||
calcAtmospherics(pos.xyz);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,13 @@ uniform mat3 normal_matrix;
|
|||
uniform mat4 texture_matrix0;
|
||||
uniform mat4 modelview_matrix;
|
||||
uniform mat4 modelview_projection_matrix;
|
||||
uniform bool invert_tex_y = false;
|
||||
const mat4 invTexM = mat4(
|
||||
1, 0, 0, 0,
|
||||
0,-1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
);
|
||||
|
||||
ATTRIBUTE vec3 position;
|
||||
void passTextureIndex();
|
||||
|
|
@ -51,7 +58,10 @@ void main()
|
|||
gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0);
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0, 0, 1)).xy;
|
||||
|
||||
|
||||
if(invert_tex_y)
|
||||
{
|
||||
vary_texcoord0 = vec2(invTexM * vec4(vary_texcoord0,0,1)).xy;
|
||||
}
|
||||
|
||||
vec3 norm = normalize(normal_matrix * normal);
|
||||
|
||||
|
|
|
|||
|
|
@ -139,7 +139,10 @@
|
|||
#include "llcoros.h"
|
||||
//#if !LL_LINUX
|
||||
#include "cef/llceflib.h"
|
||||
//#endif
|
||||
#if LL_WINDOWS
|
||||
#include "vlc/libvlc_version.h"
|
||||
#endif // LL_WINDOWS
|
||||
//#endif // LL_LINUX
|
||||
|
||||
// Third party library includes
|
||||
#include <boost/bind.hpp>
|
||||
|
|
|
|||
|
|
@ -473,6 +473,10 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL ba
|
|||
if (params.mTextureList[i].notNull())
|
||||
{
|
||||
gGL.getTexUnit(i)->bind(params.mTextureList[i], TRUE);
|
||||
if (LLViewerTexture::MEDIA_TEXTURE == params.mTextureList[i]->getType())
|
||||
{
|
||||
gGL.setInverseTexCoordByY(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -482,13 +486,54 @@ void LLRenderPass::pushBatch(LLDrawInfo& params, U32 mask, BOOL texture, BOOL ba
|
|||
{
|
||||
params.mTexture->addTextureStats(params.mVSize);
|
||||
gGL.getTexUnit(0)->bind(params.mTexture, TRUE) ;
|
||||
|
||||
if (!gPipeline.mVertexShadersEnabled)
|
||||
{
|
||||
if (LLViewerTexture::MEDIA_TEXTURE == params.mTexture->getType() && !params.mTextureMatrix)
|
||||
{
|
||||
static const float fIdntInvY[] = {
|
||||
1, 0, 0, 0,
|
||||
0, -1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
};
|
||||
|
||||
gGL.getTexUnit(0)->activate();
|
||||
gGL.matrixMode(LLRender::MM_TEXTURE);
|
||||
gGL.loadMatrix((GLfloat*)fIdntInvY);
|
||||
gPipeline.mTextureMatrixOps++;
|
||||
|
||||
tex_setup = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gGL.setInverseTexCoordByY(LLViewerTexture::MEDIA_TEXTURE == params.mTexture->getType());
|
||||
}
|
||||
|
||||
if (params.mTextureMatrix)
|
||||
{
|
||||
tex_setup = true;
|
||||
gGL.getTexUnit(0)->activate();
|
||||
gGL.matrixMode(LLRender::MM_TEXTURE);
|
||||
gGL.loadMatrix((GLfloat*) params.mTextureMatrix->mMatrix);
|
||||
|
||||
if (LLViewerTexture::MEDIA_TEXTURE == params.mTexture->getType() && !gPipeline.mVertexShadersEnabled)
|
||||
{
|
||||
static const float fIdntInvY[] = {
|
||||
1, 0, 0, 0,
|
||||
0, -1, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
0, 0, 0, 1
|
||||
};
|
||||
|
||||
gGL.multMatrix(fIdntInvY);
|
||||
gPipeline.mMatrixOpCount++;
|
||||
}
|
||||
|
||||
gPipeline.mTextureMatrixOps++;
|
||||
|
||||
tex_setup = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -81,7 +81,8 @@ LLFloaterWebContent::LLFloaterWebContent( const Params& params )
|
|||
mCommitCallbackRegistrar.add( "WebContent.Reload", boost::bind( &LLFloaterWebContent::onClickReload, this ));
|
||||
mCommitCallbackRegistrar.add( "WebContent.Stop", boost::bind( &LLFloaterWebContent::onClickStop, this ));
|
||||
mCommitCallbackRegistrar.add( "WebContent.EnterAddress", boost::bind( &LLFloaterWebContent::onEnterAddress, this ));
|
||||
mCommitCallbackRegistrar.add( "WebContent.PopExternal", boost::bind( &LLFloaterWebContent::onPopExternal, this ));
|
||||
mCommitCallbackRegistrar.add( "WebContent.PopExternal", boost::bind(&LLFloaterWebContent::onPopExternal, this));
|
||||
mCommitCallbackRegistrar.add( "WebContent.TestVideo", boost::bind(&LLFloaterWebContent::onTestVideo, this, _2));
|
||||
}
|
||||
|
||||
BOOL LLFloaterWebContent::postBuild()
|
||||
|
|
@ -235,7 +236,7 @@ void LLFloaterWebContent::preCreate(LLFloaterWebContent::Params& p)
|
|||
for(LLFloaterReg::const_instance_list_t::const_iterator iter = instances.begin(); iter != instances.end(); iter++)
|
||||
{
|
||||
LL_DEBUGS() << " " << (*iter)->getKey()["target"] << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
if(instances.size() >= (size_t)browser_window_limit)
|
||||
{
|
||||
|
|
@ -249,9 +250,9 @@ void LLFloaterWebContent::open_media(const Params& p)
|
|||
{
|
||||
// Specifying a mime type of text/html here causes the plugin system to skip the MIME type probe and just open a browser plugin.
|
||||
LLViewerMedia::proxyWindowOpened(p.target(), p.id());
|
||||
mWebBrowser->setHomePageUrl(p.url, HTTP_CONTENT_TEXT_HTML);
|
||||
mWebBrowser->setHomePageUrl(p.url);
|
||||
mWebBrowser->setTarget(p.target);
|
||||
mWebBrowser->navigateTo(p.url, HTTP_CONTENT_TEXT_HTML, p.clean_browser);
|
||||
mWebBrowser->navigateTo(p.url);
|
||||
|
||||
set_current_url(p.url);
|
||||
|
||||
|
|
@ -509,7 +510,7 @@ void LLFloaterWebContent::onEnterAddress()
|
|||
LLStringUtil::trim(url);
|
||||
if ( url.length() > 0 )
|
||||
{
|
||||
mWebBrowser->navigateTo(url, HTTP_CONTENT_TEXT_HTML);
|
||||
mWebBrowser->navigateTo(url);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -518,9 +519,18 @@ void LLFloaterWebContent::onPopExternal()
|
|||
// make sure there is at least something there.
|
||||
// (perhaps this test should be for minimum length of a URL)
|
||||
std::string url = mAddressCombo->getValue().asString();
|
||||
LLStringUtil::trim(url);
|
||||
if ( url.length() > 0 )
|
||||
LLStringUtil::trim(url);
|
||||
if (url.length() > 0)
|
||||
{
|
||||
LLWeb::loadURLExternal( url );
|
||||
LLWeb::loadURLExternal(url);
|
||||
};
|
||||
}
|
||||
|
||||
void LLFloaterWebContent::onTestVideo(std::string url)
|
||||
{
|
||||
LLStringUtil::trim(url);
|
||||
if (url.length() > 0)
|
||||
{
|
||||
mWebBrowser->navigateTo(url);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,7 @@ protected:
|
|||
void onClickStop();
|
||||
void onEnterAddress();
|
||||
void onPopExternal();
|
||||
void onTestVideo(std::string url);
|
||||
|
||||
static void preCreate(Params& p);
|
||||
void open_media(const Params& );
|
||||
|
|
|
|||
|
|
@ -952,7 +952,7 @@ void LLMediaCtrl::convertInputCoords(S32& x, S32& y)
|
|||
}
|
||||
|
||||
x = ll_round((F32)x * LLUI::getScaleFactor().mV[VX]);
|
||||
if ( ! coords_opengl )
|
||||
if ( coords_opengl )
|
||||
{
|
||||
y = ll_round((F32)(y) * LLUI::getScaleFactor().mV[VY]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -231,8 +231,8 @@ void LLSurfacePatch::eval(const U32 x, const U32 y, const U32 stride, LLVector3
|
|||
const F32 xyScaleInv = (1.f / xyScale)*(0.2222222222f);
|
||||
|
||||
F32 vec[3] = {
|
||||
(F32)fmod((F32)(mOriginGlobal.mdV[0] + x)*xyScaleInv, 256.f), // <FS:ND/> Added (F32) for proper array initialization
|
||||
(F32)fmod((F32)(mOriginGlobal.mdV[1] + y)*xyScaleInv, 256.f), // <FS:ND/> Added (F32) for proper array initialization
|
||||
(F32)fmod((F32)(mOriginGlobal.mdV[0] + x)*xyScaleInv, 256.f),
|
||||
(F32)fmod((F32)(mOriginGlobal.mdV[1] + y)*xyScaleInv, 256.f),
|
||||
0.f
|
||||
};
|
||||
F32 rand_val = llclamp(noise2(vec)* 0.75f + 0.5f, 0.f, 1.f);
|
||||
|
|
|
|||
|
|
@ -1888,8 +1888,6 @@ LLPluginClassMedia* LLViewerMediaImpl::newSourceFromMediaType(std::string media_
|
|||
bool media_plugin_debugging_enabled = gSavedSettings.getBOOL("MediaPluginDebugging");
|
||||
media_source->enableMediaPluginDebugging( media_plugin_debugging_enabled || clean_browser);
|
||||
|
||||
media_source->setFlipY( gSavedSettings.getBOOL( "FSFlipCEFY" ) );
|
||||
|
||||
// need to set agent string here before instance created
|
||||
media_source->setBrowserUserAgent(LLViewerMedia::getCurrentUserAgent());
|
||||
|
||||
|
|
|
|||
|
|
@ -3781,37 +3781,6 @@ void LLViewerMediaTexture::switchTexture(U32 ch, LLFace* facep)
|
|||
|
||||
if(mIsPlaying) //old textures switch to the media texture
|
||||
{
|
||||
// <FS:ND> If using CEF then set a texture matrix to flip around the Y Axis.
|
||||
static bool sFlipY = gSavedSettings.getBOOL( "FSFlipCEFY" );
|
||||
|
||||
LLViewerMediaImpl *pMedia = mMediaImplp;
|
||||
if( !pMedia )
|
||||
pMedia = LLViewerMedia::getMediaImplFromTextureID(mID);
|
||||
|
||||
std::string strMimeType;
|
||||
if( pMedia )
|
||||
strMimeType = pMedia->getMimeType();
|
||||
|
||||
std::string strImpl = LLMIMETypes::implType( strMimeType );
|
||||
bool bCoordsOpenGl = sFlipY;
|
||||
if( pMedia && pMedia->getMediaPlugin() )
|
||||
bCoordsOpenGl = pMedia->getMediaPlugin()->getTextureCoordsOpenGL();
|
||||
|
||||
if( strImpl == "media_plugin_cef" && !bCoordsOpenGl )
|
||||
{
|
||||
if( !facep->mTextureMatrix )
|
||||
{
|
||||
facep->mTextureMatrix = new LLMatrix4();
|
||||
facep->mTextureMatrix->mMatrix[ 1 ][ 1 ] = -1.0f;
|
||||
facep->mTextureMatrix->mMatrix[ 2 ][ 1 ] = 1.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_WARNS() << "Matrix for media face is already set." << LL_ENDL;
|
||||
}
|
||||
}
|
||||
// </FS:ND>
|
||||
|
||||
facep->switchTexture(ch, this);
|
||||
}
|
||||
else //switch to old textures.
|
||||
|
|
|
|||
|
|
@ -1426,8 +1426,8 @@ void LLWorld::updateWaterObjects()
|
|||
|
||||
S32 add_boundary[4] = {
|
||||
// <FS:CR> Fix water height on regions larger than 2048x2048
|
||||
//512 - (max_x - region_x),
|
||||
//512 - (max_y - region_y),
|
||||
//(S32)(512 - (max_x - region_x)),
|
||||
//(S32)(512 - (max_y - region_y)),
|
||||
(S32)(512 - (max_x - (rwidth - 256) - region_x)),
|
||||
(S32)(512 - (max_y - (rwidth - 256) - region_y)),
|
||||
(S32)(512 - (region_x - min_x)),
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 282 B |
|
|
@ -811,7 +811,10 @@ with the same filename but different name
|
|||
<texture name="Unread_Chiclet" file_name="bottomtray/Unread_Chiclet.png" preload="false" />
|
||||
|
||||
<texture name="UpArrow_Off" file_name="icons/UpArrow_Off.png" preload="false" />
|
||||
<texture name="Vertical Drag Handle" file_name="widgets/vertical_drag_handle.png" scale.left="2" scale.right="7" scale.bottom="8" scale.top="120" scale_type="scale_outer"/>
|
||||
|
||||
<texture name="Video_URL_Off" file_name="icons/Video_URL_Off.png" preload="true" />
|
||||
|
||||
<texture name="Vertical Drag Handle" file_name="widgets/vertical_drag_handle.png" scale.left="2" scale.right="7" scale.bottom="8" scale.top="120" scale_type="scale_outer"/>
|
||||
|
||||
<texture name="Volume_Background" file_name="windows/Volume_Background.png" preload="false"
|
||||
scale.left="6" scale.top="33" scale.right="63" scale.bottom="10" />
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@
|
|||
<layout_panel
|
||||
auto_resize="false"
|
||||
default_tab_group="1"
|
||||
height="22"
|
||||
height="44"
|
||||
layout="topleft"
|
||||
left="0"
|
||||
min_height="20"
|
||||
min_height="40"
|
||||
name="nav_controls"
|
||||
top="400"
|
||||
width="770">
|
||||
|
|
@ -153,6 +153,90 @@
|
|||
<button.commit_callback
|
||||
function="WebContent.PopExternal" />
|
||||
</button>
|
||||
|
||||
<button
|
||||
image_overlay="Video_URL_Off"
|
||||
image_disabled="PushButton_Disabled"
|
||||
image_disabled_selected="PushButton_Disabled"
|
||||
image_selected="PushButton_Selected"
|
||||
image_unselected="PushButton_Off"
|
||||
chrome="true"
|
||||
tool_tip="MPEG4 Video Test"
|
||||
enabled="true"
|
||||
follows="left|top"
|
||||
height="22"
|
||||
layout="topleft"
|
||||
left="1"
|
||||
name="VLC Plugin Test"
|
||||
top="22"
|
||||
width="22">
|
||||
<button.commit_callback
|
||||
function="WebContent.TestVideo"
|
||||
parameter="https://callum-linden.s3.amazonaws.com/sample_media/ss.mp4"/>
|
||||
</button>
|
||||
|
||||
<button
|
||||
image_overlay="Video_URL_Off"
|
||||
image_disabled="PushButton_Disabled"
|
||||
image_disabled_selected="PushButton_Disabled"
|
||||
image_selected="PushButton_Selected"
|
||||
image_unselected="PushButton_Off"
|
||||
chrome="true"
|
||||
tool_tip="MKV Video Test"
|
||||
enabled="true"
|
||||
follows="left|top"
|
||||
height="22"
|
||||
layout="topleft"
|
||||
left="27"
|
||||
name="VLC Plugin Test"
|
||||
top="22"
|
||||
width="22">
|
||||
<button.commit_callback
|
||||
function="WebContent.TestVideo"
|
||||
parameter="https://callum-linden.s3.amazonaws.com/sample_media/jellyfish.mkv"/>
|
||||
</button>
|
||||
|
||||
<button
|
||||
image_overlay="Video_URL_Off"
|
||||
image_disabled="PushButton_Disabled"
|
||||
image_disabled_selected="PushButton_Disabled"
|
||||
image_selected="PushButton_Selected"
|
||||
image_unselected="PushButton_Off"
|
||||
chrome="true"
|
||||
tool_tip="WebM Video Test"
|
||||
enabled="true"
|
||||
follows="left|top"
|
||||
height="22"
|
||||
layout="topleft"
|
||||
left="51"
|
||||
name="VLC Plugin Test"
|
||||
top="22"
|
||||
width="22">
|
||||
<button.commit_callback
|
||||
function="WebContent.TestVideo"
|
||||
parameter="https://callum-linden.s3.amazonaws.com/sample_media/kubo.webm"/>
|
||||
</button>
|
||||
|
||||
<button
|
||||
image_overlay="Video_URL_Off"
|
||||
image_disabled="PushButton_Disabled"
|
||||
image_disabled_selected="PushButton_Disabled"
|
||||
image_selected="PushButton_Selected"
|
||||
image_unselected="PushButton_Off"
|
||||
chrome="true"
|
||||
tool_tip="MP3 audio Test"
|
||||
enabled="true"
|
||||
follows="left|top"
|
||||
height="22"
|
||||
layout="topleft"
|
||||
left="75"
|
||||
name="VLC Plugin Test"
|
||||
top="22"
|
||||
width="22">
|
||||
function="WebContent.TestVideo"
|
||||
parameter="https://callum-linden.s3.amazonaws.com/alegria.mp3"/>
|
||||
</button>
|
||||
|
||||
</layout_panel>
|
||||
<layout_panel
|
||||
height="40"
|
||||
|
|
|
|||
|
|
@ -130,10 +130,21 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_cef
|
||||
</impl>
|
||||
</scheme>
|
||||
<mimetype name="blank">
|
||||
<scheme name="libvlc">
|
||||
<label name="libvlc_label">
|
||||
LibVLC supported media
|
||||
</label>
|
||||
<widgettype>
|
||||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</scheme>
|
||||
<mimetype name="blank">
|
||||
<label name="blank_label">
|
||||
- None -
|
||||
</label>
|
||||
|
|
@ -163,7 +174,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/*">
|
||||
|
|
@ -174,7 +185,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="image/*">
|
||||
|
|
@ -196,7 +207,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="application/javascript">
|
||||
|
|
@ -218,7 +229,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_cef
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="application/pdf">
|
||||
|
|
@ -295,7 +306,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_cef
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="audio/mpeg">
|
||||
|
|
@ -306,7 +317,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="audio/x-aiff">
|
||||
|
|
@ -317,7 +328,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="audio/x-wav">
|
||||
|
|
@ -328,7 +339,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="image/bmp">
|
||||
|
|
@ -438,7 +449,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/mp4">
|
||||
|
|
@ -449,10 +460,21 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="video/quicktime">
|
||||
<mimetype name="application/octet-stream">
|
||||
<label name="video/octet-stream">
|
||||
Movie
|
||||
</label>
|
||||
<widgettype>
|
||||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="video/quicktime">
|
||||
<label name="video/quicktime_label">
|
||||
Movie (QuickTime)
|
||||
</label>
|
||||
|
|
@ -460,7 +482,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/x-ms-asf">
|
||||
|
|
@ -471,7 +493,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/x-ms-wmv">
|
||||
|
|
@ -482,7 +504,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_cef
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="video/x-msvideo">
|
||||
|
|
@ -493,7 +515,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_quicktime
|
||||
media_plugin_cef
|
||||
</impl>
|
||||
</mimetype>
|
||||
</mimetypes>
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</scheme>
|
||||
<mimetype name="blank">
|
||||
|
|
@ -163,7 +163,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/*">
|
||||
|
|
@ -174,7 +174,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="image/*">
|
||||
|
|
@ -196,7 +196,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="application/javascript">
|
||||
|
|
@ -218,7 +218,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="application/pdf">
|
||||
|
|
@ -295,7 +295,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="audio/mpeg">
|
||||
|
|
@ -306,7 +306,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="audio/x-aiff">
|
||||
|
|
@ -317,7 +317,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="audio/x-wav">
|
||||
|
|
@ -328,7 +328,7 @@
|
|||
audio
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="image/bmp">
|
||||
|
|
@ -438,7 +438,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/mp4">
|
||||
|
|
@ -449,7 +449,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="video/quicktime">
|
||||
|
|
@ -460,7 +460,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/x-ms-asf">
|
||||
|
|
@ -471,7 +471,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype name="video/x-ms-wmv">
|
||||
|
|
@ -482,7 +482,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
<mimetype menu="1" name="video/x-msvideo">
|
||||
|
|
@ -493,7 +493,7 @@
|
|||
movie
|
||||
</widgettype>
|
||||
<impl>
|
||||
media_plugin_gstreamer
|
||||
media_plugin_libvlc
|
||||
</impl>
|
||||
</mimetype>
|
||||
</mimetypes>
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ libcurl Version: [LIBCURL_VERSION]
|
|||
J2C Decoder Version: [J2C_VERSION]
|
||||
Audio Driver Version: [AUDIO_DRIVER_VERSION]
|
||||
LLCEFLib/CEF Version: [LLCEFLIB_VERSION]
|
||||
LibVLC Version: [LIBVLC_VERSION]
|
||||
Voice Server Version: [VOICE_VERSION]
|
||||
</string>
|
||||
<string name="AboutSettings">
|
||||
|
|
@ -81,7 +82,7 @@ VFS (cache) creation time (UTC): [VFS_DATE]
|
|||
<string name="AboutTraffic">Packets Lost: [PACKETS_LOST,number,0]/[PACKETS_IN,number,0] ([PACKETS_PCT,number,1]%)</string>
|
||||
<string name="ErrorFetchingServerReleaseNotesURL">Error fetching server release notes URL.</string>
|
||||
<string name="BuildConfiguration">Build Configuration</string>
|
||||
|
||||
|
||||
<!-- progress -->
|
||||
<string name="ProgressRestoring">Restoring...</string>
|
||||
<string name="ProgressChangingResolution">Changing resolution...</string>
|
||||
|
|
|
|||
|
|
@ -539,6 +539,11 @@ class Windows_i686_Manifest(ViewerManifest):
|
|||
self.path("media_plugin_cef.dll")
|
||||
self.end_prefix()
|
||||
|
||||
# Media plugins - LibVLC
|
||||
if self.prefix(src='../media_plugins/libvlc/%s' % self.args['configuration'], dst="llplugin"):
|
||||
self.path("media_plugin_libvlc.dll")
|
||||
self.end_prefix()
|
||||
|
||||
# winmm.dll shim
|
||||
if self.prefix(src='../media_plugins/winmmshim/%s' % self.args['configuration'], dst=""):
|
||||
self.path("winmm.dll")
|
||||
|
|
@ -645,6 +650,12 @@ class Windows_i686_Manifest(ViewerManifest):
|
|||
self.path("zh-TW.pak")
|
||||
self.end_prefix()
|
||||
|
||||
if self.prefix(src=os.path.join(os.pardir, 'packages', 'bin', 'release'), dst="llplugin"):
|
||||
self.path("libvlc.dll")
|
||||
self.path("libvlccore.dll")
|
||||
self.path("plugins/")
|
||||
self.end_prefix()
|
||||
|
||||
# pull in the crash logger and updater from other projects
|
||||
# tag:"crash-logger" here as a cue to the exporter
|
||||
self.path(src='../win_crash_logger/%s/windows-crash-logger.exe' % self.args['configuration'],
|
||||
|
|
@ -1333,8 +1344,18 @@ class LinuxManifest(ViewerManifest):
|
|||
if self.prefix(src="", dst="bin/llplugin"):
|
||||
self.path("../media_plugins/gstreamer010/libmedia_plugin_gstreamer010.so", "libmedia_plugin_gstreamer.so")
|
||||
self.path( "../media_plugins/cef/libmedia_plugin_cef.so", "libmedia_plugin_cef.so" )
|
||||
self.path("../media_plugins/libvlc/libmedia_plugin_libvlc.so", "libmedia_plugin_libvlc.so")
|
||||
self.end_prefix("bin/llplugin")
|
||||
|
||||
if self.prefix(src=os.path.join(os.pardir, 'packages', 'lib', 'vlc', 'plugins'), dst="bin/llplugin/vlc/plugins"):
|
||||
self.path( "plugins.dat" )
|
||||
self.path( "*/*.so" )
|
||||
self.end_prefix()
|
||||
|
||||
if self.prefix(src=os.path.join(os.pardir, 'packages', 'lib' ), dst="lib"):
|
||||
self.path( "libvlc*.so*" )
|
||||
self.end_prefix()
|
||||
|
||||
# CEF files
|
||||
if self.prefix(src=os.path.join(os.pardir, 'packages', 'lib', 'release'), dst="lib"):
|
||||
self.path( "libcef.so" )
|
||||
|
|
|
|||
Loading…
Reference in New Issue