#include <llviewermedia.h>
Static Public Member Functions | |
static void | initClass () |
static void | cleanupClass () |
static void | play (const std::string &media_url, const std::string &mime_type, const LLUUID &placeholder_texture_id, S32 media_width, S32 media_height, U8 media_auto_scale, U8 media_loop) |
static void | stop () |
static void | pause () |
static void | start () |
static void | seek (F32 time) |
static void | setVolume (F32 volume) |
static LLMediaBase::EStatus | getStatus () |
static LLUUID | getMediaTextureID () |
static bool | getMediaSize (S32 *media_width, S32 *media_height) |
static bool | getTextureSize (S32 *texture_width, S32 *texture_height) |
static bool | isMediaPlaying () |
static bool | isMediaPaused () |
static bool | hasMedia () |
static bool | isActiveMediaTexture (const LLUUID &id) |
static std::string | getMediaURL () |
static std::string | getMimeType () |
static void | setMimeType (std::string mime_type) |
static void | updateImagesMediaStreams () |
Definition at line 39 of file llviewermedia.h.
void LLViewerMedia::initClass | ( | void | ) | [static] |
Definition at line 420 of file llviewermedia.cpp.
References LLMediaManager::addMimeTypeImplNameMap(), codec, gDirUtilp, LLDir::getDirDelimiter(), LLDir::getExecutableDir(), LLDir::getExpandedFilename(), LLMediaManager::getInstance(), LLViewerWindow::getPlatformWindow(), LLControlGroup::getString(), gSavedSettings, gViewerWindow, LLMediaManager::initClass(), LL_PATH_APP_SETTINGS, LL_PATH_MOZILLA_PROFILE, LL_VERSION_BUILD, LL_VERSION_MAJOR, LL_VERSION_MINOR, LL_VERSION_PATCH, LLMIMETypes::LLMIMEInfo::mImpl, LLMediaManagerData::setBrowserApplicationDir(), LLMediaManagerData::setBrowserComponentDir(), LLMediaManagerData::setBrowserParentWindow(), LLMediaManagerData::setBrowserProfileDir(), LLMediaManagerData::setBrowserProfileName(), LLMediaManagerData::setBrowserUserAgentId(), and LLMIMETypes::sMap.
Referenced by idle_startup().
void LLViewerMedia::cleanupClass | ( | ) | [static] |
Definition at line 485 of file llviewermedia.cpp.
References LLMediaManager::cleanupClass().
void LLViewerMedia::play | ( | const std::string & | media_url, | |
const std::string & | mime_type, | |||
const LLUUID & | placeholder_texture_id, | |||
S32 | media_width, | |||
S32 | media_height, | |||
U8 | media_auto_scale, | |||
U8 | media_loop | |||
) | [static] |
Definition at line 491 of file llviewermedia.cpp.
References LLViewerMediaImpl::play().
Referenced by LLViewerParcelMedia::play().
void LLViewerMedia::stop | ( | ) | [static] |
Definition at line 502 of file llviewermedia.cpp.
References LLViewerMediaImpl::stop().
Referenced by LLViewerParcelMedia::stop().
void LLViewerMedia::pause | ( | ) | [static] |
Definition at line 508 of file llviewermedia.cpp.
References LLViewerMediaImpl::pause().
Referenced by LLViewerParcelMedia::pause().
void LLViewerMedia::start | ( | void | ) | [static] |
Definition at line 514 of file llviewermedia.cpp.
References LLViewerMediaImpl::start().
Referenced by LLViewerParcelMedia::start().
void LLViewerMedia::seek | ( | F32 | time | ) | [static] |
Definition at line 520 of file llviewermedia.cpp.
References LLViewerMediaImpl::seek().
Referenced by LLViewerParcelMedia::seek().
void LLViewerMedia::setVolume | ( | F32 | volume | ) | [static] |
Definition at line 526 of file llviewermedia.cpp.
References LLViewerMediaImpl::setVolume().
Referenced by audio_update_volume().
LLMediaBase::EStatus LLViewerMedia::getStatus | ( | ) | [static] |
Definition at line 532 of file llviewermedia.cpp.
References LLViewerMediaImpl::getStatus().
Referenced by LLViewerParcelMedia::getStatus().
LLUUID LLViewerMedia::getMediaTextureID | ( | ) | [static] |
Definition at line 539 of file llviewermedia.cpp.
References LLViewerMediaImpl::getMediaTextureID().
Referenced by LLPanelFaceSetMediaFunctor::apply(), isActiveMediaTexture(), and LLViewerParcelMedia::update().
Definition at line 546 of file llviewermedia.cpp.
References LLMediaBase::getMediaHeight(), LLMediaBase::getMediaWidth(), LLViewerMediaImpl::mMediaSource, and NULL.
Referenced by LLPanelFaceSetMediaFunctor::apply().
Definition at line 561 of file llviewermedia.cpp.
References LLMediaBase::getMediaHeight(), LLMediaBase::getMediaWidth(), LLViewerMediaImpl::mMediaSource, NULL, S32, LLMediaManager::textureHeightFromMediaHeight(), and LLMediaManager::textureWidthFromMediaWidth().
Referenced by LLPanelFaceSetMediaFunctor::apply().
bool LLViewerMedia::isMediaPlaying | ( | ) | [static] |
Definition at line 583 of file llviewermedia.cpp.
References LLViewerMediaImpl::getStatus(), indra::ipc::saranwrap::status(), and LLMediaBase::STATUS_STARTED.
Referenced by LLViewerMediaImpl::destroyMediaSource(), isActiveMediaTexture(), LLViewerParcelMediaAutoPlay::tick(), LLOverlayBar::toggleMediaPlay(), and LLViewerParcelMedia::update().
bool LLViewerMedia::isMediaPaused | ( | ) | [static] |
Definition at line 590 of file llviewermedia.cpp.
References LLViewerMediaImpl::getStatus(), indra::ipc::saranwrap::status(), and LLMediaBase::STATUS_PAUSED.
Referenced by LLViewerParcelMedia::processParcelMediaCommandMessage(), and LLOverlayBar::toggleMediaPlay().
bool LLViewerMedia::hasMedia | ( | ) | [static] |
Definition at line 597 of file llviewermedia.cpp.
References LLViewerMediaImpl::mMediaSource, and NULL.
Referenced by LLPanelFace::getState(), and LLViewerParcelMedia::processParcelMediaCommandMessage().
bool LLViewerMedia::isActiveMediaTexture | ( | const LLUUID & | id | ) | [static] |
Definition at line 604 of file llviewermedia.cpp.
References getMediaTextureID(), and isMediaPlaying().
Referenced by handle_click_action_open_media().
std::string LLViewerMedia::getMediaURL | ( | ) | [static] |
Definition at line 613 of file llviewermedia.cpp.
References LLViewerMediaImpl::mMediaURL.
Referenced by LLViewerParcelMedia::update().
std::string LLViewerMedia::getMimeType | ( | ) | [static] |
Definition at line 619 of file llviewermedia.cpp.
References LLViewerMediaImpl::mMimeType.
Referenced by LLMediaRemoteCtrl::enableMediaButtons(), and LLMediaRemoteCtrl::setToolTip().
void LLViewerMedia::setMimeType | ( | std::string | mime_type | ) | [static] |
Definition at line 625 of file llviewermedia.cpp.
References LLViewerMediaImpl::mMimeType.
Referenced by LLMimeDiscoveryResponder::completeAny(), and LLViewerParcelMedia::update().
void LLViewerMedia::updateImagesMediaStreams | ( | ) | [static] |
Definition at line 577 of file llviewermedia.cpp.
References LLViewerMediaImpl::updateImagesMediaStreams().
Referenced by LLViewerImageList::updateImages().