You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: CldVideoPlayer support for Next.js 13 App Router (#265)
# Description
With the App Router, we no longer have access to the <Head component.
CldVideoPlayer was utilizing this component in order to load a
stylesheet, preventing the need to include it from the project, but
without <Head, the player breaks.
Given this is no longer an option, this includes the CSS and associated
files on build so that they're able to be imported from within the App
Router project, allowing the stylesheet to be imported for a working
player.
This is currently downloading the assets from unpkg, where the player is
officially hosted, though future iterations may include these files from
the cloudinary-video-player node_module, though thats currently on hold
for performance reasons. See #181
This also deprecates the `version` prop as we're no longer able to
reliably grab assets based on the configured version (or at all for that
matter). In future versions using the node module, the assets will be
synced based on the installed dependency via next-cloudinary without
configuration available.
## Issue Ticket Number
Fixes#248
<!-- Specify above which issue this fixes by referencing the issue
number (`#<ISSUE_NUMBER>`) or issue URL. -->
<!-- Example: Fixes
https://github.com/colbyfayock/next-cloudinary/issues/<ISSUE_NUMBER> -->
## Type of change
<!-- Please select all options that are applicable. -->
- [ ] 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
<!-- These must all be followed and checked. -->
- [ ] I have followed the contributing guidelines of this project as
mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md)
- [ ] I have created an
[issue](https://github.com/colbyfayock/next-cloudinary/issues) ticket
for this PR
- [ ] I have checked to ensure there aren't other open [Pull
Requests](https://github.com/colbyfayock/next-cloudinary/pulls) 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
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes needed to the documentation
Copy file name to clipboardExpand all lines: docs/pages/cldvideoplayer/configuration.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,8 @@ import OgImage from '../../components/OgImage';
39
39
| showLogo | boolea |`true`| Show the Cloudinary logo on Player |`false`|
40
40
| src | string | - |**Required**: Video public ID |`"videos/my-video"`|
41
41
| transformation | object/array | - | Transformations to apply to the video |`{ width: 200, height: 200, crop: 'fill' }`|
42
-
| version | string |`"1.9.4"`| Cloudinary Video Player version|`"1.9.4"`|
43
-
| videoRef | Ref | - | React ref to access video element | See Refs Below |
42
+
| version | string |`"1.9.14"`|**Deprecated**| - ` |
43
+
| videoRef | Ref | - | React ref to access video element | See Refs Below |
44
44
| width | string/number | - |**Required**: Player width |`1920`|
45
45
46
46
Missing an option from the [Video Player docs](https://cloudinary.com/documentation/video_player_api_reference) you'd like to see? [Create an issue](https://github.com/colbyfayock/next-cloudinary/issues/new?assignees=&labels=Type%3A+Feature&template=feature_request.md&title=%5BFeature%5D+)!
0 commit comments