LLViewerMediaImpl Class Reference

Inheritance diagram for LLViewerMediaImpl:

Inheritance graph
[legend]
Collaboration diagram for LLViewerMediaImpl:

Collaboration graph
[legend]

List of all members.

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

LLMediaBasemMediaSource
LLUUID mMovieImageID
bool mMovieImageHasMips
std::string mMediaURL
std::string mMimeType

Private Member Functions

void initializePlaceholderImage (LLViewerImage *placeholder_image, LLMediaBase *media_source)


Detailed Description

Definition at line 48 of file llviewermedia.cpp.


Constructor & Destructor Documentation

LLViewerMediaImpl::LLViewerMediaImpl (  )  [inline]

Definition at line 52 of file llviewermedia.cpp.


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)

void LLViewerMediaImpl::stop (  ) 

Definition at line 162 of file llviewermedia.cpp.

References destroyMediaSource().

Referenced by play(), and LLViewerMedia::stop().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerMediaImpl::pause (  ) 

Definition at line 167 of file llviewermedia.cpp.

References LLMediaBase::addCommand(), LLMediaBase::COMMAND_PAUSE, and mMediaSource.

Referenced by LLViewerMedia::pause().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerMediaImpl::start ( void   ) 

Definition at line 175 of file llviewermedia.cpp.

References LLMediaBase::addCommand(), LLMediaBase::COMMAND_START, and mMediaSource.

Referenced by LLViewerMedia::start().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerMediaImpl::seek ( F32  time  ) 

Definition at line 183 of file llviewermedia.cpp.

References mMediaSource, and LLMediaBase::seek().

Referenced by LLViewerMedia::seek().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerMediaImpl::setVolume ( F32  volume  ) 

Definition at line 191 of file llviewermedia.cpp.

References mMediaSource, and LLMediaBase::setVolume().

Referenced by LLViewerMedia::setVolume().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

void LLViewerMediaImpl::onMediaContentsChange ( const EventType event_in  )  [virtual]

void LLViewerMediaImpl::updateMovieImage ( const LLUUID image_id,
BOOL  active 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerMediaImpl::updateImagesMediaStreams (  ) 

Definition at line 249 of file llviewermedia.cpp.

References LLMediaManager::updateClass().

Referenced by LLViewerMedia::updateImagesMediaStreams().

Here is the call graph for this function:

Here is the caller graph for this function:

LLUUID LLViewerMediaImpl::getMediaTextureID (  ) 

Definition at line 409 of file llviewermedia.cpp.

References mMovieImageID.

Referenced by LLViewerMedia::getMediaTextureID().

Here is the caller graph for this function:

void LLViewerMediaImpl::initializePlaceholderImage ( LLViewerImage placeholder_image,
LLMediaBase media_source 
) [private]


Member Data Documentation

Definition at line 87 of file llviewermedia.cpp.

Referenced by updateMovieImage().

Definition at line 88 of file llviewermedia.cpp.

Referenced by LLViewerMedia::getMediaURL(), and play().

Definition at line 89 of file llviewermedia.cpp.

Referenced by LLViewerMedia::getMimeType(), play(), and LLViewerMedia::setMimeType().


The documentation for this class was generated from the following file:

Generated on Fri May 16 09:27:57 2008 for SecondLife by  doxygen 1.5.5