Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/docs/assets/example/hls.quality.js b/docs/assets/example/hls.quality.js new file mode 100644 index 000000000..d66912b14 --- /dev/null +++ b/docs/assets/example/hls.quality.js @@ -0,0 +1,28 @@ +var art = new Artplayer({ + container: '.artplayer-app', + url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8', + setting: true, + plugins: [ + artplayerPluginHlsQuality({ + // Show quality in control + control: true, + // Show quality in setting + setting: true, + // Name of setting panel + name: 'Hls Quality', + }), + ], + customType: { + m3u8: function (video, url) { + if (Hls.isSupported()) { + art.hls = new Hls(); + art.hls.loadSource(url); + art.hls.attachMedia(video); + } else if (video.canPlayType('application/vnd.apple.mpegurl')) { + video.src = url; + } else { + art.notice.show = 'Does not support playback of m3u8'; + } + }, + }, +}); diff --git a/docs/document/404.html b/docs/document/404.html index 46be8e225..85d6935f6 100644 --- a/docs/document/404.html +++ b/docs/document/404.html @@ -5,13 +5,13 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.