{"id":15451817,"url":"https://github.com/willscott/webrtc-adapter","last_synced_at":"2025-05-07T23:35:43.814Z","repository":{"id":22040419,"uuid":"25368802","full_name":"willscott/webrtc-adapter","owner":"willscott","description":"Commonjs adapter.js browser compatibility shim for webRTC","archived":false,"fork":false,"pushed_at":"2015-10-12T08:31:16.000Z","size":212,"stargazers_count":8,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-14T00:41:50.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willscott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-17T17:17:55.000Z","updated_at":"2018-09-17T09:18:47.000Z","dependencies_parsed_at":"2022-08-18T21:22:22.075Z","dependency_job_id":null,"html_url":"https://github.com/willscott/webrtc-adapter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fwebrtc-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fwebrtc-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fwebrtc-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willscott%2Fwebrtc-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willscott","download_url":"https://codeload.github.com/willscott/webrtc-adapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231297126,"owners_count":18354602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T21:39:56.479Z","updated_at":"2024-12-26T01:08:36.026Z","avatar_url":"https://github.com/willscott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"webrtc-adapter\n==============\n\nCommonjs adapter.js browser compatibility shim for webRTC\n\nAbout\n-----\nWebRTC Adapter provides a more standards-compliant version of\nbrowser RTC objects for use in browser projects using WebRTC.\n\nIt is meant for [requireJS](requirejs.org) or [browserify](browserify.org)'ed\nprojects, which use a node-style ```require``` syntax, while still running in\na chrome or firefox (at the moment) browser.\n\nIn particular, the interface exported by this module attempts to closely mirror\nthe standard documented by the [w3c](http://www.w3.org/TR/webrtc/). In practice,\nboth the Chrome and Firefox implementations diverge from this standard. Previously,\nexamples have been commonly built around [adapter.js](https://github.com/GoogleChrome/webrtc/blob/master/samples/web/js/adapter.js),\na shim that attempts to sandardize many of these differences between browsers.\nHowever, this adapter lives canonically deep within a samples directory, and is not\nwell suited towards inclusion as a dependency within a larger projects.\n\nThis implementation is different in 3 regards.\n\n1. The underlying implemenation is discovered via the existance of prefixed properties,\nrather than explicit probing of the ```navigator``` object. This allows the code to run\nin firefox extensions while the original adapter could not.\n2. This implementation uses node style exports, rather than attempting to export a fixed\nglobal object.\n3. This implementation is released un an Apache 2.0, rather than BSD license.\n\nUsage\n----\n\n\n```javascript\nvar MyPeerConnection = require('webrtc-adapter').RTCPeerConnection;\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillscott%2Fwebrtc-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillscott%2Fwebrtc-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillscott%2Fwebrtc-adapter/lists"}