Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Adapt to changes in the platform media player API · 989ac82c
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=94329
    PR #194237
    
    Patch by Robin Cao <robin.cao@torchmobile.com.cn> on 2012-08-20
    Reviewed by Antonio Gomes.
    
    The interface to platform's media player has changed from MMRPlayer
    to PlatformPlayer. This patch adapts to this change.
    
    And we also decided to postpone the creation of PlatformPlayer until
    the loading started. This is needed because we may create different
    types of player for different media sources.
    
    This is a refactor, no new tests.
    
    * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:
    (WebCore::MediaPlayerPrivate::getSupportedTypes):
    (WebCore::MediaPlayerPrivate::supportsType):
    (WebCore::MediaPlayerPrivate::notifyAppActivatedEvent):
    (WebCore::MediaPlayerPrivate::setCertificatePath):
    (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
    (WebCore::MediaPlayerPrivate::load):
    (WebCore::MediaPlayerPrivate::cancelLoad):
    (WebCore::MediaPlayerPrivate::prepareToPlay):
    (WebCore::MediaPlayerPrivate::play):
    (WebCore::MediaPlayerPrivate::pause):
    (WebCore::MediaPlayerPrivate::naturalSize):
    (WebCore::MediaPlayerPrivate::hasVideo):
    (WebCore::MediaPlayerPrivate::hasAudio):
    (WebCore::MediaPlayerPrivate::duration):
    (WebCore::MediaPlayerPrivate::currentTime):
    (WebCore::MediaPlayerPrivate::seek):
    (WebCore::MediaPlayerPrivate::setRate):
    (WebCore::MediaPlayerPrivate::paused):
    (WebCore::MediaPlayerPrivate::setVolume):
    (WebCore::MediaPlayerPrivate::maxTimeSeekable):
    (WebCore::MediaPlayerPrivate::buffered):
    (WebCore::MediaPlayerPrivate::paint):
    (WebCore::MediaPlayerPrivate::hasAvailableVideoFrame):
    (WebCore::MediaPlayerPrivate::movieLoadType):
    (WebCore::MediaPlayerPrivate::setAllowPPSVolumeUpdates):
    (WebCore::MediaPlayerPrivate::updateStates):
    (WebCore):
    (WebCore::MediaPlayerPrivate::onStateChanged):
    (WebCore::MediaPlayerPrivate::onMediaStatusChanged):
    (WebCore::MediaPlayerPrivate::onError):
    (WebCore::MediaPlayerPrivate::waitMetadataTimerFired):
    (WebCore::MediaPlayerPrivate::showErrorDialog):
    * platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:
    (MediaPlayerPrivate):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126008 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    989ac82c