---
title: Adding a Video
framework: applenews
role: article
role_heading: Article
path: applenews/adding-a-video
---

# Adding a Video

Add a video component inside the header component.

## Overview

Overview A video component allows the user to control playback and hear audio. On this page, you’ll learn how to add a video component.

Add a Video to the Header To add a video to your article, you simply add a video component to a components array. Here, you’ll add a video component to the components array in the header component. note: Alternatively, to include a video that plays automatically as the header’s background, you can use a VideoFill. With a video fill, playback and audio are disabled, but the video can automatically loop. With a video fill, but not a video component, you can also use a scene to affect how the opening section or chapter, including the video, comes into view. See Adding a Scene. In Download the Article Bundle Examples, you downloaded a bundle called News_Design_Tutorial_Advanced_Article_3 that contains a thumbnail image. Now, you’ll move that image into your working folder and use it as a thumbnail. Move the video-still.jpg file from the Desktop/News_Design_Tutorial_Advanced/News_Design_Tutorial_Advanced_Article_3 folder to the folder that contains your working article.json file. In your working article.json file, delete the first section, including its components array. The code you are deleting begins with the opening brace ({) before "role": "section", and ends with a closing bracket, a closing brace, and a comma (]},). Copy the example code Header Component: Copy This Code. Paste the code inside the top-level components array, after the opening  bracket ([). Your code should look like the example code Header Component: Result. After you make this change in your code, you can preview your working article.json file in News Preview to see the video. Header Component: Copy This Code     {       "role": "header",       "layout": "fullBleedLayout",       "behavior": {         "type": "parallax",         "factor": 0.8       },       "components": [         {           "role": "video",           "layout": "fullBleedLayout",           "URL": "http://podcasts.apple.com/resources/462787156.mp4",           "stillURL": "bundle://video-still.jpg",           "accessibilityCaption": "Sed ut pers piciatis unde omnis iste natus volup tatem accusantium dolor emque, totam rem aperiam."         }       ]     }, Header Component: Result Ellipses (...) indicate lines of code that have been omitted from this example. {   ...   "components": [     {       "role": "header",       "layout": "fullBleedLayout",       "behavior": {         "type": "parallax",         "factor": 0.8       },       "components": [         {           "role": "video",           "layout": "fullBleedLayout",           "URL": "http://podcasts.apple.com/resources/462787156.mp4",           "stillURL": "bundle://video-still.jpg",           "accessibilityCaption": "Sed ut pers piciatis unde omnis iste natus volup tatem accusantium dolor emque, totam rem aperiam."         }       ]     },     ...   ],   ... } Previous Giving the Article a Dark Color Scheme Next Creating a Sidebar

## See Also

### Related Documentation

- [Video](applenewsformat/video.md)
- [Preparing Image, Video, Audio, Music, and ARKit Assets](applenews/preparing-image-video-audio-music-and-arkit-assets.md)

### Advanced Design Tutorial 3: More Ideas

- [Giving the Article a Dark Color Scheme](applenews/giving-the-article-a-dark-color-scheme.md)
- [Creating a Sidebar](applenews/creating-a-sidebar.md)
- [Adding a Fixed Image Fill](applenews/adding-a-fixed-image-fill.md)
- [Creating a Newsletter Sign-Up Element](applenews/creating-a-newsletter-sign-up-element.md)
- [Viewing the Finished Article for Advanced Design Tutorial 3](applenews/viewing-the-finished-article-for-advanced-design-tutorial-3.md)
