Play YouTube links in the viewer
If your PDF links to videos on YouTube, readers can watch them right in the publication instead of leaving for YouTube. You switch it on per project in the Workspace.
If your PDF contains links to YouTube videos, Viewnamic can play them right in the publication: a click on such a link starts YouTube’s player in the viewer instead of opening YouTube in a new tab. You switch this on per project in the Workspace. It is off until you do. It is part of the Publisher Plus, Premium and Tailored plans and does not count towards your interactive elements: nothing is uploaded, the video stays on YouTube.
Switch it on
- Open the Workspace.
- Open the project menu (⋯) on the project’s tile.
- Click Play YouTube links in the viewer. It now shows On. From the next time the publication is opened – through its link, on your public page or in an embed – the links play in the viewer.
Click it again to switch it Off: the links then open YouTube in a new tab, as before.
The menu shows the entry only for PDFs that contain links to YouTube videos, and only to people who may edit the project. The Workspace checks new PDFs and new PDF versions for such links a few seconds after it opens; if the entry is still missing, reload it. With a smaller plan the entry shows a lock and Publisher Plus; a click on it opens your subscription.
What readers see
- If the link’s area is large enough – at least 200 × 200 pixels on the reader’s screen, the size YouTube asks for its player – the video plays right in the area, like a video you add in the editor.
- A smaller area, such as a text link, a small button or most video areas on a phone, opens the video at once in a floating window over the viewer. The area shows Playing in the floating window; a click on it brings the window to the front.
- YouTube’s own buttons play, pause, jump and switch to full screen. The × closes the video. On the page, × and Detach into a floating window sit just above the video, because YouTube allows nothing in front of its player. Starting a YouTube video pauses the other videos and audio of the publication.
- The floating window keeps playing while readers turn pages, scroll or zoom. Readers move it by its bar, resize it at its upper corners and close it with the ×. A video that played in its area goes back there with Back to its page. Switching to another view or to the Reading Mode closes the window.
- A player on the page pauses when it leaves the view. After a zoom, it plays on from the same point.
- Readers who prefer YouTube itself hold Ctrl or ⌘ while they click: the link opens YouTube in a new tab. In a viewer too small for YouTube’s player, such as a very small embed on a website, the link opens YouTube in a new tab as well.
- On iPhones and iPads, YouTube may ask for a tap on its play button before the video starts with sound.
Which links play
Links to a single video: youtube.com/watch?v=…, youtu.be/…, YouTube Shorts (youtube.com/shorts/…, in an upright window), live videos (youtube.com/live/…) and embed addresses (youtube.com/embed/…). A start time in the link, such as ?t=90 or &t=1m30s, is kept. Links to a channel, a playlist or any other YouTube page stay normal links.
The video must allow embedding. That is YouTube’s default; in YouTube Studio you find it as Allow embedding in the video’s details. Private or removed videos and videos whose owner doesn’t allow embedding can’t play; readers then see Open on YouTube below the player.
Linked video or uploaded video?
A linked video plays in YouTube’s player, so you have less control over how it looks and behaves. You can’t hide the player’s controls, let the video loop, have it start by itself when its page is shown, play it without sound or choose how it fills its area. YouTube also shows its own logo and title and, depending on the video, ads and suggestions.
A video you upload to Viewnamic plays exactly as you set it: with or without controls, with loop, autoplay, sound and picture-in-picture as you choose, and without a provider’s logo or ads. Uploading the video file therefore often gives the better result. Uploaded videos count towards your interactive elements; linked videos don’t.
Good to know
- Nothing is loaded from YouTube before a reader clicks such a link. Then the reader’s browser loads YouTube’s player in its privacy-enhanced mode (youtube-nocookie.com): YouTube doesn’t use the view to personalise the reader’s YouTube experience or the ads it shows.
- What the player shows is YouTube’s choice: some videos show an ad first, and at the end YouTube suggests further videos from the same channel.
- If your plan includes statistics, plays of these videos appear under Videos in the publication statistics, with “(YouTube)” after the title. Each video counts at most once per visit.
- The links don’t count toward your plan’s total of interactive content.
- In the Reading Mode, these links stay links to YouTube.
- Links to Vimeo videos have a switch of their own: see Play Vimeo links in the viewer.
Questions
Do I need to change my PDF?
No. The links you set in your layout program stay as they are. The switch decides whether they play in the viewer or open YouTube.
Which plans include this, and does it count towards my interactive elements?
Publisher Plus, Premium and Tailored. It does not count towards your interactive elements – the 50 of Publisher Plus stay free for your own videos, audio, 3D models, click dummies and slideshows – because nothing is uploaded: the video stays on YouTube.
Why does a video open in a floating window instead of its area?
Because its area is smaller than 200 × 200 pixels on that screen, and YouTube asks for at least that size. On a computer, a video area of about half the page width usually plays in place; on phones, most videos open in the floating window.
Can I let only some YouTube links play in the viewer?
No. The switch applies to all links to YouTube videos in the PDF.
Does this work with Vimeo links too?
Yes, with a switch of its own in the same menu: see “Play Vimeo links in the viewer”.