OpenVeo Publish server

API Docs for: 8.0.0
Show:

LocalProvider

Summary

Defines a LocalProvider class to interact with local platform.

Constructor

LocalProvider

Syntax

LocalProvider

(
  • providerConf
)

Summary

Parameters:

  • providerConf Object

    Local configuration

    • vodFilePath String

      The absolute directory path where to store medias

    • streamPath String

      The URI of the media

Item Index

Properties

Methods

getMediaInfo

Syntax

getMediaInfo

(
  • mediaId
  • expectedDefintion
  • callback
)
async

Summary

Gets information about a media hosted by Local.

Parameters:

  • mediaId String

    The local id of the media

  • expectedDefintion String

    The expected media definition, not used for this provider

  • callback Function

    The function to call when it's done

    • Error The error if an error occurred, null otherwise
    • Object Information about the media

remove

Syntax

remove

(
  • mediaIds
  • callback
)
async

Summary

Removes a media from the Local platform.

Parameters:

  • mediaIds Array

    Local media ids to remove

  • callback Function

    The function to call when it's done

    • Error The error if an error occurred, null otherwise

update

Syntax

update

(
  • media
  • data
  • force
  • callback
)
async

Summary

Updates a media on the platform. Depending on the platform and what is supported on it, some media properties might be updated and others not. If media has several resources on the platform, the same update will be performed on all resources.

Parameters:

  • media Object

    The media

    • mediaId Array

      The list of media resource ids

  • data Object

    The media datas to update

  • force Boolean

    true to force the update even if datas haven't changed, false otherwise

  • callback Function

    The function to call when it's done

    • Error The error if an error occurred, null otherwise

upload

Syntax

upload

(
  • mediaFilePath
  • callback
)
async

Summary

Uploads a media to the Local platform.

Parameters:

  • mediaFilePath String

    The absolute system path of the media to upload

  • callback Function

    The function to call when it's done

    • Error The error if an error occurred, null otherwise
    • String The media id on the Local platform

Properties

conf

Syntax

conf

Object final

Summary

The media platform's configuration.