Question: After closing modal window the i frame element keeps playing and I don't have a clue how to refer to proper element in JS.

The trick is that I use PHP variable as an ID to generate and use multiple modal windows straight from my database.

The code goes as follows:

```
foreach ($movieId as $data) {
  echo '<div class="card card-movie-poster bg-blacker text-white text-center  text-align-middle mx-2 mb-3">
    <div class="card-body">
    <a data-toggle="modal" href="#myModal'.$data['movieID'].'"><img class="card-img " src="img/movieCovers/'.$data['datatitle'].'.jpg"></a>
    </div>
  </div>';}

```

And

```
foreach ($movieId as $datatitle) {
 echo '<div class="modal fade" id="myModal'.$data['movieID'].'">
 <div class="modal-dialog modal-lg modal-dialog-centered" role="document">
<div class="modal-content bg-black">
  <div class="modal-header">

  <!-- Movie Title -->
  <h3 class="text-white-50">'.$data['movieTitle'].'</h3>

    <!-- Close button -->
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
      <span aria-hidden="true">&times;</span>
    </button>
  </div>

  <div class="modal-body container">

    <!-- Video -->
  <div class="embed-responsive embed-responsive-16by9">
    <iframe id="'.$data['movieID'].'" class="embed-responsive-item" src="https://www.youtube-nocookie.com/embed/'.$data['videoUrl'].'?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  </div>
  </div>
  </div>
</div>

```

';}

Answer: 
It's the latter; time spent by all sessions which were monitored during the snapshot.
It is the total suffered time of all the sessions which was suffered due to "TX-row lock contention".