From a754961a147ff1d2ff1a3d71f165b3fba0f5cdcd Mon Sep 17 00:00:00 2001 From: dragongoose Date: Mon, 21 Aug 2023 15:29:01 -0400 Subject: [PATCH] Add hls.js for audio only --- package-lock.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 5 ++++- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 8518062..ad335a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@intlify/unplugin-vue-i18n": "^0.11.0", "@tailwindcss/forms": "^0.5.3", + "hls.js": "^1.4.10", "oh-vue-icons": "^1.0.0-rc3", "video.js": "^8.0.4", "videojs-contrib-quality-levels": "^3.0.0", @@ -23,10 +24,12 @@ "@intlify/vue-i18n-loader": "^3.0.0", "@rushstack/eslint-patch": "^1.2.0", "@tailwindcss/typography": "^0.5.9", + "@types/hls.js": "^1.0.0", "@types/node": "^18.14.2", "@types/video.js": "^7.3.51", "@types/videojs-contrib-quality-levels": "^2.0.1", "@types/videojs-hls-quality-selector": "^1.1.0", + "@types/vue": "^2.0.0", "@vitejs/plugin-vue": "^4.0.0", "@vue/eslint-config-prettier": "^7.1.0", "@vue/eslint-config-typescript": "^11.0.2", @@ -827,6 +830,16 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" }, + "node_modules/@types/hls.js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/hls.js/-/hls.js-1.0.0.tgz", + "integrity": "sha512-EGY2QJefX+Z9XH4PAxI7RFoNqBlQEk16UpYR3kbr82CIgMX5SlMe0PjFdFV0JytRhyVPQCiwSyONuI6S1KdSag==", + "deprecated": "This is a stub types definition. hls.js provides its own type definitions, so you do not need this installed.", + "dev": true, + "dependencies": { + "hls.js": "*" + } + }, "node_modules/@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", @@ -869,6 +882,16 @@ "@types/video.js": "*" } }, + "node_modules/@types/vue": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/vue/-/vue-2.0.0.tgz", + "integrity": "sha512-WDElkBv/o4lVwu6wYHB06AXs4Xo2fwDjJUpvPRc1QQdzkUSiGFjrYuSCy8raxLE5FObgKq8ND7R5gSZTFLK60w==", + "deprecated": "This is a stub types definition for vuejs (https://github.com/vuejs/vue). vuejs provides its own type definitions, so you don't need @types/vue installed!", + "dev": true, + "dependencies": { + "vue": "*" + } + }, "node_modules/@typescript-eslint/eslint-plugin": { "version": "5.54.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz", @@ -2952,6 +2975,11 @@ "he": "bin/he" } }, + "node_modules/hls.js": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.4.10.tgz", + "integrity": "sha512-wAVSj4Fm2MqOHy5+BlYnlKxXvJlv5IuZHjlzHu18QmjRzSDFQiUDWdHs5+NsFMQrgKEBwuWDcyvaMC9dUzJ5Uw==" + }, "node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -6163,6 +6191,15 @@ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz", "integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==" }, + "@types/hls.js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@types/hls.js/-/hls.js-1.0.0.tgz", + "integrity": "sha512-EGY2QJefX+Z9XH4PAxI7RFoNqBlQEk16UpYR3kbr82CIgMX5SlMe0PjFdFV0JytRhyVPQCiwSyONuI6S1KdSag==", + "dev": true, + "requires": { + "hls.js": "*" + } + }, "@types/json-schema": { "version": "7.0.11", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", @@ -6205,6 +6242,15 @@ "@types/video.js": "*" } }, + "@types/vue": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/vue/-/vue-2.0.0.tgz", + "integrity": "sha512-WDElkBv/o4lVwu6wYHB06AXs4Xo2fwDjJUpvPRc1QQdzkUSiGFjrYuSCy8raxLE5FObgKq8ND7R5gSZTFLK60w==", + "dev": true, + "requires": { + "vue": "*" + } + }, "@typescript-eslint/eslint-plugin": { "version": "5.54.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.54.0.tgz", @@ -7706,6 +7752,11 @@ "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true }, + "hls.js": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/hls.js/-/hls.js-1.4.10.tgz", + "integrity": "sha512-wAVSj4Fm2MqOHy5+BlYnlKxXvJlv5IuZHjlzHu18QmjRzSDFQiUDWdHs5+NsFMQrgKEBwuWDcyvaMC9dUzJ5Uw==" + }, "hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", diff --git a/package.json b/package.json index 23acc15..2ec0b65 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "dependencies": { "@intlify/unplugin-vue-i18n": "^0.11.0", "@tailwindcss/forms": "^0.5.3", + "hls.js": "^1.4.10", "oh-vue-icons": "^1.0.0-rc3", "video.js": "^8.0.4", "videojs-contrib-quality-levels": "^3.0.0", @@ -24,15 +25,16 @@ "vue-router": "^4.1.6" }, "devDependencies": { - "git-describe": "^4.1.1", "@catppuccin/tailwindcss": "^0.1.1", "@intlify/vue-i18n-loader": "^3.0.0", "@rushstack/eslint-patch": "^1.2.0", "@tailwindcss/typography": "^0.5.9", + "@types/hls.js": "^1.0.0", "@types/node": "^18.14.2", "@types/video.js": "^7.3.51", "@types/videojs-contrib-quality-levels": "^2.0.1", "@types/videojs-hls-quality-selector": "^1.1.0", + "@types/vue": "^2.0.0", "@vitejs/plugin-vue": "^4.0.0", "@vue/eslint-config-prettier": "^7.1.0", "@vue/eslint-config-typescript": "^11.0.2", @@ -40,6 +42,7 @@ "autoprefixer": "^10.4.13", "eslint": "^8.34.0", "eslint-plugin-vue": "^9.9.0", + "git-describe": "^4.1.1", "npm-run-all": "^4.1.5", "postcss": "^8.4.21", "prettier": "^2.8.4",