#include <llmediabase.h>
Public Types | |
enum | ECommand { COMMAND_NONE = 0, COMMAND_STOP = 1, COMMAND_START = 2, COMMAND_PAUSE = 4, COMMAND_BACK = 5, COMMAND_FORWARD = 6 } |
enum | EStatus { STATUS_UNKNOWN = 0, STATUS_INITIALIZING = 1, STATUS_NAVIGATING = 2, STATUS_STARTED = 3, STATUS_STOPPED = 4, STATUS_PAUSED = 6, STATUS_RESETTING = 7 } |
Public Member Functions | |
LLMediaBase () | |
virtual | ~LLMediaBase () |
virtual bool | init ()=0 |
virtual bool | reset ()=0 |
virtual bool | setMimeType (const std::string mime_type)=0 |
virtual std::string | getMimeType () const =0 |
virtual std::string | getMediaURL () const =0 |
virtual std::string | getVersion ()=0 |
virtual bool | set404RedirectUrl (std::string redirect_url)=0 |
virtual bool | clr404RedirectUrl ()=0 |
virtual bool | setBackgroundColor (unsigned int red, unsigned int green, unsigned int blue) const =0 |
virtual bool | setCaretColor (unsigned int red, unsigned int green, unsigned int blue) const =0 |
virtual bool | updateMedia ()=0 |
virtual bool | setRequestedMediaSize (int media_width, int media_height)=0 |
virtual int | getMediaWidth () const =0 |
virtual int | getMediaHeight () const =0 |
virtual bool | setMediaDepth (int media_depth)=0 |
virtual int | getMediaDepth () const =0 |
virtual int | getMediaBufferSize () const =0 |
virtual unsigned char * | getMediaData ()=0 |
virtual int | getMediaDataWidth () const =0 |
virtual int | getMediaDataHeight () const =0 |
virtual int | getTextureFormatInternal () const =0 |
virtual int | getTextureFormatPrimary () const =0 |
virtual int | getTextureFormatType () const =0 |
virtual bool | setVolume (float volume)=0 |
virtual float | getVolume () const =0 |
virtual bool | addCommand (ECommand cmd)=0 |
virtual bool | clearCommand ()=0 |
virtual bool | updateCommand ()=0 |
virtual EStatus | getStatus ()=0 |
virtual bool | seek (double time)=0 |
virtual bool | setLooping (bool enable)=0 |
virtual bool | isLooping ()=0 |
virtual bool | setAutoScaled (bool auto_scaled)=0 |
virtual bool | isAutoScaled () const =0 |
virtual bool | mouseDown (int x_pos, int y_pos)=0 |
virtual bool | mouseUp (int x_pos, int y_pos)=0 |
virtual bool | mouseMove (int x_pos, int y_pos)=0 |
virtual bool | keyPress (int key_code)=0 |
virtual bool | scrollByLines (int lines)=0 |
virtual bool | focus (bool focus)=0 |
virtual bool | unicodeInput (unsigned long uni_char)=0 |
virtual bool | mouseLeftDoubleClick (int x_pos, int y_pos)=0 |
virtual bool | navigateTo (const std::string url)=0 |
virtual bool | navigateForward ()=0 |
virtual bool | navigateBack ()=0 |
virtual bool | canNavigateForward ()=0 |
virtual bool | canNavigateBack ()=0 |
virtual bool | enableCookies (bool enable)=0 |
virtual bool | clearCache ()=0 |
virtual bool | clearCookies ()=0 |
virtual bool | enableProxy (bool enable, std::string proxy_host_name, int proxy_port)=0 |
virtual bool | addObserver (LLMediaObserver *subject)=0 |
virtual bool | remObserver (LLMediaObserver *subject)=0 |
virtual void | setImplMaker (LLMediaImplMakerBase *impl_maker)=0 |
virtual bool | supportsMediaType (std::string scheme, std::string type)=0 |
Definition at line 68 of file llmediabase.h.
Definition at line 160 of file llmediabase.h.
enum LLMediaBase::EStatus |
STATUS_UNKNOWN | |
STATUS_INITIALIZING | |
STATUS_NAVIGATING | |
STATUS_STARTED | |
STATUS_STOPPED | |
STATUS_PAUSED | |
STATUS_RESETTING |
Definition at line 168 of file llmediabase.h.
LLMediaBase::LLMediaBase | ( | ) | [inline] |
Definition at line 71 of file llmediabase.h.
virtual LLMediaBase::~LLMediaBase | ( | ) | [inline, virtual] |
Definition at line 72 of file llmediabase.h.
virtual bool LLMediaBase::init | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
Referenced by LLMediaManager::createSourceFromMimeType().
virtual bool LLMediaBase::reset | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
virtual bool LLMediaBase::setMimeType | ( | const std::string | mime_type | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLMediaManager::createSourceFromMimeType().
virtual std::string LLMediaBase::getMimeType | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
virtual std::string LLMediaBase::getMediaURL | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
virtual std::string LLMediaBase::getVersion | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
Referenced by LLFloaterAbout::LLFloaterAbout().
virtual bool LLMediaBase::set404RedirectUrl | ( | std::string | redirect_url | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::set404RedirectUrl().
virtual bool LLMediaBase::clr404RedirectUrl | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::clr404RedirectUrl().
virtual bool LLMediaBase::setBackgroundColor | ( | unsigned int | red, | |
unsigned int | green, | |||
unsigned int | blue | |||
) | const [pure virtual] |
Implemented in LLMediaImplCommon.
virtual bool LLMediaBase::setCaretColor | ( | unsigned int | red, | |
unsigned int | green, | |||
unsigned int | blue | |||
) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::setCaretColor().
virtual bool LLMediaBase::updateMedia | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
Referenced by LLMediaManager::updateClass().
virtual bool LLMediaBase::setRequestedMediaSize | ( | int | media_width, | |
int | media_height | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
Referenced by LLViewerMediaImpl::play(), and LLWebBrowserTexture::resize().
virtual int LLMediaBase::getMediaWidth | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMedia::getMediaSize(), LLViewerMedia::getTextureSize(), LLViewerMediaImpl::initializePlaceholderImage(), LLViewerMediaImpl::onMediaContentsChange(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
virtual int LLMediaBase::getMediaHeight | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMedia::getMediaSize(), LLViewerMedia::getTextureSize(), LLViewerMediaImpl::initializePlaceholderImage(), LLViewerMediaImpl::onMediaContentsChange(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
virtual bool LLMediaBase::setMediaDepth | ( | int | media_depth | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
virtual int LLMediaBase::getMediaDepth | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::initializePlaceholderImage(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
virtual int LLMediaBase::getMediaBufferSize | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
virtual unsigned char* LLMediaBase::getMediaData | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
Referenced by LLViewerMediaImpl::onMediaContentsChange(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
virtual int LLMediaBase::getMediaDataWidth | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::onMediaContentsChange(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
virtual int LLMediaBase::getMediaDataHeight | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::onMediaContentsChange(), LLWebBrowserTexture::render(), and LLWebBrowserTexture::resize().
virtual int LLMediaBase::getTextureFormatInternal | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::initializePlaceholderImage().
virtual int LLMediaBase::getTextureFormatPrimary | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::initializePlaceholderImage().
virtual int LLMediaBase::getTextureFormatType | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::initializePlaceholderImage().
virtual bool LLMediaBase::setVolume | ( | float | volume | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::setVolume().
virtual float LLMediaBase::getVolume | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
virtual bool LLMediaBase::addCommand | ( | ECommand | cmd | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::LLWebBrowserCtrl(), LLViewerMediaImpl::pause(), LLViewerMediaImpl::play(), and LLViewerMediaImpl::start().
virtual bool LLMediaBase::clearCommand | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
virtual bool LLMediaBase::updateCommand | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
virtual EStatus LLMediaBase::getStatus | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::getStatus().
virtual bool LLMediaBase::seek | ( | double | time | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::seek().
virtual bool LLMediaBase::setLooping | ( | bool | enable | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::play().
virtual bool LLMediaBase::isLooping | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
virtual bool LLMediaBase::setAutoScaled | ( | bool | auto_scaled | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::play().
virtual bool LLMediaBase::isAutoScaled | ( | ) | const [pure virtual] |
Implemented in LLMediaImplCommon.
virtual bool LLMediaBase::mouseDown | ( | int | x_pos, | |
int | y_pos | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleMouseDown().
virtual bool LLMediaBase::mouseUp | ( | int | x_pos, | |
int | y_pos | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleMouseUp().
virtual bool LLMediaBase::mouseMove | ( | int | x_pos, | |
int | y_pos | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon, and LLMediaImplExample1.
Referenced by LLWebBrowserCtrl::handleHover().
virtual bool LLMediaBase::keyPress | ( | int | key_code | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleKeyHere().
virtual bool LLMediaBase::scrollByLines | ( | int | lines | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleScrollWheel().
virtual bool LLMediaBase::focus | ( | bool | focus | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleMouseUp(), LLWebBrowserCtrl::onFocusLost(), and LLWebBrowserCtrl::onFocusReceived().
virtual bool LLMediaBase::unicodeInput | ( | unsigned long | uni_char | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleUnicodeCharHere().
virtual bool LLMediaBase::mouseLeftDoubleClick | ( | int | x_pos, | |
int | y_pos | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::handleDoubleClick().
virtual bool LLMediaBase::navigateTo | ( | const std::string | url | ) | [pure virtual] |
Implemented in LLMediaImplCommon, LLMediaImplExample1, and LLMediaImplExample2.
Referenced by LLWebBrowserCtrl::navigateHome(), LLWebBrowserCtrl::navigateTo(), and LLViewerMediaImpl::play().
virtual bool LLMediaBase::navigateForward | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::navigateForward().
virtual bool LLMediaBase::navigateBack | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::navigateBack().
virtual bool LLMediaBase::canNavigateForward | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::canNavigateForward().
virtual bool LLMediaBase::canNavigateBack | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::canNavigateBack().
virtual bool LLMediaBase::enableCookies | ( | bool | enable | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLPanelWeb::cancel(), LLPanelWeb::onCommitCookies(), and LLPanelWeb::refresh().
virtual bool LLMediaBase::clearCache | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLPanelWeb::callback_clear_browser_cache().
virtual bool LLMediaBase::clearCookies | ( | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLPanelWeb::callback_clear_cookies().
virtual bool LLMediaBase::enableProxy | ( | bool | enable, | |
std::string | proxy_host_name, | |||
int | proxy_port | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLPanelWeb::cancel(), LLPanelWeb::onCommitWebProxyAddress(), LLPanelWeb::onCommitWebProxyEnabled(), and LLPanelWeb::onCommitWebProxyPort().
virtual bool LLMediaBase::addObserver | ( | LLMediaObserver * | subject | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLWebBrowserCtrl::LLWebBrowserCtrl(), and LLViewerMediaImpl::play().
virtual bool LLMediaBase::remObserver | ( | LLMediaObserver * | subject | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLViewerMediaImpl::destroyMediaSource().
virtual void LLMediaBase::setImplMaker | ( | LLMediaImplMakerBase * | impl_maker | ) | [pure virtual] |
Implemented in LLMediaImplCommon.
Referenced by LLMediaManager::createSourceFromMimeType().
virtual bool LLMediaBase::supportsMediaType | ( | std::string | scheme, | |
std::string | type | |||
) | [pure virtual] |
Implemented in LLMediaImplCommon.