Skip to content

Conversation

@rzats
Copy link

@rzats rzats commented Oct 24, 2025

Description

Fixes an error with CldVideoPlayer described in the attached issue. This detects when streaming_profile: 'auto' is used and removes the conflicting quality parameter.

(This is only one possible solution and ideas for an alternate fix are welcome!)

Here's a demo page which replicates the error with the latest version of the SDK, but works with my change applied:

--- import { CldVideoPlayer } from 'astro-cloudinary'; --- <html lang="en">	<head>	<meta charset="utf-8" />	<link rel="icon" type="image/svg+xml" href="/favicon.svg" />	<meta name="viewport" content="width=device-width" />	<meta name="generator" content={Astro.generator} />	<title>Astro Cloudinary Test - Issue #32</title>	</head>	<body>	<main>	<h1>Testing CldVideoPlayer with streaming_profile: 'auto'</h1>	<div style="margin: 20px 0;">	<h2>This should work (streaming_profile: 'hd'):</h2>	<CldVideoPlayer	src="samples/sea-turtle"	width="1920"	height="1080"	sourceTypes={['hls']}	transformation={{	streaming_profile: 'hd',	}}	/>	</div>	<div style="margin: 20px 0;">	<h2>This should fail (streaming_profile: 'auto'):</h2>	<CldVideoPlayer	src="samples/sea-turtle"	width="1920"	height="1080"	sourceTypes={['hls']}	transformation={{	streaming_profile: 'auto',	}}	/>	</div>	</main>	</body> </html> 

Issue Ticket Number

Fixes #32

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Fix or improve the documentation
  • This change requires a documentation update

Checklist

  • I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
  • I have created an issue ticket for this PR - I fixed an existing issue instead!
  • I have checked to ensure there aren't other open Pull Requests for the same update/change?
  • I have performed a self-review of my own code
  • I have run tests locally to ensure they all pass - or rather manually tested the bugfix
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes needed to the documentation - it's a bugfix so this is not needed
@vercel
Copy link

vercel bot commented Oct 24, 2025

@rzats is attempting to deploy a commit to the Cloudinary DevX Team on Vercel.

A member of the Team first needs to authorize it.

@devpatocld
Copy link
Collaborator

@rzats your PR is under review

@rzats
Copy link
Author

rzats commented Oct 30, 2025

@devpatocld hello! Since Hacktoberfest is wrapping up, checking if this PR is gonna be eligible for the swag kit since it's currently in review. I'm available to make changes if needed. Thank you :)

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