myetv-player 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,14 +110,23 @@ const player = new MYETVPlayer('myVideo', {
110
110
  // Show YouTube native controls (true) or use player controls (false)
111
111
  showYouTubeUI: false,
112
112
 
113
+ // enable or disable the mouse click over the Youtube player also if showYouTubeUI is false
114
+ mouseClick: false,
115
+
113
116
  // Auto-detect video ID from data attributes and sources
114
117
  autoLoadFromData: true,
115
118
 
116
- // Initial quality ('default', 'small', 'medium', 'large', 'hd720', 'hd1080', 'highres')
117
- quality: 'default',
119
+ // Initial quality ('auto', 'tiny', 'small', 'medium', 'large', 'hd720', 'hd1080', 'hd1440', 'hd2160', 'highres')
120
+ quality: 'auto',
118
121
 
119
122
  // Enable quality control in player UI
120
- enableQualityControl: true
123
+ enableQualityControl: true,
124
+
125
+ // enable channel information retrieval (NEED THE APIKEY TO WORK)
126
+ enableChannelWatermark: false,
127
+
128
+ // Set the default language for auto subtitles
129
+ autoCaptionLanguage: 'en'
121
130
  }
122
131
  }
123
132
  });
@@ -197,16 +206,18 @@ const player = new MYETVPlayer('myVideo', {
197
206
  </script>
198
207
  ```
199
208
 
200
- ### Method 4: YouTube URL in Video Source
209
+ ### Method 4: YouTube video id in the initialization option
201
210
 
202
211
  ```html
203
- <video id="myVideo" class="video-player"
204
- src="https://youtu.be/dQw4w9WgXcQ">
212
+ <video id="myVideo" class="video-player">
205
213
  </video>
206
214
 
207
215
  <script>
208
216
  const player = new MYETVPlayer('myVideo', {
209
- plugins: { youtube: {} }
217
+ plugins: { youtube: {
218
+ videoId: 'dQw4w9WgXcQ', // YouTube video ID
219
+ autoplay: true
220
+ } }
210
221
  });
211
222
  </script>
212
223
  ```