Closed Baroshem closed 10 months ago
Id like to give this a try. I am assuming that the change will need to be in CldVideoPlayer? If not can you send me a code pointer.
@sccalabr Yes you are correct.
If you need any additional help, just let me know :)
Where does cIdImage do the the version check? I dont see it being checked anywhere. I am also running into this error trying to set things up
@nuxtjs/cloudinary@2.3.4 dev nuxi dev playground
(node:9892) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)
(node:9892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:9892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
c
hey @sccalabr i can answer this one
what i've done in Next Cloudinary (which Nuxt Cloudinary was based on) is use a utility function to parse the URL. this utility function comes from the same library that is used to handle the parsing / trasnformation logic for CldImage
i'd recommend just doing the same thing as it's been working well so far over there, but feel free to provide any suggestions on top of that
as far as the playground goes though, i'd defer to @Baroshem
Thanks ill go ahead and add it once I get the playground working :)
Hey, I dont really know what is this issue you have while running the playground.
You should be able to just run it like this
yarn yarn dev:prepare yarn dev
Where do I run that at becuase when I try running those commands I get
ERROR: There are no scenarios; must have at least one. No such file or directory: 'dev:prepare' No such file or directory: 'dev'
When you clone the repository in the root folder of the module
What do you mean by that? The folder I have is called cloudinary
I dont know how to help you.
The process of local development is straightforward:
I have no idea where you can encounter the problems you mentioned. Could you try to do this once again and see if it works?
@Baroshem no problem. I am not able to get it up and running even after trying it again. I think I should give this back so someone else can work on it
hey @sccalabr i can confirm i was able ot get this up and running, what system are you running?
I deleted the project locally and re-cloned to be sure
i ran:
and the project was now available for me on http://localhost:3000/
do you have yarn installed? did you install the dependencies from the root with yarn?
i didn't even need to prepare the types like @Baroshem mentioned 🤷
while it's understandable if you want to move on, definitely hope to be able to figure out what the issue is!!
Yes I have yarn install and ran from root so not sure what is up. I am using linux mint.
@sccalabr have you managed to resolve this issue?
I have not :(
I dont know how to help you then :(
I will unassign the issue from you for now. If you manage to make it work, please let me onow so that I can assign you again :)
Just checked that it is possible to use:
<CldVideoPlayer width="1620" height="1080" src="https://res.cloudinary.com/next-cloudinary/video/upload/v1/videos/mountain-stars.webm" />
Sets up the CldVideoPlayer to allow passing in a valid Cloudinary URL as a src
Example:
src="https://res.cloudinary.com/next-cloudinary/video/upload/v1/videos/mountain-stars.webm"
Similar to CldImage, the URL must include a version number /v1234/