I have shared a directory with a public link. On this directory there are videos.
When I go to the directory with the public link :
if I click on one video, its open a window where the video play.
but if I copy the link to the video and paste it in the browser, it does not play, it ask me wether I want to download it of play it in external player.
Do you know how to make the video automatically play even when I copy&paste the link of of the vidéo ? I need it to insert the video in Wordpress pages.
I’m not an export on it but you always need a video player application to play a video. Due to the fact that you’re thinking about pasting a video url to a browser, the player app usually need to be loaded on your PC first before you can view the video.
That’s not what you want, so to workaround this point I would think that you need to embed a video player in your website, like e.g: https://videojs.com/getting-started/
If you ask aunt G. you should find several matches how to solve this in WordPress:
NextCloud includes a pideo player. It’s why the video play when I click on on the link of the video.
But what is strange is that the video do not play if I copy / past exactly the same link. Then the player of NC is not activate.
You are right, I can use another player for WP. It works. But I wonder why the NC one don’t work if it is not coming directly from a click on NC.
Most likely because your externally sharing a video file and not the video player app within Nextcloud. So you’re fully outside of the Nextcloud environment with all its functions.
Could be a feature request to allow a playback link for videos.
For pictures it already works if you append /preview to a single shared photo via link.
For example, when the public link is: https://my.server.tld/s/xLdj34kjasjlh38
you append /preview and can actually integrate that URL into blogs: https://my.server.tld/s/xLdj34kjasjlh38/preview
I just tested and this doesn’t work for videos unfortunately.
Wanna open an issue at Github as a feature request?
The “viewer” app beeing the new standard app for pictures and videos, it probably makes sense to open the issue there:
Please post the link to your feature request here, so other users can find it quickly and can support with a like