OpenVeo Publish server

API Docs for: 8.0.0
Show:

listener

Module: publish

static

Summary

Sets event listeners on core and plugins.

Item Index

Methods

Methods

onGroupsDeleted

Syntax

onGroupsDeleted

(
  • The
  • callback
)
static

Summary

Handles event when groups have been deleted.

If one of the removed groups is the one choosed as the default group for the watcher, it must be reset.

Parameters:

  • The Array

    list of deleted groups ids

  • callback Function

    Function to call when it's done

    • Error An error if something went wrong, null otherwise

onPropertiesDeleted

Syntax

onPropertiesDeleted

(
  • The
  • callback
)
static

Summary

Handles event when custom properties have been deleted.

Remove custom properties referenced in videos.

Parameters:

  • The Array

    list of deleted properties ids

  • callback Function

    Function to call when it's done

    • Error An error if something went wrong, null otherwise
    • Number The number of updated medias

onUsersDeleted

Syntax

onUsersDeleted

(
  • The
  • callback
)
static

Summary

Handles event when users have been deleted.

Videos belonging to these users have to be anonymized. If one of the removed users is the one choosed as the default user for the watcher, it must be reset to the anonymous user.

Parameters:

  • The Array

    list of deleted user ids

  • callback Function

    Function to call when it's done

    • Error An error if something went wrong, null otherwise