Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/composables/useDevices.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @param {import('vue').Ref} video element ref to attach track to
* @param {boolean} initializeOnMounted whether to initialize mixin or not
* @return {{[key:string]: Function|import('vue').Ref|import('vue').ComputedRef}}

Check warning on line 19 in src/composables/useDevices.js

View workflow job for this annotation

GitHub Actions / NPM lint

Prefer a more specific type to `Function`
*/
export function useDevices(video, initializeOnMounted) {
// Internal variables
Expand Down Expand Up @@ -284,6 +284,7 @@

mediaDevicesManager.getUserMedia({ audio: true })
.then((stream) => {
audioStreamError.value = null
if (!initialized) {
// The promise was fulfilled once the stream is no
// longer needed, so just discard it.
Expand Down Expand Up @@ -380,6 +381,7 @@

mediaDevicesManager.getUserMedia({ video: true })
.then((stream) => {
videoStreamError.value = null
if (!initialized) {
// The promise was fulfilled once the stream is no
// longer needed, so just discard it.
Expand Down
Loading