Global

Members


API_Upgrade


V 3.30.0 API Upgrade:


add the new object:

See:

update the object:

  • Add the segmentDownloadRetryDelay to the advancedConfig object
    module:Player~advancedConfig
  • remove the object:

  • The analyticsConfig object was dropped
    module:Player~analyticsConfig

  • V 3.29.0 API Upgrade:


    add the new API:

  • get the current live latency:
    getCurrentLiveLatency()
  • get the current play time as local time format:
    getCurrentTimeForLocal()
  • Check whether the stream is support the trick mode or not:
    isSupportTrickPlay()
  • Start/Cancel the trick mode play:
    setTrickPlay()
  • Cancel the trick mode play:
    cancelTrickPlay()
  • modify the API:

  • support PIP mode on chrome70+
    isPipSupported()
    isInPipMode()
    setPipPresentation()
  • add the new object:

  • analyticsAgentOption Info
    analyticsAgentOptionConfig
  • analyticsAgent Info
    analyticsAgent
  • analyticsCustomData Info
    analyticsCustomData
  • add the new event:

  • voEvents#event:VO_OSMP_LICENSE_FAIL
  • voEvents#event:VO_OSMP_TRICKMODE_CHANGED
  • update the object:

  • Add poster info into the sourceConfig
    module:Player~sourceConfig
  • The analyticsConfig of config Info was modified
    module:Player~config
  • The analyticsConfig object was modified
    module:Player~analyticsConfig
  • The new attributes were added into the analyticsInfo object
    module:Player~analyticsInfo
  • The new attribute analyticsCustomData was added into the sourceAdvancedConfig Info
    sourceAdvancedConfig
  • The analyticsCustomData was added into the sourceConfig Info
    sourceConfig

  • V 3.28.0 API Upgrade:


    add the new API:

  • get the analytics information:
    getAnalyticsInfo()
  • add the new object:

  • analytics Info
    analyticsInfo
  • sourceAdvancedConfig Info
    sourceAdvancedConfig
  • update the object:

  • The externalSubtitle was added as a kind of sourceConfigTrack Info
    sourceConfigTrack
  • The lowLatencyMode was removed from the advancedConfig Info
    advancedConfig
  • The sourceAdvancedConfig was added as a property of sourceConfig Info
    sourceConfig
  • The lowLatencyMode was removed from the example of Config Info
    config

  • V 3.27.0 API Upgrade:


    add the new API:

  • add a new external subtitle track:
    setExternalSubtitle()
  • change the ad window size:
    resize()
  • get the playback is end or not:
    isEnded()
  • add the new object:

  • external subtitle Info
    externalSubtitleInfo
  • ads config info
    adConfig
  • update the object:

  • The lowLatencyMode was added as a property of advancedConfig Info
    advancedConfig
  • The adConfig was added as a property of config Info
    config
  • add the new event:

    modify the event:

  • modifyed the event object properties
    VO_OSMP_SRC_ADAPTIVE_STREAMING_INFO_EVENT_BITRATE_CHANGE
  • remove the event:

  • VO_OSMP_SRC_CB_REMOTE_PLAYER_VOLUME_CHANGED
  • VO_OSMP_SRC_CB_REMOTE_PLAYER_MUTED_CHANGED

  • V 3.26.0 API Upgrade:


    add the new API:

  • add the listener to listen Player.events:
    addEventListener()
  • remove the event listeners:
    removeEventListener()
  • get the quailty info:
    getQualityLevels()
  • select the the quality level:
    selectQualityLevel()
  • get the available audio tracks of the current selected quality level:
    getAudioTracks()
  • select the audio track:
    selectAudioTrack()
  • get the available subtitle tracks of the current selected quality level:
    getSubtitleTracks()
  • select the current subtitle track:
    selectSubtitleTrack()
  • get the current active quality level:
    getCurrentQualityLevel()
  • get the current active audio track:
    getCurrentAudioTrack()
  • get the current active subtitle track:
    getCurrentSubtitleTrack()
  • check whether the airplay is supported by the current browser:
    isAirplaySupported()
  • show the playback target picker:
    showPlaybackTargetPicker()
  • get the current stream is live or not:
    isLive()
  • get the current seekable range of the media:
    getSeekableRange()
  • set the current text track styles:
    setSubtitleStyles()
  • get the default subtitle styles:
    getDefaultSubtitleStyles()
  • remove the API:

  • setDRMVerificationInfo(data)
    It was deprecated, and now the drm propery is set in the sourceConfig object.
  • setThumbnailURI(url)
    It was deprecated, and now the url is set in the sourceConfig object.
  • enableAnalyticsAgent(enable)
    It was deprecated, and now the analytics propery is set in the config object.
  • setAnalyticsAgentCUID(cuid)
    It was deprecated, and now the analytics propery is set in the config object.
  • setSegmentDownloadRetryCount(count)
    It was deprecated, and now the count is set in the config object.
  • setLogToConsole(logToConsole)
    It was deprecated, and now the tag is set in the config object.
  • setOnEventHandler(event, callback, scope)
    It was deprecated and was replaced by the new API addEventListener()/removeEventListener().
  • setView(view)
    It was deprecated, now the view is set when new a player. For example: var player = new Player.Player(view).
  • getVideoCount()
    It was deprecated and was replaced by the new API getQualityLevels().
  • isVideoAvailable(index)
    It was deprecated and was replaced by the new API getQualityLevels().
  • getVideoProperty(index)
    It was deprecated and was replaced by the new API getQualityLevels().
  • selectVideo(index)
    It was deprecated and was replaced by the new API selectQualityLevel().
  • getVideoCount()
    It was deprecated and was repaced by the new API getAudioTracks().
  • isAudioAvailable(index)
    It was deprecated and was replaced by the new API getAudioTracks().
  • getAudioProperty(index)
    It was deprecated and was replaced by the new API getAudioTracks().
  • selectAudio(index)
    It was deprecated and was replaced by the new API selectAudioTrack().
  • getSubtitleCount()
    It was deprecated and was replaced by the new API getSubtitleTracks().
  • isSubtitleAvailable(index)
    It was deprecated and was replaced by the new API getSubtitleTracks().
  • getSubtitleProperty(index)
    It was deprecated and was replaced by the new API getSubtitleTracks().
  • selectSutitle(index)
    It was deprecated and was replaced by the new API selectSubtitleTrack().
  • commitSelection()
    It was deprecated.
  • getCurrentSelection()
    It was deprecated and was replaced by the new API getCurrentQualityLevel()/ getCurrentAudioTrack()/ getCurrentSubtitleTrack()/
  • modify the API:

  • open()
    The parameter changes from url to sourceConfig.
  • add the new object:

  • playbackConfig Info
    playbackConfig
  • analyticsConfig Info
    analyticsConfig
  • logsConfig Info
    logsConfig
  • advancedConfig Info
    advancedConfig
  • sourceConfig Info
    sourceConfig
  • sourceConfigTrack Info
    sourceConfigTrack
  • sourceConfigLink Info
    sourceConfigLink
  • fairplayConfig Info
    fairplayConfig
  • widevineConfig Info
    widevineConfig
  • playreadyConfig Info
    playreadyConfig
  • clearkeyConfig Info
    clearkeyConfig
  • sourceConfigOptions Info
    sourceConfigOptions
  • Time Range Info
    TimeRange
  • subtitleStyles Info
    subtitleStyles
  • fontBackgroundColor Info
    fontBackgroundColor
  • fontBackgroundOpacity Info
    fontBackgroundOpacity
  • fontColor Info
    fontColor
  • fontOpacity Info
    fontOpacity
  • fontFamily Info
    fontFamily
  • fontEdgeType Info
    fontEdgeType
  • fontEdgeColor Info
    fontEdgeColor
  • fontEdgeOpacity Info
    fontEdgeOpacity
  • fontSize Info
    fontSize
  • fontBold Info
    fontBold
  • fontUnderline Info
    fontUnderline
  • fontItalic Info
    fontItalic
  • windowColor Info
    windowColor
  • windowOpacity Info
    windowOpacity
  • boundingBox Info
    boundingBox
  • boundingBoxValue Info
    boundingBoxValue
  • fontHorzPosition Info
    fontHorzPosition
  • add the new event:

    update the object:

  • more properties was added to config Info
    config
  • the properties of DRM Info was changed
    drmInfo
  • audioProperty was changed to audioTrack Info
    audioTrack
  • subtitleProperty was changed to subtitleTrack Info
    subtitleTrack
  • videoProperty was changed to qualityLevel Info
    qualityLevel

  • V 3.25.0 API Upgrade:


    add the new API:

  • Set the thumbnail URI
    setThumbnailURI()
  • Find a thumbnailInfo object by pos
    findNearestThumbnail()
  • add the new object:

  • thumbnail Info
    thumbnailInfo
  • castConfig Info
    castConfig
  • Player config Info
    config
  • add the new event:

  • VO_OSMP_SRC_CB_REMOTE_PLAYER_VOLUME_CHANGED
  • VO_OSMP_SRC_CB_CUSTOMER_TAG
  • VO_OSMP_SRC_CB_REMOTE_PLAYER_MUTED_CHANGED
  • update the object:

  • token, key and value were added to the DRM Info
    drmInfo