How to output video from computer to TV

9 ways to transfer images from your computer to your TV screen

The laptop is very convenient for work with its dimensions and low weight. But when it comes to watching videos or playing games, you want to replace a small monitor with a larger screen. In case you have a TV with a large diagonal, you can connect your device to a TV or home theater. In the article, we will consider how you can display an image from a laptop on a TV.

Ways to display images from a laptop on TV

There are wireless and wired methods for displaying images from a laptop to a TV. With a wired connection, you do not need to have the same ports on both devices. If they are different, then you will need to use adapters. If you need to translate digital data to an analog input, you will need additional converters or attachments.

The disadvantages of a wireless connection are limited bandwidth and possible signal interruption. The disadvantage of connecting via a cord may be the presence of the cord itself, as well as the cable length limit for different standards. However, if you need to connect a laptop and enjoy viewing, this drawback is completely weightless and will not cause inconvenience.

All modern TVs are equipped with DLNA technology, which allows devices to exchange data within the home network. This can be done both via cable and WI-FI. If there is a connection via WI-FI, then both the laptop and TV must be connected to it. But the TV will only “see” the shared folders. In order for the TV to have access to all the information, you can open general access to all folders in the “Network” settings on the laptop. But this is not recommended for security reasons. After all, in this case, everyone who will be connected to your network will be able to use your data. Another option is to make a specific folder publicly available.

But for more convenient display of the image on the TV, it is better to download the program. One of the recommended ones is Home Media Server. It is free and universal for different TV models, and also has wide functionality. To install on a laptop, just download the application (preferably on the official website) and run the installation file. After starting the program in the settings window, you can select the category of media resources and already specify access to the folders there.

If your devices support Miracast or Intel WiDi technologies, then it is enough to enable these functions on the TV. Then he will be able to connect wirelessly to your laptop without a router, directly. On the laptop, however, you need to install the appropriate application. But when connected, you can display any picture from a laptop.

If the TV does not have a WI-FI module, then you can use various adapters that can be connected to the HDMI port. For example, one such device is the Google Chromecast, which looks like a USB flash drive. The gadget is designed for streaming multimedia content.

Connection via HDMI can be called optimal in order to transfer media data from one equipment to another. This standard provides high-speed transmission, even of ultra HD-quality files, and transmits not only video, but also multichannel audio.

How to output images from a computer to a TV using HDMI? It is enough to connect the two devices with a cable. Then switch to TV AVI mode and select the port to which the cord is connected. On a laptop, you need to call the screen settings and set the required resolution there, as well as select the display of displays. This means that on a laptop you will be able to control both screens, and you will need to select a display for the TV screen. The options are:

  • Duplications. the same image on both screens;
  • Display on 1 screen. the second one will be turned off;
  • Screen Enhancements. TV will become a second monitor.

The settings may vary depending on the version of the operating system.

For any wired connection, the devices must be disconnected before connecting them

The next way is how to transfer the image via DVI. The DVI standard was developed for transferring video content to digital devices. Predecessor to HDMI. And, unlike the latter, it does not transmit sound. In this case, you will need a TRS connector or adapter, otherwise called “minijack”. a very popular audio connector, probably familiar to many as an input for connecting headphones. To duplicate the screen of a computer or laptop, you will need to follow the same steps as for HDMI. Once connected, transferring the playing file is easy.


S-Video is an analog interface. It can only transmit video files of standard definition television (576i and 480i), which means that modern speech quality formats are out of the question. TVs are rarely equipped with such a port, therefore, in order to project an image from a laptop, an S-Video to RCA adapter is additionally required. Also, do not use an S-Video cable longer than 2 meters, as this will degrade the signal quality. To transfer sound to TV, similar to DVI, you will need to use a “minijack”.

After connecting the cable, you always need to install the video source on the TV

Let’s look at how you can output an image to a TV via USB. In this case, with a USB-USB connection, it will be impossible to view video, since this standard is not designed for video data transmission. In this option, you can view images, presentations, text documents. With this connection, the TV will see the laptop as a USB flash drive.

We have already considered the connection using a local network wirelessly. Lan is a network but wired (Ethernet) connection. If the TV does not have a Wi-Fi module, then you can use this method. To mirror the computer screen to the TV, you will need to follow the same steps as for the WI – FI connection. Namely:

  • Connect TV to a router using a network cable. In this case, the Dynamic Host Configuration Protocol (DHCP) must be configured on the network device. Otherwise, you will have to manually register the network settings in TV;
  • Connect your laptop to the same network. Wired or wireless. it doesn’t matter;
  • Install the program on the laptop to output files to TV. We’ve already covered the Home Media Server application, which is easy to set up and install;
  • Share the required folders. That’s it, now you can transfer images and send video for playback.

How is it possible to transfer an image from a computer to a TV using VGA? The VGA standard only allows the transmission of an analog signal without sound. To reproduce sound, you will need an additional adapter with the so-called “tulips” or “minijack” plug. Another option is to leave the sound playing on the laptop or through the speakers connected to it. To do this, you can use the function keys of the laptop. It should display 2 screens, for example, F10Fn (function enable key). It is now possible to display videos from a laptop on a TV. When setting up display on a laptop, you can increase the resolution to get a better picture.

With any cable connection, you will have to adjust the screens on a laptop or PC

The color image is formed by means of three main signals: Red, Green, Blue. If the image is output from such a connector, then it is logical to use the same TV input. RGB replaced Scart when Scart became impossible to use in thin TVs. Mostly RGB is available on older models. Compatible with Scart and composite RCA (tulip) cables. Videos or games from the computer monitor to the TV will be broadcasted as with any other cable connection.

Determine available connections

To transfer an image from a laptop to a TV, you need to find out what methods are available for this. First, you should see what ports are present on the TV and laptop, and then decide how best to duplicate the laptop screen.

READ  How to install a browser on a Xiaomi TV


Scart is a European standard for transmitting analog and digital signals. It has different specifications, so it can transmit different signals (audio channel, video, control). The convenience of the interface is that it makes it possible to connect a high-quality RGB video source to the TV without intermediate coding.

To broadcast a movie from a PC or laptop, it is better to use a VGA-SCART adapter. This is due to the fact that a large number of TVs are equipped with a SCART connector, and computers. VGA.

If you have a large number of connectors, it is better to choose a wired connection from the latest technologies. The best option is HDMI. In general, setting up your laptop and TV is straightforward. The main thing is to select the input signal on the TV, and on the laptop perform the settings that are required for the corresponding technology.

How to output video from computer to TV

It would seem that such a simple procedure for modern computers and TVs as outputting video to a TV should not cause any particular problems when using an HDMI cable, network cable or Wi-Fi, but as always there are nuances. And an ordinary man in the street, at times, has to spend a lot of time to figure it out and display the video on the TV the way he wants. In this article, we will look at how to set up software and video output options for TV.

If the monitor and TV size differ in resolution, video output via HDMI cable

Recently, manufacturers of modern TVs have been releasing TVs exclusively with Full HD resolution (1920 × 1080 pixels). We will not consider 4K TVs due to their high cost, and at the time of this writing, they are clearly not affordable, both for me and for you. over, the purchase of this TV in the absence of 4K video makes the purchase of such a TV, at the moment, clearly redundant.

So, if the resolution of the computer and TV screens differs, then when outputting video to a TV via an HDMI cable, when setting up a TV, show the video in its original resolution (the best choice so that there is no distortion of the original video vertically and horizontally), on the TV at the edges we we will see black bars not occupied by video material. This is due to the fact that when you connect a TV to a PC via HDMI, you get an extension of the computer desktop to a second monitor. a TV. At the same time, the extension of the desktop to the TV takes place with the dimensions in the horizontal and vertical points of the computer monitor. But since the resolution of the computer screen is different from the resolution of the TV, then we see black bars. For example, the resolution of the PC monitor is 1680×1050 pixels, and the resolution of the TV is 1920 × 1080. In this case, there will be black bars on the right and left of the TV that are not occupied by the image.

To solve this issue, let’s turn to the driver of the computer video card (in the example, the driver of the AMD video card will be considered, for NVIDIA we do it in the same way). We go to the driver settings in the lower right corner of the PC monitor. At the same time, the TV must be turned on in any mode, at least for watching terrestrial TV programs, so that the PC determines that there is another monitor connected via an HDMI cable.

Or via the path Start, All Programs, AMD Catalist Control Center

In the window that appears, select the second monitor. your TV

My Digital Flat Panels, Zoom Settings

Now you need to select the required video input via HDMI on the TV to output images from the PC. In fact, this is the input where you connected the HDMI cable to the TV. When the picture of the PC desktop appears on the TV, we return to setting the video card driver.

We start the video film, having previously checked in the file property that it is in Full HD format (1920 × 1080 pixels).

Note. I recommend watching video files exclusively in the Media Player Classic, which is included in the package of free codecs K-Lite_Codec_Pack, and it doesn’t matter if you have a full or mega pack codec installed. the player is always included in the package. This player is one of the few that plays all video files with any extension. over, when viewing you will have the opportunity to customize that sound and video for your needs. this player allows you to change any settings when viewing on the go.

With the video movie running, drag the player window to the second monitor. TV, and expand the view to full screen. Now, using the “Scaling Settings” slider in the video card driver, you need to adjust the size of the video horizontally to fit the entire screen. over, if you do not adjust the video horizontally, then when watching 3D video you will definitely have a double image, for obvious reasons, even if you are wearing the appropriate glasses. Usually you need to move the slider a little to the right, and sometimes even to the very end.

So, we have established a connection via HDMI cable with different resolutions of the monitor and TV. It’s time to consider connecting via an Ethernet network cable or Wi-Fi network.

If the video, such as 3D, is not compressed correctly or the original image size is resized to save space

Sometimes, when watching 3D video output through a PC, you can see such a picture. the image on the TV is squashed on the sides. As a result of this distortion, there can be no question of any 3D image on the TV. For clarity, I will give an example of how it looks on a computer and, for obvious reasons, something similar can be seen on a TV without turning it into 3D mode.

There are black bars on either side of the image. We will try to get rid of them.
And this is solved quite simply. Let’s use the same Media Player Classic.

Let’s start a similar movie in the player and on the image by pressing the right mouse button, we will open the menu.

Selecting Video Frame, Stretch to Screen Size.

As you can see, the image is stretched, and this is what we wanted.

Now all that remains is to drag the Media Player Classic window to the second screen. to the TV and switch the latter to 3D mode.

After these settings of the player, you will be able to view both 3D and normal video material with incorrect compression on the entire TV screen without additional manipulation of the TV settings.

Connecting a TV via an Ethernet or Wi-Fi network cable

This method of connecting a TV to a PC has a number of additional capabilities compared to dragging the window with the player to the second window. to the TV.

You can control the video viewing from the TV remote control. Switch video files for viewing, rewind content, control sound volume. And to implement all this, you need to install on your computer just the free Home Media Server (UPnP, DLNA, HTTP).

I will not talk in detail about setting up this home video server, so that there is plenty of information on the global Internet. And I’ll tell you in more detail about how to set up your TV and router.

Let’s start with the installation of the Home Media Server itself (UPnP, DLNA, HTTP). Download the installation package of the program from the link and install the media server on your PC.

After installing and launching the program, go to the settings and specify the folders with the video material that we want to watch. Press the button “Settings”.

In the window that appears, click the add button

We indicate the path to your media resources and click OK

The program will offer to scan the added folder. we agree

After scanning, start the server and minimize the program window

Let’s move on to setting up the TV, in an example we will consider connecting to an LG TV. And so as not to pull the wires, we organize the connection using a wireless Wi-Fi network.

We go to the TV settings. Choose Network, Connect to a Wi-Fi network

From the drop-down list, we look for our router and click on it

A field for entering the wireless password appears.

Enter the required password using the keyboard on the TV screen and press Enter

If you did everything correctly, then in the line next to your router there will be a check mark indicating that the connection has been established

We exit the TV settings and go to the connection manager

READ  What Wires Are Needed To Connect A TV

In the connection manager, select the Personal computer (PC)

Next, we choose to share the TV screen

Select our media server and click on it

After connecting to our video server, select Movies

In the opened folder, we look for the necessary video material and click on it to view

That, perhaps, is all with the settings for outputting video to a TV using a wireless Wi-Fi network. As you can see for yourself, there are options for rewinding, selecting the desired movie, adjusting the volume from the TV remote control, etc.

In conclusion, we can add that after connecting the TV via Wi-Fi, it is not at all necessary to go to the TV connection manager. It is enough to select the required video movie in the media server, right-click on it and select Play on TV in the drop-down menu. After that, the TV itself will automatically switch to the media server and the video will start showing.

The task is to connect sound in 5.1 format for listening to audio tracks of a video film through an external power amplifier transmitted via digital coaxial or Read more

Special programs for displaying images on the screen

There are also wireless video mirroring methods. This is done through special programs.

For Windows 10

After connecting the TV to the computer, a notification will come or a window about a new monitor will open. You will need to make a choice of the mode of use:

  • Display on the second display of information that is broadcast on the first.
  • Expanding the desktop on a new display.
  • Displaying the picture exclusively on the second monitor, the first one will be disabled.

Having selected the desired option, it will be possible to change it by going to “Monitor settings”.

DLNA is a technology for connecting computers, laptops, tablets, smartphones and other devices into one home network (server). I’ll tell you about setting up DLNA for LG TVs using a special program. This will allow you to watch videos from your computer.

  • Download and install the “Smart Share” software on your PC.
  • After opening the program, its icon will appear in the computer tray. Click on it with the right mouse button and select “Configure Smart Share Program”. On the switch, set “ON” and press “OK”. By this action, we give access to files on the PC.
  • In the “My Shared Files” tab, you can add or remove folders that will be available on TV for viewing. After we press “Ok” and “Apply”.
  • In the section “My device settings” you can change the name of the server.
  • In the section “Allow / block other devices” you need to find your TV and click “Apply”.

This completes the settings. Now let’s move on to how to watch movies or other content:

  • On your TV, go to “Smart TV” and look for “Smart Share”.
  • Open “Connected devices” and select the server that we created earlier.
  • In the “All folders” section, you will find the files that you made access to. We open them and watch them on TV.

If you did not find your server in the list, turn off the antivirus program, restart your computer and try again.

Also available to watch a video with instructions for setting up Smart Share:

How to Connect Laptop to TV using HDMI. Easy & Fun

How to “output video from a computer to TV using DLNA in a standard way, we wrote in this article.

If ”the PC does not see the TV

Outputting video to a TV is simple, but it causes difficulties or problems. Everyone has different devices and techniques may differ. First, check if everything is connected correctly and which devices are participating in the broadcast.

What if the TV does not appear in the list of new devices on my computer? It is enough to wait a little without closing the list, and the TV will appear. First of all, make sure the output device has Smart TV function and is connected to the same router as your computer. Check the connection and functionality of the output device.

  • The file does not play, the message “Format not supported” appears on the screen. A common occurrence, the reason is the lack of support for the file format. Either the case is related to the computer: on the Windows 10 operating system, the file runs without problems, but with Windows 7, an error is issued.
  • Slows down music / movie playback. If the file is of high quality or weighs a lot, it slows down during playback. If the internet speed drops, the picture will start to slow down. For example, Full HD video plays without delay. If this is 4K, then it is better to get a router with a 5 GHz range.
  • There is no sound. Go to the sound settings. It is located next to the clock, then in “Playback devices”, “Using speakers by default”.

For a better experience, create a media server. Use one of the following applications:

  • Home Media Server. many possibilities and with customization of the program for yourself.
  • Twonky Server is a simple, easy-to-use communication program that doesn’t require any special knowledge to install.
  • Plex Media Server. Russian version, with support for mobile gadgets, which expands the list of features.

TV box

Such a set-top box almost completely copies the functionality of the new Smart TV, however, the list of features is larger, and it is easier to manage it. For example, consider Apple TV:

  • Connect it to your TV.
  • Start watching videos, audios, photos and other content.

Once connected, you will have access to movies and photos that are stored on your iCloud and iTunes account. You can also play small toys with multiple gamepads connected to the console.

Of course, Apple TV is tailored for users of Apple products only with licensed files. Therefore, many people choose consoles with the Android system, where there are more options and freedom of action. You can watch movies, other videos through the browser, download the application through the Play Market. In fact, these are the same smartphones on the Android platform. In addition, you can connect a keyboard, mouse for quick text input.


Miracast is one of the most widely available screen mirroring technologies. Miracast is part of the WI-FI Alliance and was released back in 2012.

Note! Miracast is not a product, but a technology. It implements the peer-to-peer WI-FI Direct standard and allows you to stream HD 1080p video as well as 5.1 surround sound. As of March 2017, there are only about 6,700 devices certified by the WI-FI alliance to support Miracast.

Setting up Windows Media for DLNA streaming.

So, I already said that it is better to broadcast high-definition video files over the wires, since a wireless Wi-Fi network may not cope with the transfer of large files and you risk feeling discomfort in the form of stream cuts while watching. The computer and TV must be on the same network. That is, digital devices must be connected to one Wi-Fi router (in the section with the same name, you will find information on this network device).

If you have a Samsung TV, here you will find information about connecting to a network via Wi-Fi, and here via a LAN cable. I will continue taking into account the fact that you have set up a home network between digital devices.

Click Start. All Programs. Windows Media Player Stream. If a “Homegroup” has already been created on the computer and the shared access to libraries (music, picture, video) is open, then the sharing of devices will open automatically.

If streaming is not activated in the player, then after starting on the “Stream” tab in the drop-down list, click on the item “Enable streaming media” and confirm the action again by clicking on the button of the same name.

A window will open with options for streaming between your devices. Here you can give your name to the media library and deny or allow access to media for a specific device. By default, set to all. allow.

There is also a link to configure homegroup settings (image above) where you can set up sharing of libraries. Press the “Ok” button and return to the player menu. Click on the Stream tab again and check the following items in the drop-down menu:

  • Allow remote control of the player
  • Automatically allow devices to play my media

The action will need to be confirmed. The image shows the items you need to select.

After that, you can go to the TV panel and play the media from the Video, Music and Image folder. The interface will differ depending on the TV manufacturer and model. For example, in LG you will find the Windows Media Player icon in the Smart Share menu, and in Samsung through the Source button or the Link app of the same name.

As you can imagine, by default, the program has standard folders with attached files, but you can also copy other multimedia data here, and not the necessary ones. delete. How to add your own folder? Very simple. You can add it to the player library.

READ  How to connect a nintendo switch to a TV

Click in Windows Media on the button “Organize”, and in the drop-down menu on the item “Manage Libraries”. “Video” (or “Gallery”). A window will open. click the “Add” button in it. Select the directory with your multimedia data and click the “Add folder” button.

For example, if you want to add video files, then select the “Videos” library. All directories that you add to the library are synchronized with the TV. That’s all. Until!

If you find an error, please select a piece of text and press CtrlEnter.

There are two options for transferring video from your phone or computer screen to your TV: video mirroring and video streaming. They are fundamentally different from each other in how the shared content is shown on the display. In Screen Mirroring, as the name suggests, you are copying the contents of the source device to your TV. Everything that appears on the first device is also displayed on the second. In the case of streaming media, the display receives the content through a digital media player. This technology does not duplicate the content present on the screen of your device.

Types of video connectors

There are two types of transmission, digital and analog. If you try to connect a digital jack to an analog port, or vice versa, you will not be able to view video. In addition, if you try to play protected high definition digital content such as Blu-ray movies over an analog connection, you will likely receive an error message or the movie will play at a lower resolution.

Name Type Description
HDMI connector (digital) The HDMI connector is a digital type of connection for transmitting high definition video signals. When used with a compatible monitor or TV, HDMI has the ability to transfer video and audio, as well as HDCP protected content (for playing high definition Blu-ray movies). Monitor or TV with HDMI must have speakers to listen to sound
DisplayPort (digital) DisplayPort is a digital type of connection that transfers high definition digital video and audio to a DisplayPort monitor. DisplayPort has very similar characteristics to HDMI, but can also support a content protection method called DPCP in addition to the general HDCP format
VGA and SVGA (analog) connector VGA connector is a video connection for sending analog video signals to a monitor or TV

So, the above video connectors are present both on many laptops and on monitors, TVs and projectors.

To transfer images from a computer to a monitor or TV, they must be connected as shown in the photo below.

How to transfer video from computer to TV

A monitor with a low resolution is not suitable for watching Blu-ray movies. Below are some simple ways to display video on a big screen. The methods will use Wi-Fi, cables and third-party services. The TV and the computer may even be in separate rooms. Whichever method you choose doesn’t involve much hassle or fiddling with components. By following the instructions, you can understand how to watch movies from your computer on your TV.

How to connect a regular TV to a laptop via Wi-Fi

A built-in wireless adapter is required for this type of image transmission with a conventional TV. Then you can transfer data using DNLA technology.

Preparing the TV for this process is carried out through the network connection settings.

Transfer media from laptop to TV via Wi-Fi (DLAN)

DLNA, or Digital Living Network Alliance, is a set of standards that allows compatible devices to receive and transmit various media files wirelessly. In other words, this is opening access to folders, the contents of which need to be sent.

To transfer content in this way, you need to use the above algorithm for transferring data via Wi-Fi.

Note! Sometimes programs are used to stream media from a PC to a TV using the DLAN function. These include Plex, HMS, Mezzmo, Kodi, Serviio, TVersity, Samsung Allshare, etc.

Miracast technology

This is another wireless communication protocol. Supported by the latest versions of Windows and most modern TVs, for example, some models of LG, Sony, Panasonic, Samsung, etc. If this built-in function is not available, you can purchase an adapter.

To transfer an image using this technology, you need to perform the following steps:

  • Turn on the Miracast option in the TV settings. If you cannot enable support for this program, you need to check the status of the wireless network connection.
  • On the computer, through the Charms bar, go to “Devices”, then to “Projector”. After that, select the item “Transfer to wireless display”.

Important! If the last item is missing, it means that the laptop does not support this type of communication. To solve the problem, you can update the version of the wireless adapter driver.

How to transfer an image from a computer to a TV via Wi-Fi

Modern technologies do not stand still. And today, almost every computer and TV owner can broadcast media from a personal computer or laptop to their TV screen without unnecessary wires. But despite the fact that this process is quite simple, not everyone knows exactly how to do it. Therefore, for the convenience of users, detailed information is posted here on how to transfer an image from a computer to a TV via Wi-Fi.

WiDi technology

This is a Wi-Fi connection protocol that is only supported by TVs with an Intel processor. It is also required to have a built-in network adapter of this company and download the Intel Wireless Display program to the PC.

After preparation, proceed directly to transferring the image to the TV screen. For this you need:

  • Activate WiDi support.
  • Launch Intel Wireless Display Software on PC or Laptop.
  • After that, the program will display all the devices that are in this network. Select the desired TV from them.

Note! Security key may be requested during connection.

Then you can directly start duplicating the picture from the laptop monitor to the TV.

Options for connecting PC to TV via Wi-Fi

The option for such a connection is partially determined by the technical characteristics and capabilities of the TV. The most popular methods include:

  • By wirelessly connecting from a single router using the built-in network adapter (DLAN);
  • using the Wi-Fi Direct function;
  • thanks to WiDi technology;
  • using the Miracast program or MiraScreen adapter, etc.

How to display an image from a computer to a TV via Wi-Fi

The first thing to do in order to broadcast from PC to TV via Wi-Fi is to activate the wireless connection.

Important! When establishing a computer. TV connection, Wi-Fi Internet connection for all devices must be established from one router. Otherwise, the connection between the PC and the TV cannot be established.

You can set up a Wi-Fi connection on your TV in the TV settings through the “Network” section. The section name may differ depending on the plasma model. Next, you need to activate the network adapter and connect to the desired router from the available points.

On the computer, you need to do the following:

  • Through the “Control Panel” in the “All Control Panel Items” tab, select “Administrative Tools”.
  • Next, you need to go to the “Local Security Policy” section and open the “Network List Manager Policy” item, which is located on the left side.
  • At this point, you need to enter the “Properties” of the connection that you want to change.
  • In the “Properties” open the “Network Location” tab, select the “Personal” type and save the changes.

The following actions are aimed at preparing folders, the image from which will be duplicated on TV:

  • By right-clicking, open the “Properties” folder, the contents of which need to be duplicated.
  • In the subsection “Access” open the item “Advanced settings”.
  • Check the box next to “Share with others” and save the changes.

Then you need to return to TV again and mark “PC connection” in the item about playing content from external sources. This will open the TV access to the folders on the computer, the media content of which needs to be duplicated.

Note! If we are talking about a TV with a built-in Wi-Fi Direct function, then you do not need to connect to a router, the connection is established directly according to the principle of a Bluetooth connection and extends to a distance of up to 200 m.Next, you need to follow the above step-by-step instructions.

To duplicate the desktop of a PC or laptop on a TV, Intel WiDi, Miracast, etc. technologies are used. Their detailed description and instructions for use are given below.

How to transfer a picture to TV via Wi-Fi

There are three ways to do this, which are described below.