A Minnesota woman who fatally shot her boyfriend in a stunt they hoped would go viral on YouTube has been sentenced to six months in prison.

Pedro Ruiz, 22, had asked Monalisa Perez, 20, to shoot him with a gun from about one foot (30 cm) away. He thought the 1.5in (4cm) book he was holding in front of his chest would stop the bullet from hitting him. Instead it killed him as the couple's three-year-old daughter witnessed the incident and Perez was pregnant at the time with their second child.

Perez had pleaded guilty to second-degree manslaughter and her sentence is a result of a plea bargain. A trial may have resulted in ten years in prison with a $20,000 fine.

The mother of two will serve an alternating sentence for the first six months - 10 days in jail and 10 days out - in the US state of South Dakota where she now resides.

The remaining 90 days of her prison sentence will be served at home in confinement.

She will also serve 10 years probation and is permanently banned from owning a firearm.

Logan Paul explains why he uploaded the controversial suicide video

The sentencing is below the normal minimums for the crime in Minnesota but prosecutor Norman County Attorney James Brue said "the reality [is] that this foolish stunt was dreamed up, planned and executed by Pedro Ruiz, and the defendant wrongfully and tragically relied on his assurances that the stunt was safe”.

Perez had told investigators in the wake of the 26 June incident that Mr Ruiz had been “trying to get her” to fire the gun “for a while”. Mr Ruiz had shown her a book he had shot with the same gun to demonstrate that the bullet did not go through the entire volume.

11 YouTube features you didn't know existed Show all 11 1 /11 11 YouTube features you didn't know existed 11 YouTube features you didn't know existed Play in the background One of the YouTube app’s most frustrating shortcomings is the inability to play music videos in the background or when you’re phone’s locked. There is a way around this, but only on iOS. Open the YouTube website in Safari, play a video and then press your iPhone’s home button. After that, launch the Control Centre by sliding up from the bottom of the screen and tap play. 11 YouTube features you didn't know existed Loop videos YouTube’s looping option on desktop is really useful, but nowhere near as easy to find as it should be. To loop a video, right-click it while it’s playing and select Loop. Even if you have Autoplay enabled, your video will replay itself as soon as it finishes. 11 YouTube features you didn't know existed Enable Dark Theme YouTube recently introduced a black-and-red Dark Theme on the desktop, which is much easier on your eyes than the regular version of the site. Enable it by clicking the account symbol, selecting Dark Theme and turning Activate Dark Theme on. 11 YouTube features you didn't know existed Simplify YouTube Another alternative YouTube user interface is available to access at youtube.com/tv. It’s a really simple, no-frills UI that’s incredibly easy to navigate. 11 YouTube features you didn't know existed Try out new features You can test upcoming and experimental features early by signing up to YouTube TestTube. 11 YouTube features you didn't know existed Read When you want to watch a YouTube video but don’t have your headphones and don’t want to disturb anyone around you, turn on Captions. They’re also really handy if you’re trying to watch a video in a foreign language. Transcriptions, meanwhile, break down exactly when certain things take place, so you can skip to the part you want to watch accurately and easily. In the More tab under the video title, launch the dropdown menu and select Transcript. 11 YouTube features you didn't know existed Use shortcuts You can lean back in your seat and control YouTube videos with your keyboard if you want to. J and L let you rewind and fast-forward 10 seconds, K is pause/play, M is mute/unmute and the 0-9 keys let you jump through various stages of the video, from 0 per cent to 90 per cent. On the app, you can fast forward or rewind 10 seconds by double-tapping the right or left side of a video. 11 YouTube features you didn't know existed Limit data use If you’re on a limited mobile data plan, there are easy ways to save yourself some money. In Settings on the YouTube app, hit General and enable Limit Mobile Data Usage and disable Autoplay. 11 YouTube features you didn't know existed Keep things private Unless you make them private, other people can see your Liked videos, your saved playlists and subscriptions. If you want to hide them, go to Settings and Privacy. You can also clear or pause your History. On either desktop or the mobile app, go to History and select Clear All Watch History or Pause Watch History. 11 YouTube features you didn't know existed Make sharing clearer Sometimes you want to share a video with a friend, but want them to watch a specific part, rather than the whole thing. Instead of sending the timestamp through as a separate message, make the video automatically play from the right place. Just pause it at the right moment, click the Share button, tick the Start At box and copy the URL. 11 YouTube features you didn't know existed Get nerdy Stats for Nerds shows you technical data for YouTube videos, including video format, audio format and bandwidth. On desktop, you can find the info simply by right-clicking the video player and selecting Stats for Nerds. On mobile, you have to enable it first in General Settings. Once that’s done, open a video, hit the menu button in the top-right corner and tap the Stats for Nerds option.

Part of the sentence is that she is not allowed to financially gain from the video of Mr Ruiz’s death.

She and Mr Ruiz had posted a series of nearly 20 videos to YouTube featuring mostly harmless pranks: Mr Ruiz climbing a tree and falling from a branch, Perez feeding him a doughnut covered with talcum powder instead of powdered sugar, eating the world’s spiciest pepper.