{"_id":"@coconut-xr/media","_rev":"2-42b7ffebd69f283eacd3ec61be45e4b5","name":"@coconut-xr/media","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@coconut-xr/media","version":"1.1.0","type":"module","main":"dist/index.js","description":"React library for accessing browser media like camera, microphone, screen capture, etc.","homepage":"https://coconut-xr.github.io/media","license":"SEE LICENSE IN LICENSE","author":{"name":"Bela Bohlender"},"keywords":["media","react","camera","screen-share","microphone","typescript"],"repository":{"type":"git","url":"git+ssh://git@github.com/coconut-xr/media.git"},"peerDependencies":{"react":"*"},"scripts":{"build":"tsc","check":"run-s check:prettier check:eslint","check:prettier":"prettier --check src/**/*.{ts,tsx}","check:eslint":"eslint src","fix":"run-s fix:prettier fix:eslint","fix:prettier":"prettier --write src/**/*.{ts,tsx}","fix:eslint":"eslint src --fix"},"dependencies":{"suspend-react":"0.0.8"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","eslint":"^8.29.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.31.11","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0","@types/react":"^18.0.26","npm-run-all":"^4.1.5","prettier":"^2.8.0","typescript":"^4.9.3"},"types":"./dist/index.d.ts","gitHead":"e5f69ad331382a63985a4f8e7d835cf5f2a7353e","bugs":{"url":"https://github.com/coconut-xr/media/issues"},"_id":"@coconut-xr/media@1.1.0","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-hQj50xZfTh4hmvnHFsBm3oMTi6GRA1Jhr6y1UpadCxRNE5pla13arFCnf+CDnkRSUs70aCPE2rUZyPxuo/wCpw==","shasum":"393955f462240c7dae287b60ad54a385ed067578","tarball":"https://registry.npmjs.org/@coconut-xr/media/-/media-1.1.0.tgz","fileCount":12,"unpackedSize":12323,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtgVY5IqpA8/crI4vjaOd3gGYIYF6pGg04asP3zjib2QIhAO40AVe5KsxEb2+UsqiI3ehs9OZqcp35PXVeTFcimHcg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAyi7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1vw/9F0R7MTHZ17GctxWrDlMmoyXP6ZE8WXDgDZyJRJ/fl4oq4OiQ\r\nhtE3uuWY3YjHp8dg4hlO0+TYWWjRMujylBhajW/05qjbDEMVLJUCOmCeAHPA\r\neA9jPL0v9xHl8E6SKIfNwspRCYo7q+2oEVgjpZ9f8WpAsOA+oKB+q38dXGp1\r\n5fOrS/IO84YCfPwv8lJTwTQ0qyP+8kB0wI867LBF+0+xLZ1eB98H8MaHgAF1\r\np+tYHQE1z5h3/tVxT4BssceSfIuU3kFkPCW3av3T+WaeeJHa2rThU682LqGr\r\n+hAmqoCIaSYFjVBwBvk+GI4trQ+YlpVA2ivjYUFo48tqlyOgNVPxZLemC+7i\r\nTS2qtqMDcVUcCx2hs0CJSD5XiFepaHeCHKpXaVBjmqrBET3/ml7e90m3exH+\r\nJWLhSNDfVzexn+ltU/bmFIR5ixDbSueV8cXuMV++z+p/1+xUiuivi97cCoZc\r\nuaHG9RSO6DcTfdURVOi1NLO0+vUwvYt0Y2Ko04FwA1fEM0wtivT2Hyo+UQOM\r\n7LrCpO8CYOKGqBJRF9N5Z3FySKZJ4ecODYlBNgH5nBgo9odGs1OwpJFyPzOp\r\nzs5TKf5GaF5D3mtmDZxISviArT5QY+6tpc8cLuXyiPj7ACBxOEkay8hnZGLi\r\ncFnLzxG+5lJOIYZa7VvLiI9QQCbzfGHikP8=\r\n=OBJw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bbohlender","email":"bbohlender@coconut-capital.com"},"directories":{},"maintainers":[{"name":"bbohlender","email":"bbohlender@coconut-capital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/media_1.1.0_1677928635517_0.9034076464752829"},"_hasShrinkwrap":false},"1.1.1":{"name":"@coconut-xr/media","version":"1.1.1","type":"module","main":"dist/index.js","description":"React library for accessing browser media like camera, microphone, screen capture, etc.","homepage":"https://coconut-xr.github.io/media","license":"SEE LICENSE IN LICENSE","author":{"name":"Bela Bohlender"},"keywords":["media","react","camera","screen-share","microphone","typescript"],"repository":{"type":"git","url":"git+ssh://git@github.com/coconut-xr/media.git"},"peerDependencies":{"react":"*"},"scripts":{"build":"tsc","check":"run-s check:prettier check:eslint","check:prettier":"prettier --check src/**/*.{ts,tsx}","check:eslint":"eslint src","fix":"run-s fix:prettier fix:eslint","fix:prettier":"prettier --write src/**/*.{ts,tsx}","fix:eslint":"eslint src --fix"},"dependencies":{"suspend-react":"^0.0.9"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^5.45.1","@typescript-eslint/parser":"^5.45.1","eslint":"^8.29.0","eslint-config-prettier":"^8.5.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-react":"^7.31.11","eslint-plugin-react-hooks":"^4.6.0","react":"^18.2.0","@types/react":"^18.0.26","npm-run-all":"^4.1.5","prettier":"^2.8.0","typescript":"^4.9.3"},"types":"./dist/index.d.ts","gitHead":"79c6fd9c356bc38c1c9b5ba7fbcd71525336691d","bugs":{"url":"https://github.com/coconut-xr/media/issues"},"_id":"@coconut-xr/media@1.1.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-GzBIt7zKutDf7PFGRyX1cITfmqqxNEBZXuhDSzGdQ2Uek0MwBlMHfdUsXQ+AQuaIeUN0ccPne/n9yv3Qi17g1g==","shasum":"260cd975eaed02179c853be45da67de510fe5f00","tarball":"https://registry.npmjs.org/@coconut-xr/media/-/media-1.1.1.tgz","fileCount":12,"unpackedSize":12362,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu6Fgj5x9c0l8R6ko1AQZ3DZrUHup7o3r8s5mrgQjmuwIgVDiJIRklYLeBcTgzFeU28Y6xSswwE1xEio8j4wYyxmA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAyqhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRTQ/8CL2Q0tePC/jn23pcZylWXZt91eDluUF/XtuTpJK920ZiX+eF\r\nL39bjJ45MheKrJ4CuRPJZMHLxniY0gYKQQ2UgFx12KyL+EZUN+1H9bzlJ7L8\r\n1M8VohMf6Gzv069ZnbTims/z1ihELs3gCreiHvbNVlJwywONsoFEz+KPrPDL\r\nuUNJqCG2QPQgkk/r+yAaNpBw1CyelkmXdl0gDE69TZR8OX0SZxdp66cgYunj\r\nRhoxdge4j4a+mBIj345rt5uG1yZwLwyUYQUsiIl3gi0PbtMjefDxbO70D4qU\r\nmoFfLdr5DnP9S8hj5NL7p4x0Vw1HYzaM6K4/BCV8XnhNoFvZj+kKP7R7Sipo\r\nFK0zr6VXI+GlKsvksrzHTdR4HLxQAlHIouJMM5n9ztxNGV50Z2pVZE/W5wTP\r\nILe7CGFfHmA9KmMIqtTuNMtB7xn62WeBHu/SLukKVZdBk2sE8gfpDawlPmbK\r\nYtnQgMfjVTtEeYtMy0BpUREmQ4P29bwnBytvGHnqtaRpkSJtMIkJLqHyQ28L\r\n5XEgWx3k8xyRoqyhRTm0rFxeFt8vZ1VnIabKpr8MLg8hBY2QnKS+Bt8spOi/\r\naHggzz1wf95tj0wRPEfjMU9iHsZcDCZYg0ABy/PgIUXhGayF+OeXzr4EPbsE\r\n05DNGzHE3iNVkRqnXgmDM5lJTw4ySc5AUb4=\r\n=hu2L\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bbohlender","email":"bbohlender@coconut-capital.com"},"directories":{},"maintainers":[{"name":"bbohlender","email":"bbohlender@coconut-capital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/media_1.1.1_1677929121405_0.17095540988455182"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-04T11:17:15.431Z","1.1.0":"2023-03-04T11:17:15.687Z","modified":"2023-03-06T13:40:15.873Z","1.1.1":"2023-03-04T11:25:21.591Z"},"maintainers":[{"email":"mjahn@coconut-capital.com","name":"cc-mjahn"},{"email":"bbohlender@coconut-capital.com","name":"bbohlender"}],"description":"React library for accessing browser media like camera, microphone, screen capture, etc.","homepage":"https://coconut-xr.github.io/media","keywords":["media","react","camera","screen-share","microphone","typescript"],"repository":{"type":"git","url":"git+ssh://git@github.com/coconut-xr/media.git"},"author":{"name":"Bela Bohlender"},"bugs":{"url":"https://github.com/coconut-xr/media/issues"},"license":"SEE LICENSE IN LICENSE","readme":"# @coconut-xr/media\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/coconut-xr/media/.github/workflows/deploy.yml)](https://github.com/coconut-xr/media/actions)&nbsp;\n[![Npm package version](https://badgen.net/npm/v/@coconut-xr/media)](https://npmjs.com/package/@coconut-xr/media)&nbsp;\n[![GitHub license](https://img.shields.io/github/license/coconut-xr/media.svg)](https://github.com/coconut-xr/media/blob/master/LICENSE)&nbsp;\n[![Twitter](https://badgen.net/badge/icon/twitter?icon=twitter&label)](https://twitter.com/BelaBohlender)\n\nReact library for accessing browser media like camera, microphone, screen capture, etc.\n\n# Functions\n\n```typescript\nfunction closeStream(stream: MediaStream): void\nfunction requestMediaDeviceStream(info: ExtendedMediaDeviceInfo): Promise<MediaStream>\nfunction getStreamType(stream: MediaStream): StreamType\n\nfunction useStreamType(stream: MediaStream): StreamType\nfunction useStreamActive(stream: MediaStream): boolean\n\nfunction useSelectDefaultMediaDevice(\n    kind: ExtendedMediaDeviceInfo[\"kind\"],\n    from: Array<ExtendedMediaDeviceInfo>\n): ExtendedMediaDeviceInfo | undefined\nfunction useMediaDevices(): Array<ExtendedMediaDeviceInfo>\n```\n\n# [**Examples**](https://coconut-xr.github.io/media)\n\nShows an example implementation of an conference app (not networked) styled with Material Icons and Bootstrap.\n\n![Example](/example.gif)\n","readmeFilename":"README.md"}