Skip to content

Technical Plugin VideoDocuments

Daniel Neto edited this page Oct 29, 2026 · 1 revision

Technical: VideoDocuments plugin

Attaches document files to videos.

Audience: developers, advanced administrators and AI-assisted diagnosis. Plugin catalog.

Source baseline

  • Review date: 2026-10-29. Method: static source analysis; runtime/provider behavior was not exercised.
  • Code ownership: independently versioned plugin repository.
  • Reported version: 1.1.
  • Source revision: aa4e653c3081bc798a57fbcb368e0d9a13331db6.
  • Entry class file: VideoDocuments.php.

Confirm the installed plugin version independently of the Streamer version. Configuration defaults below are not a dump of this installation's saved settings.

Dependencies

No literal dependency declaration was extracted. This does not prove the plugin is standalone.

Hook integration

Override Implementation
getFooterCode() VideoDocuments.php:35
getVideosManagerListButton() VideoDocuments.php:60
getWatchActionButton($videos_id) VideoDocuments.php:66

Configuration assignments

These are direct assignments inside getEmptyDataObject(), not evaluated effective defaults. Stored plugins.object_data, globals, structured values and conditional branches may alter runtime behavior. Private/default credential values are omitted.

Field Literal default or expression type Literal source label/help Evidence
title "Documents" — source
allowedExtensions Computed/structured; inspect source — source

Files and request surface

This inventory distinguishes implementation files from an API specification. Includes, templates, callbacks and CLI workers are not interchangeable HTTP endpoints. Request-field names below are direct source references, not a complete schema or permission declaration.

File Source role Direct request fields observed
Objects/Documents.php class/helper implementation —
Objects/DocumentsPurchases.php class/helper implementation —
VideoDocuments.php plugin entry class videoName
actionButton.php PHP page/include/worker; inspect caller —
deleteDocument.php PHP page/include/worker; inspect caller id, videos_id
documents.json.php JSON entry point; inspect caller and guard videos_id
download.php PHP page/include/worker; inspect caller id
footer.php PHP page/include/worker; inspect caller —
install/install.sql schema/migration SQL —
saveDocument.json.php JSON entry point; inspect caller and guard input-b2, videos_id

Data and migrations

Tables named in available CREATE TABLE statements: documents, users_has_documents. Apply installation/update behavior through the owning plugin; this reference is not a script for running historical migrations manually.

Main-file named symbols

Visibility and implementation semantics must be checked in source. Nonempty string defaults are represented as . This is a symbol reference, not a stable public API promise.

Function or method Source
getDescription() 10
getName() 16
getUUID() 20
getPluginVersion() 24
getEmptyDataObject() 28
getFooterCode() 35
getVideosManagerListButton() 60
getWatchActionButton($videos_id) 66
getIconFromFilename($filename) 72
getAllowedExtensions() 99
validateUpload($file) 112
canDownload($users_id, $documents_id) 138

Supporting PHP declarations

These symbols are grouped by source file; inspect the class declaration and visibility before calling them.

Objects/Documents.php

Declared classes: Documents.

Named symbol Source
getSearchFieldsNames() 13
getTableName() 17
getFilename() 21
getDescription() 25
getIs_public() 29
getVideos_id() 33
getStatus() 37
getData() 41
setFilename($filename) 45
setDescription($description) 50
setIs_public($is_public) 54
setVideos_id($videos_id) 58
setStatus($status) 62
setData($data) 69
getLink() 73
setLink($link) 77
getAllFromVideo($videos_id) 81
delete() 103
getPrice() 125
setPrice($price) 129

Objects/DocumentsPurchases.php

Declared classes: DocumentsPurchases.

Named symbol Source
getSearchFieldsNames() 11
getTableName() 15
getUsers_id() 19
getDocuments_id() 23
getPrice_paid() 27
getObservation() 31
getStatus() 35
setUsers_id($users_id) 39
setDocuments_id($documents_id) 43
setPrice_paid($price_paid) 47
setObservation($observation) 51
setStatus($status) 55
loadFromUser($id, $users_id) 59
getFromDbUser($id, $users_id) 69

Diagnostics and validation

  1. Check the installed/enabled version and the dependencies/settings above.
  2. Identify the actual failing page, request, callback or worker and correlate its timestamp with the AVideo log.
  3. Follow the linked method and caller. Check business-state changes and output artifacts as well as HTTP status.
  4. Reproduce the relevant workflow in a test environment. External provider, Encoder, live-server, storage, payment and authenticated flows require their real integrations.

Shared diagnostic workflow. This page is not a security audit or a claim of end-to-end validation.

Clone this wiki locally