How to stop audio/video when modal is closed?

Hey guys,
I am VERY new to Javascript and i’m trying to figure out how to get audio and video to stop playing when the modal box is closed? Below is my code, can anyone help with the js?

<div class="portfolio-modal modal fade" id="portfolioModal9" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-content">
            <div class="close-modal" data-dismiss="modal">
                <div class="lr">
                    <div class="rl">
            <div class="container">
                <div class="row">
                    <div class="col-lg-8 col-lg-offset-2">
                        <div class="modal-body">
<video width="640" height="480" controls class="video">
  <source src="VIDEO/" type="video/mp4">
  Your browser does not support the video tag.
                            <ul class="list-inline item-details">
                                    <strong><a href="">Start Bootstrap</a>
                                    <strong><a href="">April 2014</a>
                                    <strong><a href="">Web Development</a>
                            <button type="button" class="btn btn-default" data-dismiss="modal"><i class="fa fa-times"></i> Close</button>