Skip to content

chore: remove visualSearch plugin (in-video search) - #1081

Open
tsi wants to merge 1 commit into
masterfrom
chore/VIDEO-21022-remove-visual-search
Open

chore: remove visualSearch plugin (in-video search)#1081
tsi wants to merge 1 commit into
masterfrom
chore/VIDEO-21022-remove-visual-search

Conversation

@tsi

@tsi tsi commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Closes VIDEO-21022 — part of epic VIDEO-21021 "Deprecate unused models/transformations".

Why

The visualSearch plugin powered in-video search by appending a getinfo:search_b64_<query> flag to the source transformation and fetching the resulting URL for match timestamps. That flag is backed by the video-clip_1 model, which is being deprecated — so the plugin has no backend left and is dead code.

The non-player side of the same removal already shipped under VIDEO-21023.

Not a breaking change

visualSearch was never really released, so this is a straight removal: no deprecation shim, no no-op option left in the schema, no major-version bump. Leaving a dead option in the config would defeat the purpose of the cleanup.

What's removed

Deleted

  • src/plugins/visual-search/ — plugin, lazy loader, styles, and the SearchButton / SearchInput / SearchResults components
  • docs/visual-search.html, docs/es-modules/visual-search.html
  • test/e2e/specs/NonESM/visualSearchPage.spec.ts, test/e2e/src/pom/visualSearchPage.ts

Unwired

  • src/plugins/index.js — import + registry entry
  • src/index.all.js/all bundle import
  • src/video-player.js_initVisualSearch() and its _initPlugins() call
  • src/video-player.const.js'visualSearch' from SOURCE_PARAMS
  • src/config/defaults.js, src/config/configSchema.json, src/validators/validators.js
  • src/utils/get-analytics-player-options.js — the internal-analytics field
  • src/video-player.utils.js — stale example in a comment
  • demo index links, plus the e2e link names / page data / PageManager entries

Nothing in webpack/, rollup.esm.config.js, types/, or the bundlewatch config referenced the plugin. docs/es-modules/vite.config.js globs *.html, so deleting the demo page was sufficient.

Notes

  • The internal-analytics payload loses one key. Harmless — filterDefaultsAndNulls already dropped it whenever it matched the false default, so it only ever appeared for users who explicitly opted in.
  • Public docs are a separate track: DOC-11230 is still open and owned by the docs team. Following the g_track_person pattern in this epic, a PM release note may follow once this ships.

Verification

  • eslint src clean
  • tsc --noEmit clean
  • unit tests 129/129 passing
  • npm run build and npm run build-es both succeed (only the repo's pre-existing asset-size warnings)
  • git grep for any spelling of visualSearch returns nothing outside CHANGELOG history

The visualSearch plugin powered in-video search by appending a
`getinfo:search_b64_<query>` flag to the source transformation and fetching the
resulting URL for match timestamps. That flag is backed by the `video-clip_1`
model, which is being deprecated, so the plugin has no backend left and is dead
code.

Removes the plugin, its demo pages and its e2e coverage, plus every wiring
point: the plugin registry, the /all bundle import, `_initVisualSearch`,
`SOURCE_PARAMS`, defaults, config schema, validators, and the internal-analytics
payload.

The feature was never really released, so this needs no deprecation path.

VIDEO-21022
@tsi
tsi requested a review from a team as a code owner August 13, 2026 13:31
@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit 74ae9db
🔍 Latest deploy log https://app.netlify.com/projects/cld-vp-esm-pages/deploys/6a7dc730f0dbed0008b3e8e4
😎 Deploy Preview https://deploy-preview-1081--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 74ae9db
🔍 Latest deploy log https://app.netlify.com/projects/cld-video-player/deploys/6a7dc730de579e0008e17f1e
😎 Deploy Preview https://deploy-preview-1081--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant