Public Member Functions | |
LLViewerMediaImpl () | |
void | initControlListeners () |
void | destroyMediaSource () |
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) |
void | stop () |
void | pause () |
void | start () |
void | seek (F32 time) |
void | setVolume (F32 volume) |
LLMediaBase::EStatus | getStatus () |
void | onMediaSizeChange (const EventType &event_in) |
void | onMediaContentsChange (const EventType &event_in) |
void | updateMovieImage (const LLUUID &image_id, BOOL active) |
void | updateImagesMediaStreams () |
LLUUID | getMediaTextureID () |
Public Attributes | |
LLMediaBase * | mMediaSource |
LLUUID | mMovieImageID |
bool | mMovieImageHasMips |
std::string | mMediaURL |
std::string | mMimeType |
Private Member Functions | |
void | initializePlaceholderImage (LLViewerImage *placeholder_image, LLMediaBase *media_source) |
Definition at line 48 of file llviewermedia.cpp.
LLViewerMediaImpl::LLViewerMediaImpl | ( | ) | [inline] |
Definition at line 52 of file llviewermedia.cpp.
void LLViewerMediaImpl::initControlListeners | ( | ) |
void LLViewerMediaImpl::destroyMediaSource | ( | ) |
Definition at line 96 of file llviewermedia.cpp.
References LLMediaManager::destroySource(), LLMediaManager::getInstance(), LLViewerMedia::isMediaPlaying(), mMediaSource, NULL, LLUUID::null, LLMediaBase::remObserver(), and updateMovieImage().
Referenced by stop().
void LLViewerMediaImpl::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 | |||
) |
Definition at line 112 of file llviewermedia.cpp.
References LLMediaBase::addCommand(), LLMediaBase::addObserver(), LLMediaBase::COMMAND_START, LLMediaManager::createSourceFromMimeType(), LLControlGroup::getBOOL(), LLMediaManager::getInstance(), gSavedSettings, llendl, llwarns, mMediaSource, mMediaURL, mMimeType, mMovieImageID, LLMediaBase::navigateTo(), LLURI::scheme(), LLMediaBase::setAutoScaled(), LLMediaBase::setLooping(), LLMediaBase::setRequestedMediaSize(), and stop().
Referenced by LLViewerMedia::play().
void LLViewerMediaImpl::stop | ( | ) |
Definition at line 162 of file llviewermedia.cpp.
References destroyMediaSource().
Referenced by play(), and LLViewerMedia::stop().
void LLViewerMediaImpl::pause | ( | ) |
Definition at line 167 of file llviewermedia.cpp.
References LLMediaBase::addCommand(), LLMediaBase::COMMAND_PAUSE, and mMediaSource.
Referenced by LLViewerMedia::pause().
void LLViewerMediaImpl::start | ( | void | ) |
Definition at line 175 of file llviewermedia.cpp.
References LLMediaBase::addCommand(), LLMediaBase::COMMAND_START, and mMediaSource.
Referenced by LLViewerMedia::start().
void LLViewerMediaImpl::seek | ( | F32 | time | ) |
Definition at line 183 of file llviewermedia.cpp.
References mMediaSource, and LLMediaBase::seek().
Referenced by LLViewerMedia::seek().
void LLViewerMediaImpl::setVolume | ( | F32 | volume | ) |
Definition at line 191 of file llviewermedia.cpp.
References mMediaSource, and LLMediaBase::setVolume().
Referenced by LLViewerMedia::setVolume().
LLMediaBase::EStatus LLViewerMediaImpl::getStatus | ( | ) |
Definition at line 199 of file llviewermedia.cpp.
References LLMediaBase::getStatus(), mMediaSource, and LLMediaBase::STATUS_UNKNOWN.
Referenced by LLViewerMedia::getStatus(), LLViewerMedia::isMediaPaused(), and LLViewerMedia::isMediaPlaying().
void LLViewerMediaImpl::onMediaSizeChange | ( | const EventType & | event_in | ) | [virtual] |
Reimplemented from LLMediaObserver.
Definition at line 325 of file llviewermedia.cpp.
References LLViewerImageList::getImage(), LLMediaEvent::getSubject(), gImageList, initializePlaceholderImage(), llendl, llinfos, and mMovieImageID.
void LLViewerMediaImpl::onMediaContentsChange | ( | const EventType & | event_in | ) | [virtual] |
Reimplemented from LLMediaObserver.
Definition at line 299 of file llviewermedia.cpp.
References LLImageGL::getHasGLTexture(), LLViewerImageList::getImage(), LLMediaBase::getMediaData(), LLMediaBase::getMediaDataHeight(), LLMediaBase::getMediaDataWidth(), LLMediaBase::getMediaHeight(), LLMediaBase::getMediaWidth(), LLMediaEvent::getSubject(), LLImageGL::getUseMipMaps(), gImageList, initializePlaceholderImage(), mMovieImageID, S32, and LLImageGL::setSubImage().
Definition at line 213 of file llviewermedia.cpp.
References FALSE, LLViewerImage::getImage(), LLImageGL::getUseMipMaps(), LLUUID::isNull(), LLViewerImage::mIsMediaTexture, mMovieImageHasMips, mMovieImageID, LLViewerImage::reinit(), LLUUID::setNull(), and TRUE.
Referenced by destroyMediaSource().
void LLViewerMediaImpl::updateImagesMediaStreams | ( | ) |
Definition at line 249 of file llviewermedia.cpp.
References LLMediaManager::updateClass().
Referenced by LLViewerMedia::updateImagesMediaStreams().
LLUUID LLViewerMediaImpl::getMediaTextureID | ( | ) |
Definition at line 409 of file llviewermedia.cpp.
References mMovieImageID.
Referenced by LLViewerMedia::getMediaTextureID().
void LLViewerMediaImpl::initializePlaceholderImage | ( | LLViewerImage * | placeholder_image, | |
LLMediaBase * | media_source | |||
) | [private] |
Definition at line 254 of file llviewermedia.cpp.
References LLImageGL::createGLTexture(), LLImageGL::destroyGLTexture(), FALSE, LLMediaBase::getMediaDepth(), LLMediaBase::getMediaHeight(), LLMediaBase::getMediaWidth(), LLMediaBase::getTextureFormatInternal(), LLMediaBase::getTextureFormatPrimary(), LLMediaBase::getTextureFormatType(), llendl, llinfos, LLViewerImage::mIsMediaTexture, mMovieImageID, LLViewerImage::reinit(), LLImageGL::setExplicitFormat(), LLImageGL::setUseMipMaps(), LLMediaManager::textureHeightFromMediaHeight(), and LLMediaManager::textureWidthFromMediaWidth().
Referenced by onMediaContentsChange(), and onMediaSizeChange().
Definition at line 85 of file llviewermedia.cpp.
Referenced by destroyMediaSource(), LLViewerMedia::getMediaSize(), getStatus(), LLViewerMedia::getTextureSize(), LLViewerMedia::hasMedia(), pause(), play(), seek(), setVolume(), and start().
Definition at line 86 of file llviewermedia.cpp.
Referenced by getMediaTextureID(), initializePlaceholderImage(), onMediaContentsChange(), onMediaSizeChange(), play(), and updateMovieImage().
std::string LLViewerMediaImpl::mMediaURL |
Definition at line 88 of file llviewermedia.cpp.
Referenced by LLViewerMedia::getMediaURL(), and play().
std::string LLViewerMediaImpl::mMimeType |
Definition at line 89 of file llviewermedia.cpp.
Referenced by LLViewerMedia::getMimeType(), play(), and LLViewerMedia::setMimeType().