Bladeren bron

base index

Tum 3 jaren geleden
bovenliggende
commit
8f81e059c6
2 gewijzigde bestanden met toevoegingen van 7 en 5 verwijderingen
  1. 1 1
      templates/base.html
  2. 6 4
      templates/index.html

+ 1 - 1
templates/base.html

@@ -34,7 +34,7 @@
34 34
                   player.play()
35 35
               }, 
36 36
               search: '',
37
-              items: ['1001', '2001'],
37
+              items: ['1001', '3001'],
38 38
                 get filteredItems() {
39 39
                     return this.items.filter(
40 40
                         i => i.startsWith(this.search)

+ 6 - 4
templates/index.html

@@ -5,6 +5,9 @@
5 5
         <div class='row p-2'>
6 6
             <input x-model="search" placeholder="Search..." class='form-control'>
7 7
         </div>
8
+                           <video x-init="vdo($el)"  class="video-js vjs-default-skin m-auto" controls preload autoplay muted>
9
+                               <source src="./video/cctv.m3u8" type="application/x-mpegURL">
10
+                           </video>
8 11
             <div class='row'>
9 12
                 <template x-for="item in filteredItems" :key="item">
10 13
                     <div class='col-md-6 mb-2 text-center'>
@@ -12,10 +15,9 @@
12 15
                     <img src="http://localhost:9099/video_feed/0/" width="480">
13 16
                           
14 17
                         </template>
15
-                        <template x-if="item != '1001'">
16
-                           <video x-init="vdo($el)"  class="video-js vjs-default-skin m-auto" controls preload autoplay muted>
17
-                               <source src="./video/cctv.m3u8" type="application/x-mpegURL">
18
-                           </video>
18
+                        <template x-if="item == '3001'">
19
+                    <img src="http://localhost:9024/video_feed/0/" width="480">
20
+                          
19 21
                         </template>
20 22
                         <p>
21 23
                         <strong x-text='item'></strong></p>