Skip to content

CldVideoPlayer not initialized when navigating to a page via the client router (view transitions) #90

@jhb-dev

Description

@jhb-dev

Bug Report

When using view transitions, the CldVideoPlayer is only initialized when performing a full page refresh, but not when navigating to a page via the ClientRouter. This leads to the issue that the player is not visible and the video cannot be viewed.

Steps To Reproduce the error

  1. Create two pages (A and B) which both use the CldVideoPlayer and add links from one page to another
  2. Activate view transitions by adding the <ClientRouter /> to the head (see docs)
  3. Open page A, the player is initialized and the video can be played
  4. Navigate to page B, the player is not itialized and therefore the video cannot be played.

Expected behaviour

The video player should be initialized also when navigating to a page via the client router.

Your environment

Packages:

  • astro: 5.4.2
  • astro-cloudinary: 1.3.0

Other:

  • OS: Windows 11
  • Node version: 22
  • Npm version: 10.9.2
  • Browser name and version: Chrome,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions