YouTube
YouTube is Google's video sharing site. The JoomVideos - Remote Youtube plugin lets you add a YouTube video to JoomVideos by pasting its link. The video stays on YouTube: JoomVideos stores the link, the title, the description and a thumbnail, and plays the video from YouTube.
The plugin is installed and enabled with the package.
What you need
- Nothing to add single videos by link. The title comes from YouTube's public oEmbed service, which needs no key.
- A Google API key for the video description and for the Youtube Import tab, see below.
Add a YouTube video
- Go to Components > JoomVideos > Videos and click New, or open the Upload page on the site.
- Open the Remote Videos tab.
- Paste one link, or several links one per line.
- Choose the category and the status, and click Add Remote Videos.
JoomVideos recognises these link forms:
https://www.youtube.com/watch?v=VIDEO_ID(extra parameters such as&t=30sare removed)https://youtu.be/VIDEO_IDhttps://www.youtube.com/embed/VIDEO_ID
Shorts links (youtube.com/shorts/...) and mobile links (m.youtube.com) are not recognised: they give a "Wrong Link" error or a video that does not play. Open the video on the YouTube website and copy the watch?v= link instead.
What is fetched
| Data | Where it comes from |
|---|---|
| Title | YouTube's oEmbed service, no key needed. If that fails, the YouTube Data API with your Google API key |
| Description | The YouTube Data API. Needs the Google API key; without it the description stays empty |
| Thumbnail | A link to YouTube's image, in the size set by Thumbnail Quality. The image is not copied to your server |
| Duration | Not filled in for YouTube links in JoomVideos 6.1.6 |
You can change the title, description and thumbnail afterwards in the video's edit form, see Editing videos.
Playback
With Integrate with local player on (the default) and VideoJS or MP4Player as the player in Options > Video > Player, the YouTube video plays inside your own player, so it looks like your other videos.
With Integrate with local player off, or with another player selected, the video plays in YouTube's embedded player. The Basic and Theme settings below then shape that player.
Google API key
- Open the Google Cloud console and create a project, or pick an existing one.
- Enable the YouTube Data API v3 for the project.
- Under Credentials, create an API key.
- Restrict the key to the YouTube Data API v3.
- In JoomVideos, go to Options > Uploading, set Enable Youtube Import to Yes and paste the key into Google API Key. Save.
The key is used on the server for descriptions, and in the browser on the Youtube Import tab. Anyone who can open that tab can read the key in the page source, so restrict it to the YouTube Data API as in step 4. Google gives each project a daily quota; once it is used up, API calls fail until the next day.
Youtube Import
The Youtube Import tab searches YouTube and imports many videos at once, from a search, a channel, a user or a playlist. It needs the Google API key. Created Date in Options > Uploading sets whether imported videos keep YouTube's publish date (From API) or get the import date (AUTO). See Adding videos.
Settings
Go to System > Manage > Plugins and open JoomVideos - Remote Youtube.
Basic
| Setting | Default | What it does |
|---|---|---|
| Autoplay | Global | Global follows Options > Video > Autoplay. Yes or No overrides it |
| Float video on Scroll | No | Keeps the embedded player in a corner when the visitor scrolls. Embedded player only |
| Thumbnail Quality | High Quality (480x360) | Size of the thumbnail taken from YouTube, from 120x90 to 1920x1080. YouTube has the 1920x1080 image only for HD videos |
| Closed captions | Disabled | Enabled shows captions by default, even if the visitor turned them off |
| Controls | Show | Shows the player controls |
| Full screen | Show | Shows the full screen button |
| Video annotations | Show | Shows annotations by default |
| Show related videos | Hide | What YouTube shows when the video ends. With Hide, YouTube still suggests videos, but only from the same channel |
Theme
| Setting | Default | What it does |
|---|---|---|
| Responsive Video | Yes | The embedded player fills the width of the page. Keep it on Yes |
| Width, Height | 100%, 500 | Shown when Responsive Video is No, but not used in 6.1.6 |
| Progress color | Red | Colour of the progress bar: red or white |
| Modest Branding | Yes | Asks YouTube to hide its logo in the control bar. YouTube no longer honours this parameter |
Advanced
| Setting | Default | What it does |
|---|---|---|
| Integrate with local player | Yes | Play YouTube videos in VideoJS or MP4Player when one of them is the active player |
Limits
- The video file stays on YouTube. If the owner deletes it or makes it private, it stops playing on your site.
- YouTube links are not processed by FFmpeg. No watermark, no converted sizes.
- YouTube decides what its player shows, including ads.
If it does not work
- "Wrong Link" message, or a new video that does not play. Use one of the link forms listed above, and delete the broken video.
- "Youtube plugin is disabled or not installed" (in the administrator) or "This url ... is not supported" (on the site). Enable JoomVideos - Remote Youtube in System > Manage > Plugins.
- The description is empty. Add the Google API key. A warning that starts with "Youtube API Error" gives Google's reason, for example a key that is not allowed to use the YouTube Data API.
- The Youtube Import tab shows a red message. The Google API key is missing in Options > Uploading.
- Autoplay is set to No but the embedded player still starts. In 6.1.6 the embedded player ignores No. Set Autoplay to Global and Options > Video > Autoplay to No, or keep Integrate with local player on.
- The video page shows an error after turning on Float video on Scroll. In 6.1.6 this setting breaks the page when the embedded player is used. Set it back to No.
- The video does not play. Check that JoomVideos - Remote Youtube is enabled, and that the video allows embedding on other sites (a setting of the video's owner on YouTube).