telephone-clients 3.0.113 → 3.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelignore +1 -1
- package/.babelrc +6 -6
- package/.eslintrc.js +16 -16
- package/CHANGELOG.md +37 -37
- package/README.md +38 -38
- package/TelephoneClient.iml +12 -12
- package/adapter.min.js +2049 -2049
- package/android.html +18 -18
- package/build.gradle +15 -15
- package/index.html +29 -29
- package/package.json +1 -1
- package/release.bat +5 -5
- package/src/AndroidApp.vue +33 -33
- package/src/App.vue +54 -54
- package/src/android-bootstrap/less/navs.less +333 -333
- package/src/android.js +17 -17
- package/src/androidBase.js +111 -111
- package/src/androidTest.js +18 -18
- package/src/bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/bootstrap/less/.csscomb.json +304 -304
- package/src/bootstrap/less/.csslintrc +19 -19
- package/src/bootstrap/less/alerts.less +73 -73
- package/src/bootstrap/less/aofeng/animate.min.css +10 -10
- package/src/bootstrap/less/aofeng/standard.less +585 -585
- package/src/bootstrap/less/aofeng/themeOne/BinaryTemplate.less +478 -478
- package/src/bootstrap/less/aofeng/themeOne/loginStyle.less +1586 -1586
- package/src/bootstrap/less/aofeng/themeOne/systemStyle.less +1905 -1905
- package/src/bootstrap/less/aofeng/themeTwo/newStyle1.less +415 -415
- package/src/bootstrap/less/badges.less +66 -66
- package/src/bootstrap/less/bootstrap.less +65 -65
- package/src/bootstrap/less/breadcrumbs.less +26 -26
- package/src/bootstrap/less/button-groups.less +247 -247
- package/src/bootstrap/less/buttons.less +172 -172
- package/src/bootstrap/less/carousel.less +269 -269
- package/src/bootstrap/less/close.less +34 -34
- package/src/bootstrap/less/code.less +69 -69
- package/src/bootstrap/less/component-animations.less +33 -33
- package/src/bootstrap/less/dropdowns.less +216 -216
- package/src/bootstrap/less/forms.less +626 -626
- package/src/bootstrap/less/glyphicons.less +305 -305
- package/src/bootstrap/less/grid.less +84 -84
- package/src/bootstrap/less/input-groups.less +167 -167
- package/src/bootstrap/less/jumbotron.less +52 -52
- package/src/bootstrap/less/labels.less +64 -64
- package/src/bootstrap/less/list-group.less +141 -141
- package/src/bootstrap/less/manageStyle/manageChile.less +180 -180
- package/src/bootstrap/less/manageStyle/manageStyle.less +1102 -1102
- package/src/bootstrap/less/manageStyle/safeStyle.less +498 -498
- package/src/bootstrap/less/media.less +66 -66
- package/src/bootstrap/less/mixins/alerts.less +14 -14
- package/src/bootstrap/less/mixins/background-variant.less +9 -9
- package/src/bootstrap/less/mixins/border-radius.less +18 -18
- package/src/bootstrap/less/mixins/buttons.less +69 -69
- package/src/bootstrap/less/mixins/center-block.less +7 -7
- package/src/bootstrap/less/mixins/clearfix.less +22 -22
- package/src/bootstrap/less/mixins/forms.less +90 -90
- package/src/bootstrap/less/mixins/gradients.less +59 -59
- package/src/bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/bootstrap/less/mixins/grid.less +122 -122
- package/src/bootstrap/less/mixins/hide-text.less +21 -21
- package/src/bootstrap/less/mixins/image.less +33 -33
- package/src/bootstrap/less/mixins/labels.less +12 -12
- package/src/bootstrap/less/mixins/list-group.less +30 -30
- package/src/bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/bootstrap/less/mixins/opacity.less +8 -8
- package/src/bootstrap/less/mixins/pagination.less +24 -24
- package/src/bootstrap/less/mixins/panels.less +24 -24
- package/src/bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/bootstrap/less/mixins/reset-text.less +18 -18
- package/src/bootstrap/less/mixins/resize.less +6 -6
- package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/bootstrap/less/mixins/size.less +10 -10
- package/src/bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/bootstrap/less/mixins/table-row.less +44 -44
- package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/bootstrap/less/mixins.less +40 -40
- package/src/bootstrap/less/modals.less +151 -151
- package/src/bootstrap/less/navbar.less +660 -660
- package/src/bootstrap/less/navs.less +285 -285
- package/src/bootstrap/less/normalize.less +424 -424
- package/src/bootstrap/less/pager.less +76 -76
- package/src/bootstrap/less/pagination.less +89 -89
- package/src/bootstrap/less/panels.less +275 -275
- package/src/bootstrap/less/popovers.less +131 -131
- package/src/bootstrap/less/print.less +101 -101
- package/src/bootstrap/less/progress-bars.less +87 -87
- package/src/bootstrap/less/responsive-embed.less +35 -35
- package/src/bootstrap/less/responsive-utilities.less +194 -194
- package/src/bootstrap/less/scaffolding.less +161 -161
- package/src/bootstrap/less/stand.less +211 -211
- package/src/bootstrap/less/standard.less +503 -503
- package/src/bootstrap/less/systemStyle.less +860 -860
- package/src/bootstrap/less/tables.less +312 -312
- package/src/bootstrap/less/theme.less +291 -291
- package/src/bootstrap/less/themeOne.less +34 -34
- package/src/bootstrap/less/themeTwo.less +27 -27
- package/src/bootstrap/less/thumbnails.less +36 -36
- package/src/bootstrap/less/tooltip.less +102 -102
- package/src/bootstrap/less/type.less +303 -303
- package/src/bootstrap/less/utilities.less +55 -55
- package/src/bootstrap/less/variables.less +896 -896
- package/src/bootstrap/less/wells.less +29 -29
- package/src/bus.js +2 -2
- package/src/components/CaseContainer.vue +86 -86
- package/src/components/ExportExcel.vue +342 -342
- package/src/components/ImgSelfTel.vue +126 -126
- package/src/components/MaterialsManage/MaterialsBase.vue +177 -177
- package/src/components/MaterialsManage/MaterialsList.vue +244 -244
- package/src/components/MaterialsManage/MaterialsManage.vue +60 -60
- package/src/components/PartialView.vue +44 -44
- package/src/components/Test.vue +26 -26
- package/src/components/TimelineItem.vue +119 -119
- package/src/components/Util/FileUpload.vue +139 -139
- package/src/components/Util/ImgSelfSafePlus.vue +156 -156
- package/src/components/Util/RightTreeSafe.vue +346 -346
- package/src/components/Util/RightTreeSafeDep.vue +350 -350
- package/src/components/Util/TelePhoneUpload.vue +279 -279
- package/src/components/Util.js +600 -600
- package/src/components/android/AddMyTask.vue +353 -353
- package/src/components/android/AppHeader.vue +69 -69
- package/src/components/android/CameraImg.vue +111 -111
- package/src/components/android/CompletedRepair.vue +264 -264
- package/src/components/android/EmployeeInfo.vue +59 -59
- package/src/components/android/EmployeePage.vue +71 -71
- package/src/components/android/ImgArea.vue +104 -104
- package/src/components/android/Lbt.vue +103 -103
- package/src/components/android/LoginApp.vue +374 -374
- package/src/components/android/NavBottom.vue +104 -104
- package/src/components/changemeter/ChangeMeterAll.vue +189 -189
- package/src/components/changemeter/ChangeMeterDetail.vue +300 -300
- package/src/components/changemeter/ChangeMeterMain.vue +37 -37
- package/src/components/eachart/BarBrokenline.vue +206 -206
- package/src/components/eachart/BarChart.vue +165 -165
- package/src/components/eachart/PieChart.vue +182 -182
- package/src/components/eachart/datesumchart.vue +165 -165
- package/src/components/eachart/statework.vue +226 -226
- package/src/components/eachart/workorderchart.vue +183 -183
- package/src/components/guoxin/Console.vue +393 -393
- package/src/components/guoxin/RecordInfoRight.vue +75 -75
- package/src/components/guoxin/VisitInfo.vue +270 -270
- package/src/components/guoxin/call.state.api.js +217 -217
- package/src/components/guoxin/reconnecting-websocket.min.js +1 -1
- package/src/components/guoxin/telephone.js +15 -15
- package/src/components/map/AMapTrailShowWx.vue +178 -178
- package/src/components/map/CallMap.vue +403 -403
- package/src/components/map/CriteriaData.vue +81 -81
- package/src/components/map/OlMap.vue +831 -831
- package/src/components/map/OrderService.vue +249 -249
- package/src/components/map/PipeMap.vue +154 -154
- package/src/components/map/dragbox.js +234 -234
- package/src/components/pay/createQRcode.vue +192 -192
- package/src/components/pay/telReadCard.vue +59 -59
- package/src/components/pc/AllUser.vue +615 -615
- package/src/components/pc/AllUserNew.vue +638 -638
- package/src/components/pc/ArrearsList.vue +397 -397
- package/src/components/pc/AttendantCallStat.vue +213 -213
- package/src/components/pc/AttendantWorkHistory.vue +98 -98
- package/src/components/pc/Auxfunc.vue +76 -76
- package/src/components/pc/BottleGas/BottleGasManage.vue +304 -304
- package/src/components/pc/BottleGasWork.vue +214 -214
- package/src/components/pc/BuildReport.vue +60 -60
- package/src/components/pc/CallerInfoList.vue +98 -98
- package/src/components/pc/ChatMsg.vue +338 -338
- package/src/components/pc/ComplainWork.vue +329 -329
- package/src/components/pc/Console.vue +617 -617
- package/src/components/pc/DelayReply.vue +60 -60
- package/src/components/pc/DistributeWork.vue +177 -177
- package/src/components/pc/ElseWork.vue +44 -44
- package/src/components/pc/ElseWorkList.vue +267 -267
- package/src/components/pc/Emoji.vue +64 -64
- package/src/components/pc/Evaluate.vue +145 -145
- package/src/components/pc/EvaluateList.vue +195 -195
- package/src/components/pc/EvaluateModel.vue +53 -53
- package/src/components/pc/FailureEdit.vue +197 -192
- package/src/components/pc/FailureShow.vue +61 -61
- package/src/components/pc/FireQuery.vue +165 -165
- package/src/components/pc/FootPrintList.vue +40 -40
- package/src/components/pc/GasWork.vue +764 -764
- package/src/components/pc/GroupResend.vue +111 -111
- package/src/components/pc/InstallWork.vue +734 -734
- package/src/components/pc/ManageMaterial.vue +282 -282
- package/src/components/pc/MessageList.vue +635 -635
- package/src/components/pc/MessageManage.vue +136 -136
- package/src/components/pc/MessageManageList.vue +127 -127
- package/src/components/pc/MessageManageNew.vue +121 -121
- package/src/components/pc/MonitorGroup.vue +82 -82
- package/src/components/pc/NewRepairPaper.vue +378 -378
- package/src/components/pc/OrderService.vue +182 -182
- package/src/components/pc/ProgressBar.vue +50 -50
- package/src/components/pc/QueryJoinlv.vue +136 -136
- package/src/components/pc/QueryTeleHistory.vue +95 -95
- package/src/components/pc/QueryTextHistory.vue +98 -98
- package/src/components/pc/QueryVisitHistory.vue +217 -217
- package/src/components/pc/ReVisitList.vue +208 -208
- package/src/components/pc/RecordInfoRight.vue +84 -84
- package/src/components/pc/RecordList.vue +53 -53
- package/src/components/pc/RecordList2.vue +155 -155
- package/src/components/pc/RecordListLeft.vue +258 -258
- package/src/components/pc/RecordReport.vue +181 -181
- package/src/components/pc/ReminderOrder.vue +52 -52
- package/src/components/pc/RepairHistoryList.vue +152 -152
- package/src/components/pc/RepairsWork.vue +870 -870
- package/src/components/pc/ReturnRecord.vue +126 -126
- package/src/components/pc/RoleSelector.vue +145 -145
- package/src/components/pc/RoleSelectorDep.vue +158 -158
- package/src/components/pc/SeatInfo.vue +207 -207
- package/src/components/pc/Seekwork.vue +313 -313
- package/src/components/pc/ServerAppendixInfo.vue +52 -52
- package/src/components/pc/ServiceBack.vue +49 -49
- package/src/components/pc/ServiceDetails.vue +53 -53
- package/src/components/pc/ServiceDetailsNew.vue +53 -53
- package/src/components/pc/SiteBack.vue +93 -93
- package/src/components/pc/SiteCase.vue +87 -87
- package/src/components/pc/SiteSend.vue +318 -318
- package/src/components/pc/StandSend.vue +600 -600
- package/src/components/pc/StandServer.vue +25 -25
- package/src/components/pc/StandWork.vue +91 -91
- package/src/components/pc/StandWorkNew.vue +91 -91
- package/src/components/pc/TelFindUser.vue +304 -304
- package/src/components/pc/TelListener.vue +174 -174
- package/src/components/pc/TelLossList.vue +264 -264
- package/src/components/pc/TelMaterSelect.vue +225 -225
- package/src/components/pc/TelUserMaterSend.vue +171 -171
- package/src/components/pc/TeleInfo.vue +140 -140
- package/src/components/pc/TeleList.vue +99 -99
- package/src/components/pc/TeleOperKl.vue +91 -91
- package/src/components/pc/TemplateMessage.vue +92 -92
- package/src/components/pc/TextControl.vue +113 -113
- package/src/components/pc/TextInfoRight.vue +84 -84
- package/src/components/pc/TextList.vue +45 -45
- package/src/components/pc/TextListLeft.vue +156 -156
- package/src/components/pc/TextServer.vue +154 -154
- package/src/components/pc/TextService.vue +849 -849
- package/src/components/pc/UserDefinedMessage.vue +90 -90
- package/src/components/pc/UserDefinedMessageNew.vue +121 -121
- package/src/components/pc/UserOperate.vue +48 -48
- package/src/components/pc/VideoPlayer.vue +73 -73
- package/src/components/pc/VisitInfo.vue +311 -311
- package/src/components/pc/VoiceServer.vue +208 -208
- package/src/components/pc/WorkCenter.vue +105 -105
- package/src/components/pc/WorkCenterContent.vue +100 -100
- package/src/components/pc/WorkCenterList.vue +292 -292
- package/src/components/pc/WorkFind.vue +128 -128
- package/src/components/pc/WorkHistory.vue +560 -560
- package/src/components/pc/WorkList.vue +744 -744
- package/src/components/pc/WorkListAll.vue +630 -630
- package/src/components/pc/WorkListAllNew.vue +715 -715
- package/src/components/pc/WorkListNew.vue +722 -722
- package/src/components/pc/WorkMsg.vue +105 -105
- package/src/components/pc/analysis/AnalysisMain.vue +423 -423
- package/src/components/pc/analysis/StateStatistics.vue +292 -292
- package/src/components/pc/analysis/TelephoneAnaly.vue +104 -104
- package/src/components/pc/analysis/TelephoneType.vue +270 -270
- package/src/components/pc/config/DefaultPrint.js +7 -7
- package/src/components/pc/dataManager/KlCatalog.vue +293 -293
- package/src/components/pc/dataManager/KlContent.vue +193 -193
- package/src/components/pc/dataManager/Knowledge.vue +21 -21
- package/src/components/pc/dataManager/Materials.vue +553 -553
- package/src/components/pc/dataManager/OutletsList.vue +85 -85
- package/src/components/pc/dataManager/SafeEditor.vue +91 -91
- package/src/components/pc/dataManager/SafeList.vue +77 -77
- package/src/components/pc/dataManager/ShowMaterials.vue +159 -159
- package/src/components/pc/dataManager/StopGasManager.vue +320 -320
- package/src/components/pc/imgmove.vue +192 -192
- package/src/components/pc/olddata/OldWorkList.vue +193 -193
- package/src/components/pc/serviceDeleteOrder.vue +56 -56
- package/src/components/pc/wx/BookingService.vue +407 -407
- package/src/components/pc/wx/CustomMenu.vue +154 -154
- package/src/components/pc/wx/MenuView.vue +249 -249
- package/src/components/pc/wx/MobileView.vue +273 -273
- package/src/components/pc/wx/NewsMaterial.vue +144 -144
- package/src/components/pc/wx/SelectMaterial.vue +100 -100
- package/src/components/pc/wx/TelOutletsManager.vue +186 -186
- package/src/components/pos/Init.vue +213 -213
- package/src/components/pos/Main.vue +123 -123
- package/src/components/pos/Plugin/AndroidPlugin.js +148 -148
- package/src/components/pos/Plugin/PosUtil.js +315 -315
- package/src/components/pos/aotePos.js +55 -55
- package/src/components/pos/bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/components/pos/bootstrap/less/.csscomb.json +304 -304
- package/src/components/pos/bootstrap/less/.csslintrc +19 -19
- package/src/components/pos/bootstrap/less/alerts.less +73 -73
- package/src/components/pos/bootstrap/less/badges.less +66 -66
- package/src/components/pos/bootstrap/less/bootstrap.less +56 -56
- package/src/components/pos/bootstrap/less/breadcrumbs.less +26 -26
- package/src/components/pos/bootstrap/less/button-groups.less +247 -247
- package/src/components/pos/bootstrap/less/buttons.less +172 -172
- package/src/components/pos/bootstrap/less/carousel.less +269 -269
- package/src/components/pos/bootstrap/less/close.less +34 -34
- package/src/components/pos/bootstrap/less/code.less +69 -69
- package/src/components/pos/bootstrap/less/component-animations.less +33 -33
- package/src/components/pos/bootstrap/less/dropdowns.less +216 -216
- package/src/components/pos/bootstrap/less/forms.less +626 -626
- package/src/components/pos/bootstrap/less/glyphicons.less +305 -305
- package/src/components/pos/bootstrap/less/grid.less +84 -84
- package/src/components/pos/bootstrap/less/input-groups.less +167 -167
- package/src/components/pos/bootstrap/less/jumbotron.less +52 -52
- package/src/components/pos/bootstrap/less/labels.less +64 -64
- package/src/components/pos/bootstrap/less/list-group.less +141 -141
- package/src/components/pos/bootstrap/less/media.less +66 -66
- package/src/components/pos/bootstrap/less/mixins/alerts.less +14 -14
- package/src/components/pos/bootstrap/less/mixins/background-variant.less +9 -9
- package/src/components/pos/bootstrap/less/mixins/border-radius.less +18 -18
- package/src/components/pos/bootstrap/less/mixins/buttons.less +69 -69
- package/src/components/pos/bootstrap/less/mixins/center-block.less +7 -7
- package/src/components/pos/bootstrap/less/mixins/clearfix.less +22 -22
- package/src/components/pos/bootstrap/less/mixins/forms.less +90 -90
- package/src/components/pos/bootstrap/less/mixins/gradients.less +59 -59
- package/src/components/pos/bootstrap/less/mixins/grid-framework.less +92 -92
- package/src/components/pos/bootstrap/less/mixins/grid.less +122 -122
- package/src/components/pos/bootstrap/less/mixins/hide-text.less +21 -21
- package/src/components/pos/bootstrap/less/mixins/image.less +33 -33
- package/src/components/pos/bootstrap/less/mixins/labels.less +12 -12
- package/src/components/pos/bootstrap/less/mixins/list-group.less +30 -30
- package/src/components/pos/bootstrap/less/mixins/nav-divider.less +10 -10
- package/src/components/pos/bootstrap/less/mixins/nav-vertical-align.less +9 -9
- package/src/components/pos/bootstrap/less/mixins/opacity.less +8 -8
- package/src/components/pos/bootstrap/less/mixins/pagination.less +24 -24
- package/src/components/pos/bootstrap/less/mixins/panels.less +24 -24
- package/src/components/pos/bootstrap/less/mixins/progress-bar.less +10 -10
- package/src/components/pos/bootstrap/less/mixins/reset-filter.less +8 -8
- package/src/components/pos/bootstrap/less/mixins/reset-text.less +18 -18
- package/src/components/pos/bootstrap/less/mixins/resize.less +6 -6
- package/src/components/pos/bootstrap/less/mixins/responsive-visibility.less +15 -15
- package/src/components/pos/bootstrap/less/mixins/size.less +10 -10
- package/src/components/pos/bootstrap/less/mixins/tab-focus.less +9 -9
- package/src/components/pos/bootstrap/less/mixins/table-row.less +44 -44
- package/src/components/pos/bootstrap/less/mixins/text-emphasis.less +9 -9
- package/src/components/pos/bootstrap/less/mixins/text-overflow.less +8 -8
- package/src/components/pos/bootstrap/less/mixins/vendor-prefixes.less +227 -227
- package/src/components/pos/bootstrap/less/mixins.less +40 -40
- package/src/components/pos/bootstrap/less/modals.less +151 -151
- package/src/components/pos/bootstrap/less/navbar.less +660 -660
- package/src/components/pos/bootstrap/less/navs.less +286 -286
- package/src/components/pos/bootstrap/less/normalize.less +424 -424
- package/src/components/pos/bootstrap/less/pager.less +76 -76
- package/src/components/pos/bootstrap/less/pagination.less +89 -89
- package/src/components/pos/bootstrap/less/panels.less +274 -274
- package/src/components/pos/bootstrap/less/popovers.less +131 -131
- package/src/components/pos/bootstrap/less/print.less +101 -101
- package/src/components/pos/bootstrap/less/progress-bars.less +87 -87
- package/src/components/pos/bootstrap/less/responsive-embed.less +35 -35
- package/src/components/pos/bootstrap/less/responsive-utilities.less +194 -194
- package/src/components/pos/bootstrap/less/scaffolding.less +161 -161
- package/src/components/pos/bootstrap/less/tables.less +262 -262
- package/src/components/pos/bootstrap/less/theme.less +291 -291
- package/src/components/pos/bootstrap/less/thumbnails.less +36 -36
- package/src/components/pos/bootstrap/less/tooltip.less +102 -102
- package/src/components/pos/bootstrap/less/type.less +303 -303
- package/src/components/pos/bootstrap/less/utilities.less +55 -55
- package/src/components/pos/bootstrap/less/variables.less +895 -895
- package/src/components/pos/bootstrap/less/wells.less +29 -29
- package/src/components/pos/charge/card/CardInfo.vue +43 -43
- package/src/components/pos/charge/card/CheckUser.vue +116 -116
- package/src/components/pos/charge/card/ReadCardInter.vue +177 -177
- package/src/components/pos/charge/card/ReadCardToBuy.vue +174 -174
- package/src/components/pos/charge/card/SelectUser.vue +104 -104
- package/src/components/pos/charge/machine/MachineSearch.Vue +124 -124
- package/src/components/pos/charge/sellgas/AdvertPop.vue +70 -70
- package/src/components/pos/charge/sellgas/CardSellGas.vue +361 -361
- package/src/components/pos/charge/sellgas/ChoosePayWay.vue +275 -275
- package/src/components/pos/charge/sellgas/GudingPrice.vue +38 -38
- package/src/components/pos/charge/sellgas/JietiPrice.vue +54 -54
- package/src/components/pos/charge/sellgas/ScanQrcode.vue +171 -171
- package/src/components/pos/charge/sellgas/WriteCard.vue +366 -366
- package/src/components/pos/charge/userinfo/ChangeMeterList.vue +43 -43
- package/src/components/pos/charge/userinfo/FillGasList.vue +43 -43
- package/src/components/pos/charge/userinfo/HistorySellList.vue +90 -90
- package/src/components/pos/charge/userinfo/OtherList.vue +43 -43
- package/src/components/pos/charge/userinfo/SellList.vue +43 -43
- package/src/components/pos/charge/userinfo/TransList.vue +43 -43
- package/src/components/pos/charge/userinfo/UserInfo.vue +176 -176
- package/src/components/pos/charge/userinfo/WritecardInfo.vue +44 -44
- package/src/components/pos/css/bootstrap.less +6757 -6757
- package/src/components/pos/css/style.less +158 -158
- package/src/components/pos/css/style.less.bak +84 -84
- package/src/components/pos/fonts/fontawesome-webfont.svg +2671 -2671
- package/src/components/pos/fonts/glyphicons-halflings-regular.svg +287 -287
- package/src/components/pos/js/bootstrap.js +2377 -2377
- package/src/components/pos/js/bootstrap.min.js +6 -6
- package/src/components/pos/js/jquery.chromatable.js +150 -150
- package/src/components/pos/js/jquery.min.js +5 -5
- package/src/components/pos/js/npm.js +12 -12
- package/src/components/pos/ztprint.js +26 -26
- package/src/components/qinhua/qhonlineChangeMeter.vue +440 -440
- package/src/components/qinhua/qhonlineoperation.vue +227 -227
- package/src/components/reli/ChoosePayWay.vue +179 -179
- package/src/components/reli/HistorySellLists.vue +128 -128
- package/src/components/reli/MachineMain.vue +470 -470
- package/src/components/reli/UserInfo.vue +211 -211
- package/src/components/reli/searchSells.vue +446 -446
- package/src/components/repaircount/RepairDetail.vue +74 -74
- package/src/components/repaircount/RepairPlan.vue +58 -58
- package/src/components/repaircount/SelectRepairPlan.vue +189 -189
- package/src/components/sale/CardMeterCenter.vue +625 -625
- package/src/components/sale/IOTMeterCenter.vue +443 -443
- package/src/components/sale/MachineMeterCenter.vue +591 -591
- package/src/components/sendsingle/CardChangeFill.vue +338 -338
- package/src/components/sendsingle/ChangeSendCard.vue +19 -19
- package/src/components/sendsingle/IotChangeFill.vue +471 -471
- package/src/components/sendsingle/MachineChangeFill.vue +143 -143
- package/src/components/sendsingle/PosMakeGas.vue +342 -342
- package/src/components/sendsingle/QueryTemporaryRepair.vue +226 -226
- package/src/components/sendsingle/TelLotChangeFill.vue +626 -626
- package/src/components/sendsingle/TemporarySingle.vue +480 -480
- package/src/components/sendsingle/ceshi.vue +51 -51
- package/src/components/sendsingle/onlineBuyGas.vue +632 -632
- package/src/components/sendsingle/onlineBuyGasOld.vue +19 -19
- package/src/components/sendsingle/onlineChangeMeter.vue +419 -419
- package/src/components/sendsingle/onlinemakecard.vue +413 -413
- package/src/components/sendsingle/onlineoperation.vue +401 -401
- package/src/components/sendsingle/onlinequeryuser.vue +468 -468
- package/src/components/sendsingle/posMaintainer.vue +277 -277
- package/src/components/shaoguan/DelayReply.vue +60 -60
- package/src/components/shaoguan/FailureEdit.vue +172 -172
- package/src/components/shaoguan/RepairDetailsChange.vue +399 -399
- package/src/components/shaoguan/RepairOrderChange.vue +673 -673
- package/src/components/shaoguan/RepairUserInfoChange.vue +532 -532
- package/src/components/shaoguan/WorkHistory.vue +346 -346
- package/src/components/shaoguan/WorkListAll.vue +521 -521
- package/src/components/shaoguan/config/DefaultPrint.js +7 -7
- package/src/components/telcount/TelByAttendant.vue +118 -118
- package/src/components/telcount/TelByLouQi.vue +113 -113
- package/src/components/telcount/TelByLouQiMingxi.vue +117 -117
- package/src/components/telcount/TelByOrderMan.vue +123 -123
- package/src/components/telcount/TelByWeiXiu.vue +199 -199
- package/src/components/telcount/TelByZhiHuan.vue +109 -109
- package/src/components/telreport/HotlineMonthly.vue +121 -121
- package/src/components/telreport/RepairsDetailsReport.vue +98 -98
- package/src/components/telreport/TableFaultReport.vue +96 -96
- package/src/components/telreport/TelAgentVoiceReport.vue +275 -275
- package/src/components/telreport/TelMan.vue +127 -127
- package/src/components/telreport/TelReport.vue +122 -122
- package/src/components/telreport/TelephoneManReport.vue +121 -121
- package/src/components/telreport/Traffic.vue +94 -94
- package/src/components/telreport/TrafficClassificationReport.vue +134 -134
- package/src/components/telreport/Trafficassess.vue +121 -121
- package/src/components/temp/BusinessMessage.vue +60 -60
- package/src/components/temp/BusinesscheckInfo.vue +82 -82
- package/src/components/temp/CallRecords.vue +86 -86
- package/src/components/temp/ChangemeterInfo.vue +75 -75
- package/src/components/temp/DeviceInfo.vue +80 -80
- package/src/components/temp/DisableInforMation.vue +82 -82
- package/src/components/temp/HandplanInfo.vue +93 -93
- package/src/components/temp/InfoTable.vue +134 -134
- package/src/components/temp/InstructInfo.vue +86 -86
- package/src/components/temp/Main.vue +375 -375
- package/src/components/temp/MetereadInfo.vue +80 -80
- package/src/components/temp/MetterInfo.vue +92 -92
- package/src/components/temp/OldRepairList.vue +100 -100
- package/src/components/temp/ParamManager/ParamPage.vue +285 -285
- package/src/components/temp/ParamManager/SinglePage.vue +161 -161
- package/src/components/temp/RepairList.vue +125 -125
- package/src/components/temp/SecurityMessage.vue +64 -64
- package/src/components/temp/SecuritycheckInfo.vue +87 -87
- package/src/components/temp/SellInfo.vue +153 -153
- package/src/components/temp/TelList.vue +99 -99
- package/src/components/temp/rightview/CardList.vue +287 -287
- package/src/components/temp/rightview/RecordCancel.vue +103 -103
- package/src/components/temp/rightview/carddetail/AddUserDetail.vue +65 -65
- package/src/components/temp/rightview/carddetail/BankDKDetail.vue +75 -75
- package/src/components/temp/rightview/carddetail/BankPay.vue +75 -75
- package/src/components/temp/rightview/carddetail/CancellationDetail.vue +58 -58
- package/src/components/temp/rightview/carddetail/CardMeterCenterDetail.vue +58 -58
- package/src/components/temp/rightview/carddetail/CardOverUserDetail.vue +62 -62
- package/src/components/temp/rightview/carddetail/ChangeMeterDetail.vue +70 -70
- package/src/components/temp/rightview/carddetail/OtherChargeDetail.vue +56 -56
- package/src/components/temp/rightview/carddetail/RefundDetail.vue +63 -63
- package/src/components/temp/rightview/carddetail/ReissueBill.vue +165 -165
- package/src/components/temp/rightview/carddetail/SortingQuery.vue +295 -295
- package/src/components/temp/rightview/carddetail/UserChangeDetail.vue +77 -77
- package/src/components/temp/rightview/carddetail/WeChatPay.vue +75 -75
- package/src/components/temp/server/ChangeDeclare.vue +45 -45
- package/src/components/temp/server/LoadData.vue +60 -60
- package/src/components/temp/server/Login.vue +401 -401
- package/src/components/temp/server/ModifyPw.vue +143 -143
- package/src/components/tongcheng/DistributeWork.vue +129 -129
- package/src/components/tongcheng/InfoTable.vue +55 -55
- package/src/components/tongcheng/MetterInfo.vue +90 -90
- package/src/components/tongcheng/RepairsWork.vue +788 -788
- package/src/components/tongcheng/SellInfo.vue +152 -152
- package/src/components/tongcheng/StandServer.vue +24 -24
- package/src/components/tongcheng/UserOperate.vue +43 -43
- package/src/components/tongcheng/VoiceServer.vue +136 -136
- package/src/components/tongcheng/WorkListAll.vue +535 -535
- package/src/components/weinan/ComplainMsg.vue +141 -141
- package/src/components/weinan/ComplainWork.vue +205 -205
- package/src/components/weinan/Console.vue +418 -418
- package/src/components/weinan/DistributeWork.vue +138 -138
- package/src/components/weinan/ExportExcel.vue +204 -204
- package/src/components/weinan/FailureEdit.vue +182 -182
- package/src/components/weinan/InfoTable.vue +67 -67
- package/src/components/weinan/RecordList.vue +299 -299
- package/src/components/weinan/RepairFirstV.vue +547 -547
- package/src/components/weinan/RepairInfo.vue +163 -163
- package/src/components/weinan/RepairListTel.vue +96 -96
- package/src/components/weinan/RepairOrderV.vue +1447 -1447
- package/src/components/weinan/RepairUserInfo.vue +533 -533
- package/src/components/weinan/RepairsWork.vue +806 -806
- package/src/components/weinan/Seekwork.vue +178 -178
- package/src/components/weinan/SiteChange.vue +228 -228
- package/src/components/weinan/SiteSend.vue +228 -228
- package/src/components/weinan/SiteSendWeixiu.vue +268 -268
- package/src/components/weinan/StandWorkWeixiu.vue +91 -91
- package/src/components/weinan/TelByAttendant.vue +110 -110
- package/src/components/weinan/TelFindUser.vue +241 -241
- package/src/components/weinan/WorkList.vue +726 -726
- package/src/components/weinan/WorkListAll.vue +952 -952
- package/src/components/weinan/WorkListWeixiu.vue +608 -608
- package/src/components/workOrderApplication/OrderWorkDetail.vue +796 -796
- package/src/components/workOrderApplication/orderApplicationManage.vue +98 -98
- package/src/components/workOrderApplication/orderApply.vue +57 -57
- package/src/components/workOrderApplication/orderTable.vue +214 -214
- package/src/components/workOrderApplication/orderWork.vue +114 -114
- package/src/components/workorder/AfTabset.vue +125 -125
- package/src/components/workorder/AndroidStopGasManager.vue +270 -270
- package/src/components/workorder/AppInstallationMaterial.vue +613 -613
- package/src/components/workorder/ChangeMeter.vue +546 -546
- package/src/components/workorder/ChangeMeterList.vue +236 -236
- package/src/components/workorder/ChangeMeterPage.vue +506 -506
- package/src/components/workorder/CompletedInstall.vue +214 -214
- package/src/components/workorder/CompletedRepair.vue +321 -321
- package/src/components/workorder/CookingUtensils.vue +134 -134
- package/src/components/workorder/DelayApply.vue +105 -105
- package/src/components/workorder/DeviceService.vue +133 -133
- package/src/components/workorder/DoorService.vue +355 -355
- package/src/components/workorder/FaultAll.vue +852 -852
- package/src/components/workorder/FirstGasCheck.vue +310 -310
- package/src/components/workorder/InputSelect.vue +110 -110
- package/src/components/workorder/InstallFirst.vue +517 -517
- package/src/components/workorder/InstallUpLoad.vue +111 -111
- package/src/components/workorder/MaterialSum.vue +238 -238
- package/src/components/workorder/MonitorMSend.vue +202 -202
- package/src/components/workorder/Othercharge.vue +477 -477
- package/src/components/workorder/Outlay.vue +237 -237
- package/src/components/workorder/PhoneGroupResend.vue +88 -88
- package/src/components/workorder/PhoneStandWork.vue +355 -355
- package/src/components/workorder/PhoneUpDetail.vue +1041 -1041
- package/src/components/workorder/PhoneUpUserinfo.vue +1041 -1041
- package/src/components/workorder/PhotoWrite.vue +116 -116
- package/src/components/workorder/Pipeline.vue +497 -497
- package/src/components/workorder/QueryTemporaryRepair.vue +220 -220
- package/src/components/workorder/ReadCardPage.vue +217 -217
- package/src/components/workorder/RepairDetails.vue +620 -620
- package/src/components/workorder/RepairDetails22.vue +128 -128
- package/src/components/workorder/RepairFirst.vue +170 -170
- package/src/components/workorder/RepairFirstOld.vue +410 -410
- package/src/components/workorder/RepairFirstV.vue +673 -673
- package/src/components/workorder/RepairFirstVnew.vue +542 -542
- package/src/components/workorder/RepairInfo.vue +166 -166
- package/src/components/workorder/RepairMatterInfo.vue +186 -186
- package/src/components/workorder/RepairOrder.vue +688 -688
- package/src/components/workorder/RepairOrderV.vue +864 -864
- package/src/components/workorder/RepairOrderVnew.vue +868 -868
- package/src/components/workorder/RepairPaperAndroid.vue +351 -351
- package/src/components/workorder/RepairSend.vue +264 -264
- package/src/components/workorder/RepairUserInfo.vue +532 -532
- package/src/components/workorder/Repairpage.vue +100 -100
- package/src/components/workorder/RepairsVisit.vue +319 -319
- package/src/components/workorder/SafeCheckService.vue +355 -355
- package/src/components/workorder/ServiceOnlineQuery.vue +306 -306
- package/src/components/workorder/SubstitFirstV.vue +146 -146
- package/src/components/workorder/SubstitutionPage.vue +100 -100
- package/src/components/workorder/TelChangeMatter.vue +231 -231
- package/src/components/workorder/TemporarySingle.vue +542 -542
- package/src/components/workorder/TroubleRemoval.vue +419 -419
- package/src/components/workorder/UpLoad.vue +111 -111
- package/src/components/workorder/ZHihuanFirst.vue +546 -546
- package/src/components/workorder/ZhiCompletedRepair.vue +217 -217
- package/src/components/workorder/ZhiUpLoad.vue +136 -136
- package/src/expandcss.less +620 -620
- package/src/filiale/fugu/pc/ComplainWork.vue +206 -206
- package/src/filiale/fugu/pc/FailureEdit.vue +183 -183
- package/src/filiale/fugu/pc/RepairsWork.vue +793 -793
- package/src/filiale/fugu/pc/Seekwork.vue +182 -182
- package/src/filiale/fugu/telephone.js +16 -16
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/android/CompletedRepair.vue +210 -210
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/android/FaultAll.vue +861 -861
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/android/Materials.vue +410 -410
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/android/RepairFirstVnew.vue +580 -580
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/android/RepairOrderVnew.vue +890 -890
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/Auxfunc.vue +109 -109
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/CallRcords.vue +109 -109
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/ChangemeterInfo.vue +87 -87
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/ComplainWork.vue +348 -348
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/DeviceInfo.vue +82 -82
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/DisableInforMation.vue +82 -82
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/FailureEdit.vue +198 -198
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/HandplanInfo.vue +78 -78
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/InfoTable.vue +134 -134
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/InstructInfo.vue +86 -86
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/LineReport.vue +215 -215
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/MaterialWorkOrder/MaterialWork.vue +400 -400
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/MaterialWorkOrder/MaterialWorkOrderManage.vue +63 -63
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/MaterialWorkOrder/WorkOrderMaterial.vue +381 -381
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/MetereadInfo.vue +82 -82
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/MetterInfo.vue +92 -92
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/NewRepairPaper.vue +415 -415
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/ProblemList.vue +170 -170
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/QueryVisitHistory.vue +196 -196
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/RecordListLeft.vue +265 -265
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/ReminderOrder.vue +50 -50
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/RepairList.vue +102 -102
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/RepairsWork.vue +946 -946
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/SecuritycheckInfo.vue +128 -128
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/Seekwork.vue +352 -352
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/SellInfo.vue +158 -158
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/TableReport.vue +160 -160
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/TelFindUser.vue +229 -229
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/TelLossList.vue +145 -145
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/TelePhoneUpload.vue +279 -279
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/TextServer.vue +168 -168
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/VoiceServer.vue +216 -216
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/WorkCenter.vue +104 -104
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/WorkHistory.vue +576 -576
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/pc/WorkListAllNew.vue +868 -868
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/telephone.js +115 -115
- package/src/filiale/furuike(/345/274/203/347/224/250-/347/224/250/345/257/214/347/221/236/345/205/213/345/210/206/346/224/257)/telephoneAndroid.js +23 -23
- package/src/filiale/gehua/pc/Console.vue +676 -676
- package/src/filiale/gehua/pc/TelAgentVoiceReport.vue +285 -285
- package/src/filiale/gehua/pc/TelFindUser.vue +214 -214
- package/src/filiale/gehua/telephone.js +16 -16
- package/src/filiale/gehua/telephoneAndroid.js +9 -9
- package/src/filiale/gongyi/android/RepairDetails.vue +542 -542
- package/src/filiale/gongyi/android/RepairFirstV.vue +537 -537
- package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
- package/src/filiale/gongyi/pc/WorkListAll.vue +632 -632
- package/src/filiale/gongyi/telephone.js +13 -13
- package/src/filiale/gongyi/telephoneAndroid.js +15 -15
- package/src/filiale/guangxi/android/FaultAll.vue +896 -896
- package/src/filiale/guangxi/telephoneAndroid.js +13 -13
- package/src/filiale/hanzhong/PagedList.js +248 -248
- package/src/filiale/hanzhong/android/Outlay.vue +265 -265
- package/src/filiale/hanzhong/android/RepairInfo.vue +167 -167
- package/src/filiale/hanzhong/hzSelectUtil.js +84 -84
- package/src/filiale/hanzhong/md5.js +266 -266
- package/src/filiale/hanzhong/pc/AnalysisMain.vue +477 -477
- package/src/filiale/hanzhong/pc/Console.vue +884 -884
- package/src/filiale/hanzhong/pc/DistributeWork.vue +420 -420
- package/src/filiale/hanzhong/pc/FailureEdit.vue +195 -195
- package/src/filiale/hanzhong/pc/RecordInfoRight.vue +84 -84
- package/src/filiale/hanzhong/pc/RecordList.vue +53 -53
- package/src/filiale/hanzhong/pc/RecordListLeft.vue +196 -196
- package/src/filiale/hanzhong/pc/Seekwork.vue +318 -318
- package/src/filiale/hanzhong/pc/StateStatistics.vue +292 -292
- package/src/filiale/hanzhong/pc/TelFindUser.vue +224 -224
- package/src/filiale/hanzhong/pc/TelLossList.vue +137 -137
- package/src/filiale/hanzhong/pc/TelephoneAnaly.vue +104 -104
- package/src/filiale/hanzhong/pc/TelephoneType.vue +269 -269
- package/src/filiale/hanzhong/pc/TextServer.vue +157 -157
- package/src/filiale/hanzhong/pc/VoiceServer.vue +208 -208
- package/src/filiale/hanzhong/pc/message/AllUser.vue +615 -615
- package/src/filiale/hanzhong/pc/message/AllUserNew.vue +638 -638
- package/src/filiale/hanzhong/pc/message/ArrearsList.vue +397 -397
- package/src/filiale/hanzhong/pc/message/MessageList.vue +635 -635
- package/src/filiale/hanzhong/pc/message/MessageManage.vue +136 -136
- package/src/filiale/hanzhong/pc/message/MessageManageList.vue +127 -127
- package/src/filiale/hanzhong/pc/message/MessageManageNew.vue +121 -121
- package/src/filiale/hanzhong/pc/message/TemplateMessage.vue +92 -92
- package/src/filiale/hanzhong/pc/message/UserDefinedMessage.vue +90 -90
- package/src/filiale/hanzhong/pc/message/UserDefinedMessageNew.vue +121 -121
- package/src/filiale/hanzhong/telephone.js +48 -48
- package/src/filiale/hanzhong/telephoneAndroid.js +15 -15
- package/src/filiale/jiaocheng/android/createQRcode.vue +204 -204
- package/src/filiale/jiaocheng/android/onlineBuyGas.vue +637 -637
- package/src/filiale/jiaocheng/telephone.js +8 -8
- package/src/filiale/jiaocheng/telephoneAndroid.js +15 -15
- package/src/filiale/kelai/android/AppTakePic.vue +143 -143
- package/src/filiale/kelai/android/Outlay.vue +274 -274
- package/src/filiale/kelai/android/PhoneVentilationLeave.vue +176 -176
- package/src/filiale/kelai/android/RepairFirstV.vue +552 -552
- package/src/filiale/kelai/android/RepairOrderV.vue +1446 -1446
- package/src/filiale/kelai/android/RepairTypeList.vue +170 -170
- package/src/filiale/kelai/android/RepairUserInfo.vue +537 -537
- package/src/filiale/kelai/pc/CallReport/CallReportMainPage-Kelai.vue +612 -612
- package/src/filiale/kelai/pc/CallReport/CumulativeCalls.vue +128 -128
- package/src/filiale/kelai/pc/CallReport/IncomingTimedata.vue +69 -69
- package/src/filiale/kelai/pc/CallReport/Incomingcallvolume.vue +82 -82
- package/src/filiale/kelai/pc/CallReport/SeatStatus.vue +60 -60
- package/src/filiale/kelai/pc/CallReport/Time.vue +107 -107
- package/src/filiale/kelai/pc/CallReport/WorkorderTypesum.vue +76 -76
- package/src/filiale/kelai/pc/CallReport/timeRunning.vue +66 -66
- package/src/filiale/kelai/pc/KeLaiMaintenanceReport.vue +297 -297
- package/src/filiale/kelai/pc/RecordListLeft.vue +188 -188
- package/src/filiale/kelai/pc/Seekwork.vue +308 -308
- package/src/filiale/kelai/pc/TelAgentVoiceReport.vue +276 -276
- package/src/filiale/kelai/pc/TelFindUser.vue +214 -214
- package/src/filiale/kelai/pc/TelLossList.vue +154 -154
- package/src/filiale/kelai/pc/TextServer.vue +157 -157
- package/src/filiale/kelai/pc/Trafficassess.vue +159 -159
- package/src/filiale/kelai/pc/VisitInfo.vue +268 -268
- package/src/filiale/kelai/pc/VoiceServer.vue +227 -227
- package/src/filiale/kelai/pc/WorkCenterList.vue +315 -315
- package/src/filiale/kelai/pc/WorkListAllNew.vue +717 -717
- package/src/filiale/kelai/pc/serviceDeleteOrder.vue +55 -55
- package/src/filiale/kelai/telephone.js +40 -40
- package/src/filiale/kelai/telephoneAndroid.js +19 -19
- package/src/filiale/liaoyuan/android/FaultAll.vue +737 -737
- package/src/filiale/liaoyuan/android/RepairDetails.vue +493 -493
- package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
- package/src/filiale/liaoyuan/telephoneAndroid.js +13 -13
- package/src/filiale/lixian/onlineChangeMeter.vue +481 -481
- package/src/filiale/lixian/onlineoperation.vue +606 -606
- package/src/filiale/lixian/onlinequeryuser.vue +509 -509
- package/src/filiale/lixian/telephoneAndroid.js +23 -23
- package/src/filiale/meihekou/android/Othercharge.vue +443 -443
- package/src/filiale/meihekou/android/createQRcode.vue +192 -192
- package/src/filiale/meihekou/android/onlineBuyGas.vue +793 -793
- package/src/filiale/meihekou/telephone.js +13 -13
- package/src/filiale/meihekou/telephoneAndroid.js +18 -18
- package/src/filiale/qianneng/android/AppInstallationMaterial.vue +1067 -1067
- package/src/filiale/qianneng/android/Examine.vue +513 -513
- package/src/filiale/qianneng/android/FaultAll.vue +883 -883
- package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
- package/src/filiale/qianneng/android/PhoneStandWork.vue +413 -413
- package/src/filiale/qianneng/android/QueryTemporaryRepair.vue +243 -243
- package/src/filiale/qianneng/android/RepairDetails.vue +666 -666
- package/src/filiale/qianneng/android/RepairFirstV.vue +615 -615
- package/src/filiale/qianneng/android/RepairInfo.vue +147 -147
- package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
- package/src/filiale/qianneng/android/RepairUserInfo.vue +542 -542
- package/src/filiale/qianneng/android/TemporarySingle.vue +537 -537
- package/src/filiale/qianneng/android/chargesList.vue +161 -161
- package/src/filiale/qianneng/pc/ComplainWork.vue +324 -324
- package/src/filiale/qianneng/pc/DistributeWork.vue +182 -182
- package/src/filiale/qianneng/pc/FailureEdit.vue +161 -161
- package/src/filiale/qianneng/pc/Indoorinstallation.vue +832 -832
- package/src/filiale/qianneng/pc/MaterialDetailed.vue +260 -260
- package/src/filiale/qianneng/pc/MaterialStatistics.vue +144 -144
- package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
- package/src/filiale/qianneng/pc/Outdoorinstallation.vue +736 -736
- package/src/filiale/qianneng/pc/RepairsWork.vue +992 -992
- package/src/filiale/qianneng/pc/Seekwork.vue +308 -308
- package/src/filiale/qianneng/pc/WorkHistory.vue +562 -562
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +757 -757
- package/src/filiale/qianneng/pc/changetable.vue +273 -273
- package/src/filiale/qianneng/telephone.js +22 -22
- package/src/filiale/qianneng/telephoneAndroid.js +22 -22
- package/src/filiale/rizhao/android/FaultAll.vue +903 -903
- package/src/filiale/rizhao/android/Othercharge.vue +423 -423
- package/src/filiale/rizhao/android/RepairFirstV.vue +525 -525
- package/src/filiale/rizhao/android/RepairInfo.vue +172 -172
- package/src/filiale/rizhao/android/RepairOrderV.vue +1415 -1415
- package/src/filiale/rizhao/pc/AnalysisMain.vue +355 -355
- package/src/filiale/rizhao/pc/CallRecords.vue +89 -89
- package/src/filiale/rizhao/pc/ChangemeterInfo.vue +87 -87
- package/src/filiale/rizhao/pc/ComplainWork.vue +357 -357
- package/src/filiale/rizhao/pc/Console.vue +456 -456
- package/src/filiale/rizhao/pc/DispatchMan.vue +100 -100
- package/src/filiale/rizhao/pc/DispatchWork.vue +100 -100
- package/src/filiale/rizhao/pc/DistributeWork.vue +188 -188
- package/src/filiale/rizhao/pc/FailureEdit.vue +183 -183
- package/src/filiale/rizhao/pc/FailureEditFire.vue +169 -169
- package/src/filiale/rizhao/pc/FailureEditRepair.vue +174 -174
- package/src/filiale/rizhao/pc/IgnitionVentilation.vue +889 -889
- package/src/filiale/rizhao/pc/NewRepairPaper.vue +377 -377
- package/src/filiale/rizhao/pc/RecordListLeft.vue +189 -189
- package/src/filiale/rizhao/pc/ReminderOrder.vue +51 -51
- package/src/filiale/rizhao/pc/RepairList.vue +125 -125
- package/src/filiale/rizhao/pc/RepairsWork.vue +935 -935
- package/src/filiale/rizhao/pc/Seekwork.vue +339 -339
- package/src/filiale/rizhao/pc/SiteSend.vue +258 -258
- package/src/filiale/rizhao/pc/StateStatistics.vue +292 -292
- package/src/filiale/rizhao/pc/TelFindUser.vue +243 -243
- package/src/filiale/rizhao/pc/TelMan.vue +133 -133
- package/src/filiale/rizhao/pc/TeleInfo.vue +142 -142
- package/src/filiale/rizhao/pc/TelephoneAnaly.vue +72 -72
- package/src/filiale/rizhao/pc/TelephoneType.vue +272 -272
- package/src/filiale/rizhao/pc/Traffic.vue +91 -91
- package/src/filiale/rizhao/pc/UserOperate.vue +49 -49
- package/src/filiale/rizhao/pc/VoiceServer.vue +219 -219
- package/src/filiale/rizhao/pc/WorkCenterList.vue +294 -294
- package/src/filiale/rizhao/pc/WorkHistory.vue +541 -541
- package/src/filiale/rizhao/pc/WorkList.vue +783 -783
- package/src/filiale/rizhao/pc/WorkListAllNew.vue +679 -679
- package/src/filiale/rizhao/pc/WxBaobiaoService.vue +134 -134
- package/src/filiale/rizhao/telephone.js +58 -58
- package/src/filiale/rizhao/telephoneAndroid.js +16 -16
- package/src/filiale/rongcheng/CliWorkListAll.vue +701 -701
- package/src/filiale/rongcheng/FaultAll.vue +713 -713
- package/src/filiale/rongcheng/RepairFirstV.vue +418 -418
- package/src/filiale/rongcheng/RepairOrderV.vue +1445 -1445
- package/src/filiale/rongcheng/RepairUserInfo.vue +539 -539
- package/src/filiale/rongcheng/ServiceDetails.vue +53 -53
- package/src/filiale/rongcheng/WorkListAll.vue +727 -727
- package/src/filiale/rongcheng/batchPrintSafeCheckOrder.vue +303 -303
- package/src/filiale/rongcheng/checkmsgZG.vue +243 -243
- package/src/filiale/rongcheng/onlineBuyGas.vue +799 -799
- package/src/filiale/rongcheng/onlineoperation.vue +383 -383
- package/src/filiale/rongcheng/onlinequeryuser.vue +460 -460
- package/src/filiale/rongcheng/telephone.js +19 -19
- package/src/filiale/rongcheng/telephoneAndroid.js +19 -19
- package/src/filiale/shanxian/android/RepairFirstV.vue +642 -642
- package/src/filiale/shanxian/pc/RepairsWork.vue +826 -826
- package/src/filiale/shanxian/pc/TelFindUser.vue +310 -310
- package/src/filiale/shanxian/pc/WorkList.vue +823 -823
- package/src/filiale/shanxian/telephone.js +14 -14
- package/src/filiale/shanxian/telephoneAndroid.js +13 -13
- package/src/filiale/shaoguan/pc/WorkCenterList.vue +326 -326
- package/src/filiale/shaoguan/pc/WorkListAllNew.vue +683 -683
- package/src/filiale/shaoguan/telephone.js +14 -14
- package/src/filiale/shexian/android/AddMyTask.vue +361 -361
- package/src/filiale/shexian/android/CompletedRepair.vue +280 -280
- package/src/filiale/shexian/android/FaultAll.vue +847 -847
- package/src/filiale/shexian/android/Outlay.vue +266 -266
- package/src/filiale/shexian/android/RepairFirstV.vue +780 -780
- package/src/filiale/shexian/android/RepairInfo.vue +183 -183
- package/src/filiale/shexian/android/RepairOrderV.vue +732 -732
- package/src/filiale/shexian/pc/NewRepairPaper.vue +374 -374
- package/src/filiale/shexian/pc/QueryVisitHistory.vue +237 -237
- package/src/filiale/shexian/pc/TelAgentVoiceReport.vue +271 -271
- package/src/filiale/shexian/pc/TelByOrderMan.vue +109 -109
- package/src/filiale/shexian/pc/TelByOrderManCount.vue +124 -124
- package/src/filiale/shexian/pc/TelByRepairType.vue +111 -111
- package/src/filiale/shexian/pc/WorkList.vue +785 -785
- package/src/filiale/shexian/pc/WorkListAllNew.vue +735 -735
- package/src/filiale/shexian/telephone.js +21 -21
- package/src/filiale/shexian/telephoneAndroid.js +32 -32
- package/src/filiale/shimen/pc/ChangemeterInfo.vue +108 -108
- package/src/filiale/shimen/pc/ComplainWork.vue +297 -297
- package/src/filiale/shimen/pc/DistributeWork.vue +173 -173
- package/src/filiale/shimen/pc/InfoTable.vue +122 -122
- package/src/filiale/shimen/pc/RepairList.vue +109 -109
- package/src/filiale/shimen/pc/RepairsWork.vue +803 -803
- package/src/filiale/shimen/pc/Seekwork.vue +307 -307
- package/src/filiale/shimen/pc/SellInfo.vue +87 -87
- package/src/filiale/shimen/pc/WorkListAllNew.vue +680 -680
- package/src/filiale/shimen/telephone.js +23 -23
- package/src/filiale/tianke/android/FaultAll.vue +854 -854
- package/src/filiale/tianke/android/RepairFirstV.vue +614 -614
- package/src/filiale/tianke/android.js +12 -12
- package/src/filiale/tianke/pc/DistributeWork.vue +180 -180
- package/src/filiale/tianke/pc/IgnitionVentilationWork.vue +801 -801
- package/src/filiale/tianke/pc/NewRepairPaper.vue +370 -370
- package/src/filiale/tianke/pc/RepairsWork.vue +794 -794
- package/src/filiale/tianke/pc/WorkList.vue +769 -769
- package/src/filiale/tianke/telephone.js +17 -17
- package/src/filiale/tianke/telephoneAndroid.js +13 -13
- package/src/filiale/tongchuan/android/AndroidStopGasManager.vue +321 -321
- package/src/filiale/tongchuan/android/CompletedRepair.vue +211 -211
- package/src/filiale/tongchuan/android/PhoneStandWork.vue +409 -409
- package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1005 -1005
- package/src/filiale/tongchuan/android/RepairDetails.vue +623 -623
- package/src/filiale/tongchuan/android/RepairFirstV.vue +646 -646
- package/src/filiale/tongchuan/android/RepairInfo.vue +172 -172
- package/src/filiale/tongchuan/android/RepairOrderV.vue +1446 -1446
- package/src/filiale/tongchuan/android/TicketDetails.vue +411 -411
- package/src/filiale/tongchuan/pc/AnalysisMain.vue +355 -355
- package/src/filiale/tongchuan/pc/CallRecords.vue +96 -96
- package/src/filiale/tongchuan/pc/CheckWork.vue +289 -289
- package/src/filiale/tongchuan/pc/ComplainWork.vue +324 -324
- package/src/filiale/tongchuan/pc/DepRepairManCount.vue +148 -148
- package/src/filiale/tongchuan/pc/DistributeWork.vue +179 -179
- package/src/filiale/tongchuan/pc/ExportExcel.vue +204 -204
- package/src/filiale/tongchuan/pc/HiddenSituationWeixiu.vue +115 -115
- package/src/filiale/tongchuan/pc/QueryVisitHistory.vue +236 -236
- package/src/filiale/tongchuan/pc/RecordListLeft.vue +216 -216
- package/src/filiale/tongchuan/pc/RepairList.vue +102 -102
- package/src/filiale/tongchuan/pc/RepairWorkReport.vue +133 -133
- package/src/filiale/tongchuan/pc/RepairsWork.vue +844 -844
- package/src/filiale/tongchuan/pc/SeatInfo.vue +325 -325
- package/src/filiale/tongchuan/pc/Seekwork.vue +307 -307
- package/src/filiale/tongchuan/pc/ServiceDetails.vue +112 -112
- package/src/filiale/tongchuan/pc/StateStatistics.vue +292 -292
- package/src/filiale/tongchuan/pc/TelFindUser.vue +278 -278
- package/src/filiale/tongchuan/pc/TelMan.vue +142 -142
- package/src/filiale/tongchuan/pc/TelephoneAnaly.vue +102 -102
- package/src/filiale/tongchuan/pc/TelephoneType.vue +272 -272
- package/src/filiale/tongchuan/pc/Traffic.vue +103 -103
- package/src/filiale/tongchuan/pc/UserWork.vue +813 -813
- package/src/filiale/tongchuan/pc/VisitInfo.vue +305 -305
- package/src/filiale/tongchuan/pc/VisitListWork.vue +251 -251
- package/src/filiale/tongchuan/pc/VoiceServer.vue +218 -218
- package/src/filiale/tongchuan/pc/WorkCenterList.vue +297 -297
- package/src/filiale/tongchuan/pc/WorkHistory.vue +521 -521
- package/src/filiale/tongchuan/pc/WorkList.vue +811 -811
- package/src/filiale/tongchuan/pc/WorkListAll.vue +731 -731
- package/src/filiale/tongchuan/pc/WorkOrderStatistics.vue +294 -294
- package/src/filiale/tongchuan/pc/visitPlanList.vue +342 -342
- package/src/filiale/tongchuan/pc/visitPlanManage.vue +599 -599
- package/src/filiale/tongchuan/pc/visitServiceList.vue +285 -285
- package/src/filiale/tongchuan/telephone.js +52 -52
- package/src/filiale/tongchuan/telephoneAndroid.js +23 -23
- package/src/filiale/v3new/android/FaultAll.vue +809 -809
- package/src/filiale/v3new/android/RepairFirstV.vue +633 -633
- package/src/filiale/v3new/pc/SiteBack.vue +83 -83
- package/src/filiale/v3new/pc/WorkCenter.vue +104 -104
- package/src/filiale/v3new/pc/WorkCenterList.vue +274 -274
- package/src/filiale/v3new/pc/WorkHistory.vue +537 -537
- package/src/filiale/v3new/pc/WorkList.vue +766 -766
- package/src/filiale/v3new/pc/WorkListNew.vue +706 -706
- package/src/filiale/v3new/pc/serviceDeleteOrder.vue +51 -51
- package/src/filiale/v3new/telephone.js +19 -19
- package/src/filiale/v3new/telephoneAndroid.js +15 -15
- package/src/filiale/weinanct/android/AppInstallationMaterial.vue +586 -586
- package/src/filiale/weinanct/android/FaultAll.vue +854 -854
- package/src/filiale/weinanct/android/RepairDetails.vue +508 -508
- package/src/filiale/weinanct/android/RepairFirstV.vue +635 -635
- package/src/filiale/weinanct/android/RepairOrderV.vue +1443 -1443
- package/src/filiale/weinanct/pc/TelFindUser.vue +213 -213
- package/src/filiale/weinanct/pc/VoiceServer.vue +208 -208
- package/src/filiale/weinanct/telephone.js +14 -14
- package/src/filiale/weinanct/telephoneAndroid.js +20 -20
- package/src/filiale/weinanct//350/257/264/346/230/216.txt +1 -1
- package/src/filiale/wenxi/android/FailureShow.vue +61 -61
- package/src/filiale/wenxi/android/FaultAll.vue +710 -710
- package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +964 -964
- package/src/filiale/wenxi/android/RepairFirstV.vue +537 -537
- package/src/filiale/wenxi/android/RepairInfo.vue +252 -252
- package/src/filiale/wenxi/android/RepairOrderV.vue +805 -805
- package/src/filiale/wenxi/android/RepairUserInfo.vue +532 -532
- package/src/filiale/wenxi/android/ZHihuanFirst.vue +522 -522
- package/src/filiale/wenxi/pc/DistributeWork.vue +163 -163
- package/src/filiale/wenxi/pc/FailureEdit.vue +206 -206
- package/src/filiale/wenxi/pc/GasWork.vue +747 -747
- package/src/filiale/wenxi/pc/MetereadInfo.vue +82 -82
- package/src/filiale/wenxi/pc/NewTelAgentVoiceReport.vue +255 -255
- package/src/filiale/wenxi/pc/RecordListLeft.vue +278 -278
- package/src/filiale/wenxi/pc/RepairsWork.vue +853 -853
- package/src/filiale/wenxi/pc/TelAgentVoiceReport.vue +290 -290
- package/src/filiale/wenxi/pc/TelFindUser.vue +306 -306
- package/src/filiale/wenxi/pc/TelLossList.vue +272 -272
- package/src/filiale/wenxi/pc/VoiceServer.vue +214 -214
- package/src/filiale/wenxi/pc/WorkListAll.vue +714 -714
- package/src/filiale/wenxi/telephone.js +22 -22
- package/src/filiale/wenxi/telephoneAndroid.js +20 -20
- package/src/filiale/wuan/Util.js +461 -461
- package/src/filiale/wuan/android/AddMyTask.vue +227 -227
- package/src/filiale/wuan/android/RepairInfo.vue +136 -136
- package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
- package/src/filiale/wuan/android/RepairUserInfo.vue +581 -581
- package/src/filiale/wuan/pc/BatchList.vue +329 -329
- package/src/filiale/wuan/pc/BatchListSanhu.vue +329 -329
- package/src/filiale/wuan/pc/BatchOrdersSanhu.vue +115 -115
- package/src/filiale/wuan/pc/CheckWork.vue +263 -263
- package/src/filiale/wuan/pc/DistributeWork.vue +136 -136
- package/src/filiale/wuan/pc/FailureEdit.vue +174 -174
- package/src/filiale/wuan/pc/GasWorkSanhu.vue +817 -817
- package/src/filiale/wuan/pc/RepairsWork.vue +848 -848
- package/src/filiale/wuan/pc/Seekwork.vue +311 -311
- package/src/filiale/wuan/pc/TelFindUser.vue +229 -229
- package/src/filiale/wuan/pc/WorkListAll.vue +642 -642
- package/src/filiale/wuan/telephone.js +23 -23
- package/src/filiale/wuan/telephoneAndroid.js +17 -17
- package/src/filiale/wuhai/pc/CallRcords.vue +109 -109
- package/src/filiale/wuhai/pc/ComplainWork.vue +324 -324
- package/src/filiale/wuhai/pc/Console.vue +432 -432
- package/src/filiale/wuhai/pc/DistributeWork.vue +173 -173
- package/src/filiale/wuhai/pc/FailureEdit.vue +190 -190
- package/src/filiale/wuhai/pc/InfoTable.vue +135 -135
- package/src/filiale/wuhai/pc/NewRepairPaper.vue +380 -380
- package/src/filiale/wuhai/pc/RecordListLeft.vue +202 -202
- package/src/filiale/wuhai/pc/RepairsWork.vue +811 -811
- package/src/filiale/wuhai/pc/SecuritycheckInfo.vue +92 -92
- package/src/filiale/wuhai/pc/Seekwork.vue +361 -361
- package/src/filiale/wuhai/pc/ServiceRcords.vue +146 -146
- package/src/filiale/wuhai/pc/TelFindUser.vue +256 -256
- package/src/filiale/wuhai/pc/VoiceServer.vue +211 -211
- package/src/filiale/wuhai/pc/WorkCenter.vue +104 -104
- package/src/filiale/wuhai/pc/WorkCenterList.vue +337 -337
- package/src/filiale/wuhai/pc/WorkListAllNew.vue +715 -715
- package/src/filiale/wuhai/pc/serviceDeleteOrder.vue +54 -54
- package/src/filiale/wuhai/telephone.js +35 -35
- package/src/filiale/xinkang/android/FaultAll.vue +840 -840
- package/src/filiale/xinkang/android/RepairFirstV.vue +484 -484
- package/src/filiale/xinkang/telephoneAndroid.js +14 -14
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +1068 -0
- package/src/filiale/yangchunboneng/android/FaultAll.vue +852 -0
- package/src/filiale/yangchunboneng/android/MaterIialOne.vue +123 -0
- package/src/filiale/yangchunboneng/android/Othercharge.vue +475 -475
- package/src/filiale/yangchunboneng/android/TemporarySingle.vue +541 -541
- package/src/filiale/yangchunboneng/android/chargesList.vue +161 -0
- package/src/filiale/yangchunboneng/pc/OtherCharge.vue +416 -416
- package/src/filiale/yangchunboneng/pc/RepairsWork.vue +890 -875
- package/src/filiale/yangchunboneng/pc/WorkList.vue +758 -0
- package/src/filiale/yangchunboneng/pc/WorkListAllNew.vue +744 -0
- package/src/filiale/yangchunboneng/telephone.js +17 -15
- package/src/filiale/yangchunboneng/telephoneAndroid.js +17 -13
- package/src/filiale/yuansheng/android/RepairFirstV.vue +636 -636
- package/src/filiale/yuansheng/android/RepairInfo.vue +166 -166
- package/src/filiale/yuansheng/pc/DistributeWork.vue +177 -177
- package/src/filiale/yuansheng/pc/FailureEdit.vue +188 -188
- package/src/filiale/yuansheng/pc/HandplanInfo.vue +78 -78
- package/src/filiale/yuansheng/pc/MetereadInfo.vue +83 -83
- package/src/filiale/yuansheng/pc/ReservationWork.vue +156 -156
- package/src/filiale/yuansheng/pc/TelFindUser.vue +237 -237
- package/src/filiale/yuansheng/pc/VoiceServer.vue +208 -208
- package/src/filiale/yuansheng/telephone.js +20 -20
- package/src/filiale/yuansheng/telephoneAndroid.js +16 -16
- package/src/filiale/yuncheng/android/LdapHelper.js +75 -75
- package/src/filiale/yuncheng/android/Outlay.vue +201 -201
- package/src/filiale/yuncheng/android/RepairInfo.vue +163 -163
- package/src/filiale/yuncheng/android/RepairOrderV.vue +971 -971
- package/src/filiale/yuncheng/android/RepairUserInfo.vue +390 -390
- package/src/filiale/yuncheng/android/RightTree.vue +218 -218
- package/src/filiale/yuncheng/android/TemporarySingle.vue +522 -522
- package/src/filiale/yuncheng/android/ZHihuanFirst.vue +541 -541
- package/src/filiale/yuncheng/pc/DistributeWork.vue +199 -199
- package/src/filiale/yuncheng/pc/GasWork.vue +773 -773
- package/src/filiale/yuncheng/pc/TelFindUser.vue +322 -322
- package/src/filiale/yuncheng/pc/WorkList.vue +823 -823
- package/src/filiale/yuncheng/pc/WorkListAllNew.vue +809 -809
- package/src/filiale/yuncheng/telephone.js +16 -16
- package/src/filiale/yuncheng/telephoneAndroid.js +19 -19
- package/src/filiale/zhongsheng/android/FailureShow.vue +61 -61
- package/src/filiale/zhongsheng/android/FaultAll.vue +741 -741
- package/src/filiale/zhongsheng/android/RepairFirstV.vue +464 -464
- package/src/filiale/zhongsheng/android/RepairInfo.vue +133 -133
- package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
- package/src/filiale/zhongsheng/android/RepairUserInfo.vue +559 -559
- package/src/filiale/zhongsheng/pc/ComplainWork.vue +299 -299
- package/src/filiale/zhongsheng/pc/Console.vue +432 -432
- package/src/filiale/zhongsheng/pc/DistributeWork.vue +173 -173
- package/src/filiale/zhongsheng/pc/IgnitionVentilationWork.vue +836 -836
- package/src/filiale/zhongsheng/pc/InfoTable.vue +124 -124
- package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
- package/src/filiale/zhongsheng/pc/Seekwork.vue +283 -283
- package/src/filiale/zhongsheng/pc/TelFindUser.vue +216 -216
- package/src/filiale/zhongsheng/pc/WorkList.vue +805 -805
- package/src/filiale/zhongsheng/pc/WorkListAll.vue +628 -628
- package/src/filiale/zhongsheng/telephone.js +23 -23
- package/src/filiale/zhongsheng/telephoneAndroid.js +19 -19
- package/src/filiale/zhongyi/android/FaultAll.vue +854 -854
- package/src/filiale/zhongyi/android/RepairFirstV.vue +614 -614
- package/src/filiale/zhongyi/android.js +12 -12
- package/src/filiale/zhongyi/pc/DistributeWork.vue +180 -180
- package/src/filiale/zhongyi/pc/IgnitionVentilationWork.vue +801 -801
- package/src/filiale/zhongyi/pc/NewRepairPaper.vue +370 -370
- package/src/filiale/zhongyi/pc/RepairsWork.vue +794 -794
- package/src/filiale/zhongyi/pc/WorkList.vue +769 -769
- package/src/filiale/zhongyi/pc/WorkListAllNew.vue +673 -673
- package/src/filiale/zhongyi/telephone.js +18 -18
- package/src/filiale/zhongyi/telephoneAndroid.js +13 -13
- package/src/filiale/zhoukou/android/ChargeBill.vue +201 -201
- package/src/filiale/zhoukou/android/FaultAll.vue +779 -779
- package/src/filiale/zhoukou/android/Othercharge.vue +591 -591
- package/src/filiale/zhoukou/android/OtherchargeZhoukou.vue +574 -574
- package/src/filiale/zhoukou/android/Outlay.vue +236 -236
- package/src/filiale/zhoukou/android/RepairDetails.vue +544 -544
- package/src/filiale/zhoukou/android/RepairFirstV.vue +542 -542
- package/src/filiale/zhoukou/android/RepairInfo.vue +136 -136
- package/src/filiale/zhoukou/android/RepairOrderV.vue +1383 -1383
- package/src/filiale/zhoukou/android/RepairUserInfo.vue +532 -532
- package/src/filiale/zhoukou/android/ZkBill.vue +191 -191
- package/src/filiale/zhoukou/android/createQRcode.vue +256 -256
- package/src/filiale/zhoukou/android/onlineBuyGas.vue +804 -804
- package/src/filiale/zhoukou/android/onlineoperation.vue +416 -416
- package/src/filiale/zhoukou/android/onlinequeryuser.vue +468 -468
- package/src/filiale/zhoukou/pc/ExportExcel.vue +204 -204
- package/src/filiale/zhoukou/pc/NewRepairPaper.vue +366 -366
- package/src/filiale/zhoukou/pc/SiteSend.vue +265 -265
- package/src/filiale/zhoukou/pc/WorkHistory.vue +514 -514
- package/src/filiale/zhoukou/pc/WorkList.vue +653 -653
- package/src/filiale/zhoukou/pc/WorkListAllNew.vue +675 -675
- package/src/filiale/zhoukou/telephone.js +18 -18
- package/src/filiale/zhoukou/telephoneAndroid.js +33 -33
- package/src/index.js +15 -15
- package/src/main.js +22 -22
- package/src/plugins/DataSql.js +569 -569
- package/src/plugins/EmojiData.js +514 -514
- package/src/plugins/EncryptUtil.js +53 -53
- package/src/plugins/HttpLoad.js +93 -93
- package/src/plugins/LoadData.js +40 -40
- package/src/plugins/LoadParams.js +54 -54
- package/src/plugins/LocalPagedList.js +107 -107
- package/src/plugins/ObjTree.js +532 -532
- package/src/plugins/TelGetSaleParams.js +63 -63
- package/src/qrcode.js +618 -618
- package/src/qrcode.min.js +1 -1
- package/src/stores/exportConfig.js +10 -10
- package/src/stores/wxconfig.js +10 -10
- package/src/telephone-android.js +374 -374
- package/src/telephone-shaoguan.js +256 -256
- package/src/telephone-tongcheng.js +254 -254
- package/src/telephone.js +749 -749
- package/src/telephoneanaly.less +704 -704
- package/src/utils/LdapHelper.js +99 -99
- package/src/weinan-android.js +350 -350
- package/src/weinan.js +537 -537
- package/static/fonts/font.css +6 -6
- package/static/js/adapter.min.js +2049 -2049
- package/static/js/bootstrap.min.js +7 -7
- package/static/js/ctilink.js +1303 -1303
- package/static/js/ctimsg.js +655 -655
- package/static/js/janus.js +4034 -4034
- package/static/js/jquery-2.1.1.min.js +5 -5
- package/yarn-error.log +7872 -7872
- package//345/221/274/345/217/253/345/267/245/345/215/225/351/205/215/347/275/256/350/257/264/346/230/216.md +6 -6
package/adapter.min.js
CHANGED
|
@@ -1,2049 +1,2049 @@
|
|
|
1
|
-
!function (e) {
|
|
2
|
-
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : ("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).adapter = e()
|
|
3
|
-
}
|
|
4
|
-
(function () {
|
|
5
|
-
return function n(i, o, a) {
|
|
6
|
-
function s(t, e) {
|
|
7
|
-
if (!o[t]) {
|
|
8
|
-
if (!i[t]) {
|
|
9
|
-
var r = "function" == typeof require && require;
|
|
10
|
-
if (!e && r)
|
|
11
|
-
return r(t, !0);
|
|
12
|
-
if (c)
|
|
13
|
-
return c(t, !0);
|
|
14
|
-
throw (r = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND",
|
|
15
|
-
r
|
|
16
|
-
}
|
|
17
|
-
r = o[t] = {
|
|
18
|
-
exports: {}
|
|
19
|
-
},
|
|
20
|
-
i[t][0].call(r.exports, function (e) {
|
|
21
|
-
return s(i[t][1][e] || e)
|
|
22
|
-
}, r, r.exports, n, i, o, a)
|
|
23
|
-
}
|
|
24
|
-
return o[t].exports
|
|
25
|
-
}
|
|
26
|
-
for (var c = "function" == typeof require && require, e = 0; e < a.length; e++)
|
|
27
|
-
s(a[e]);
|
|
28
|
-
return s
|
|
29
|
-
}
|
|
30
|
-
({
|
|
31
|
-
1: [function (e, t, r) {
|
|
32
|
-
"use strict";
|
|
33
|
-
e = (0, e("./adapter_factory.js").adapterFactory)({
|
|
34
|
-
window: "undefined" == typeof window ? void 0 : window
|
|
35
|
-
});
|
|
36
|
-
t.exports = e
|
|
37
|
-
}, {
|
|
38
|
-
"./adapter_factory.js": 2
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
2: [function (e, t, r) {
|
|
42
|
-
"use strict";
|
|
43
|
-
Object.defineProperty(r, "__esModule", {
|
|
44
|
-
value: !0
|
|
45
|
-
}),
|
|
46
|
-
r.adapterFactory = function () {
|
|
47
|
-
var e = (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).window,
|
|
48
|
-
t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {
|
|
49
|
-
shimChrome: !0,
|
|
50
|
-
shimFirefox: !0,
|
|
51
|
-
shimSafari: !0
|
|
52
|
-
},
|
|
53
|
-
r = o.log,
|
|
54
|
-
n = o.detectBrowser(e),
|
|
55
|
-
i = {
|
|
56
|
-
browserDetails: n,
|
|
57
|
-
commonShim: p,
|
|
58
|
-
extractVersion: o.extractVersion,
|
|
59
|
-
disableLog: o.disableLog,
|
|
60
|
-
disableWarnings: o.disableWarnings,
|
|
61
|
-
sdp: d
|
|
62
|
-
};
|
|
63
|
-
switch (n.browser) {
|
|
64
|
-
case "chrome":
|
|
65
|
-
if (!a || !a.shimPeerConnection || !t.shimChrome)
|
|
66
|
-
return r("Chrome shim is not included in this adapter release."), i;
|
|
67
|
-
if (null === n.version)
|
|
68
|
-
return r("Chrome shim can not determine version, not shimming."), i;
|
|
69
|
-
r("adapter.js shimming chrome."),
|
|
70
|
-
i.browserShim = a,
|
|
71
|
-
p.shimAddIceCandidateNullOrEmpty(e, n),
|
|
72
|
-
p.shimParameterlessSetLocalDescription(e, n),
|
|
73
|
-
a.shimGetUserMedia(e, n),
|
|
74
|
-
a.shimMediaStream(e, n),
|
|
75
|
-
a.shimPeerConnection(e, n),
|
|
76
|
-
a.shimOnTrack(e, n),
|
|
77
|
-
a.shimAddTrackRemoveTrack(e, n),
|
|
78
|
-
a.shimGetSendersWithDtmf(e, n),
|
|
79
|
-
a.shimGetStats(e, n),
|
|
80
|
-
a.shimSenderReceiverGetStats(e, n),
|
|
81
|
-
a.fixNegotiationNeeded(e, n),
|
|
82
|
-
p.shimRTCIceCandidate(e, n),
|
|
83
|
-
p.shimConnectionState(e, n),
|
|
84
|
-
p.shimMaxMessageSize(e, n),
|
|
85
|
-
p.shimSendThrowTypeError(e, n),
|
|
86
|
-
p.removeExtmapAllowMixed(e, n);
|
|
87
|
-
break;
|
|
88
|
-
case "firefox":
|
|
89
|
-
if (!s || !s.shimPeerConnection || !t.shimFirefox)
|
|
90
|
-
return r("Firefox shim is not included in this adapter release."), i;
|
|
91
|
-
r("adapter.js shimming firefox."),
|
|
92
|
-
i.browserShim = s,
|
|
93
|
-
p.shimAddIceCandidateNullOrEmpty(e, n),
|
|
94
|
-
p.shimParameterlessSetLocalDescription(e, n),
|
|
95
|
-
s.shimGetUserMedia(e, n),
|
|
96
|
-
s.shimPeerConnection(e, n),
|
|
97
|
-
s.shimOnTrack(e, n),
|
|
98
|
-
s.shimRemoveStream(e, n),
|
|
99
|
-
s.shimSenderGetStats(e, n),
|
|
100
|
-
s.shimReceiverGetStats(e, n),
|
|
101
|
-
s.shimRTCDataChannel(e, n),
|
|
102
|
-
s.shimAddTransceiver(e, n),
|
|
103
|
-
s.shimGetParameters(e, n),
|
|
104
|
-
s.shimCreateOffer(e, n),
|
|
105
|
-
s.shimCreateAnswer(e, n),
|
|
106
|
-
p.shimRTCIceCandidate(e, n),
|
|
107
|
-
p.shimConnectionState(e, n),
|
|
108
|
-
p.shimMaxMessageSize(e, n),
|
|
109
|
-
p.shimSendThrowTypeError(e, n);
|
|
110
|
-
break;
|
|
111
|
-
case "safari":
|
|
112
|
-
if (!c || !t.shimSafari)
|
|
113
|
-
return r("Safari shim is not included in this adapter release."), i;
|
|
114
|
-
r("adapter.js shimming safari."),
|
|
115
|
-
i.browserShim = c,
|
|
116
|
-
p.shimAddIceCandidateNullOrEmpty(e, n),
|
|
117
|
-
p.shimParameterlessSetLocalDescription(e, n),
|
|
118
|
-
c.shimRTCIceServerUrls(e, n),
|
|
119
|
-
c.shimCreateOfferLegacy(e, n),
|
|
120
|
-
c.shimCallbacksAPI(e, n),
|
|
121
|
-
c.shimLocalStreamsAPI(e, n),
|
|
122
|
-
c.shimRemoteStreamsAPI(e, n),
|
|
123
|
-
c.shimTrackEventTransceiver(e, n),
|
|
124
|
-
c.shimGetUserMedia(e, n),
|
|
125
|
-
c.shimAudioContext(e, n),
|
|
126
|
-
p.shimRTCIceCandidate(e, n),
|
|
127
|
-
p.shimMaxMessageSize(e, n),
|
|
128
|
-
p.shimSendThrowTypeError(e, n),
|
|
129
|
-
p.removeExtmapAllowMixed(e, n);
|
|
130
|
-
break;
|
|
131
|
-
default:
|
|
132
|
-
r("Unsupported browser!")
|
|
133
|
-
}
|
|
134
|
-
return i
|
|
135
|
-
};
|
|
136
|
-
var o = n(e("./utils")),
|
|
137
|
-
a = n(e("./chrome/chrome_shim")),
|
|
138
|
-
s = n(e("./firefox/firefox_shim")),
|
|
139
|
-
c = n(e("./safari/safari_shim")),
|
|
140
|
-
p = n(e("./common_shim")),
|
|
141
|
-
d = n(e("sdp"));
|
|
142
|
-
function n(e) {
|
|
143
|
-
if (e && e.__esModule)
|
|
144
|
-
return e;
|
|
145
|
-
var t = {};
|
|
146
|
-
if (null != e)
|
|
147
|
-
for (var r in e)
|
|
148
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
149
|
-
return t.default = e,
|
|
150
|
-
t
|
|
151
|
-
}
|
|
152
|
-
}, {
|
|
153
|
-
"./chrome/chrome_shim": 3,
|
|
154
|
-
"./common_shim": 6,
|
|
155
|
-
"./firefox/firefox_shim": 7,
|
|
156
|
-
"./safari/safari_shim": 10,
|
|
157
|
-
"./utils": 11,
|
|
158
|
-
sdp: 12
|
|
159
|
-
}
|
|
160
|
-
],
|
|
161
|
-
3: [function (e, t, r) {
|
|
162
|
-
"use strict";
|
|
163
|
-
Object.defineProperty(r, "__esModule", {
|
|
164
|
-
value: !0
|
|
165
|
-
}),
|
|
166
|
-
r.shimGetDisplayMedia = r.shimGetUserMedia = void 0;
|
|
167
|
-
var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
168
|
-
return typeof e
|
|
169
|
-
}
|
|
170
|
-
: function (e) {
|
|
171
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
172
|
-
},
|
|
173
|
-
n = e("./getusermedia");
|
|
174
|
-
Object.defineProperty(r, "shimGetUserMedia", {
|
|
175
|
-
enumerable: !0,
|
|
176
|
-
get: function () {
|
|
177
|
-
return n.shimGetUserMedia
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
var i = e("./getdisplaymedia");
|
|
181
|
-
Object.defineProperty(r, "shimGetDisplayMedia", {
|
|
182
|
-
enumerable: !0,
|
|
183
|
-
get: function () {
|
|
184
|
-
return i.shimGetDisplayMedia
|
|
185
|
-
}
|
|
186
|
-
}),
|
|
187
|
-
r.shimMediaStream = function (e) {
|
|
188
|
-
e.MediaStream = e.MediaStream || e.webkitMediaStream
|
|
189
|
-
},
|
|
190
|
-
r.shimOnTrack = function (o) { {
|
|
191
|
-
var e;
|
|
192
|
-
"object" !== (void 0 === o ? "undefined" : s(o)) || !o.RTCPeerConnection || "ontrack" in o.RTCPeerConnection.prototype ? a.wrapPeerConnectionEvent(o, "track", function (e) {
|
|
193
|
-
return e.transceiver || Object.defineProperty(e, "transceiver", {
|
|
194
|
-
value: {
|
|
195
|
-
receiver: e.receiver
|
|
196
|
-
}
|
|
197
|
-
}),
|
|
198
|
-
e
|
|
199
|
-
}) : (Object.defineProperty(o.RTCPeerConnection.prototype, "ontrack", {
|
|
200
|
-
get: function () {
|
|
201
|
-
return this._ontrack
|
|
202
|
-
},
|
|
203
|
-
set: function (e) {
|
|
204
|
-
this._ontrack && this.removeEventListener("track", this._ontrack),
|
|
205
|
-
this.addEventListener("track", this._ontrack = e)
|
|
206
|
-
},
|
|
207
|
-
enumerable: !0,
|
|
208
|
-
configurable: !0
|
|
209
|
-
}), e = o.RTCPeerConnection.prototype.setRemoteDescription, o.RTCPeerConnection.prototype.setRemoteDescription = function () {
|
|
210
|
-
var i = this;
|
|
211
|
-
return this._ontrackpoly || (this._ontrackpoly = function (n) {
|
|
212
|
-
n.stream.addEventListener("addtrack", function (t) {
|
|
213
|
-
var e = void 0,
|
|
214
|
-
e = o.RTCPeerConnection.prototype.getReceivers ? i.getReceivers().find(function (e) {
|
|
215
|
-
return e.track && e.track.id === t.track.id
|
|
216
|
-
}) : {
|
|
217
|
-
track: t.track
|
|
218
|
-
},
|
|
219
|
-
r = new Event("track");
|
|
220
|
-
r.track = t.track,
|
|
221
|
-
r.receiver = e,
|
|
222
|
-
r.transceiver = {
|
|
223
|
-
receiver: e
|
|
224
|
-
},
|
|
225
|
-
r.streams = [n.stream],
|
|
226
|
-
i.dispatchEvent(r)
|
|
227
|
-
}),
|
|
228
|
-
n.stream.getTracks().forEach(function (t) {
|
|
229
|
-
var e = void 0,
|
|
230
|
-
e = o.RTCPeerConnection.prototype.getReceivers ? i.getReceivers().find(function (e) {
|
|
231
|
-
return e.track && e.track.id === t.id
|
|
232
|
-
}) : {
|
|
233
|
-
track: t
|
|
234
|
-
},
|
|
235
|
-
r = new Event("track");
|
|
236
|
-
r.track = t,
|
|
237
|
-
r.receiver = e,
|
|
238
|
-
r.transceiver = {
|
|
239
|
-
receiver: e
|
|
240
|
-
},
|
|
241
|
-
r.streams = [n.stream],
|
|
242
|
-
i.dispatchEvent(r)
|
|
243
|
-
})
|
|
244
|
-
}, this.addEventListener("addstream", this._ontrackpoly)),
|
|
245
|
-
e.apply(this, arguments)
|
|
246
|
-
})
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
r.shimGetSendersWithDtmf = function (e) { {
|
|
250
|
-
var n,
|
|
251
|
-
i,
|
|
252
|
-
t,
|
|
253
|
-
r,
|
|
254
|
-
o,
|
|
255
|
-
a;
|
|
256
|
-
"object" === (void 0 === e ? "undefined" : s(e)) && e.RTCPeerConnection && !("getSenders" in e.RTCPeerConnection.prototype) && "createDTMFSender" in e.RTCPeerConnection.prototype ? (n = function (e, t) {
|
|
257
|
-
return {
|
|
258
|
-
track: t,
|
|
259
|
-
get dtmf() {
|
|
260
|
-
return void 0 === this._dtmf && ("audio" === t.kind ? this._dtmf = e.createDTMFSender(t) : this._dtmf = null),
|
|
261
|
-
this._dtmf
|
|
262
|
-
},
|
|
263
|
-
_pc: e
|
|
264
|
-
}
|
|
265
|
-
}, e.RTCPeerConnection.prototype.getSenders || (e.RTCPeerConnection.prototype.getSenders = function () {
|
|
266
|
-
return this._senders = this._senders || [],
|
|
267
|
-
this._senders.slice()
|
|
268
|
-
}, i = e.RTCPeerConnection.prototype.addTrack, e.RTCPeerConnection.prototype.addTrack = function (e, t) {
|
|
269
|
-
var r = i.apply(this, arguments);
|
|
270
|
-
return r || (r = n(this, e), this._senders.push(r)),
|
|
271
|
-
r
|
|
272
|
-
}, t = e.RTCPeerConnection.prototype.removeTrack, e.RTCPeerConnection.prototype.removeTrack = function (e) {
|
|
273
|
-
t.apply(this, arguments);
|
|
274
|
-
e = this._senders.indexOf(e);
|
|
275
|
-
-1 !== e && this._senders.splice(e, 1)
|
|
276
|
-
}), r = e.RTCPeerConnection.prototype.addStream, e.RTCPeerConnection.prototype.addStream = function (e) {
|
|
277
|
-
var t = this;
|
|
278
|
-
this._senders = this._senders || [],
|
|
279
|
-
r.apply(this, [e]),
|
|
280
|
-
e.getTracks().forEach(function (e) {
|
|
281
|
-
t._senders.push(n(t, e))
|
|
282
|
-
})
|
|
283
|
-
}, o = e.RTCPeerConnection.prototype.removeStream, e.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
284
|
-
var r = this;
|
|
285
|
-
this._senders = this._senders || [],
|
|
286
|
-
o.apply(this, [e]),
|
|
287
|
-
e.getTracks().forEach(function (t) {
|
|
288
|
-
var e = r._senders.find(function (e) {
|
|
289
|
-
return e.track === t
|
|
290
|
-
});
|
|
291
|
-
e && r._senders.splice(r._senders.indexOf(e), 1)
|
|
292
|
-
})
|
|
293
|
-
}) : "object" === (void 0 === e ? "undefined" : s(e)) && e.RTCPeerConnection && "getSenders" in e.RTCPeerConnection.prototype && "createDTMFSender" in e.RTCPeerConnection.prototype && e.RTCRtpSender && !("dtmf" in e.RTCRtpSender.prototype) && (a = e.RTCPeerConnection.prototype.getSenders, e.RTCPeerConnection.prototype.getSenders = function () {
|
|
294
|
-
var t = this,
|
|
295
|
-
e = a.apply(this, []);
|
|
296
|
-
return e.forEach(function (e) {
|
|
297
|
-
return e._pc = t
|
|
298
|
-
}),
|
|
299
|
-
e
|
|
300
|
-
}, Object.defineProperty(e.RTCRtpSender.prototype, "dtmf", {
|
|
301
|
-
get: function () {
|
|
302
|
-
return void 0 === this._dtmf && ("audio" === this.track.kind ? this._dtmf = this._pc.createDTMFSender(this.track) : this._dtmf = null),
|
|
303
|
-
this._dtmf
|
|
304
|
-
}
|
|
305
|
-
}))
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
r.shimGetStats = function (e) {
|
|
309
|
-
var a;
|
|
310
|
-
e.RTCPeerConnection && (a = e.RTCPeerConnection.prototype.getStats, e.RTCPeerConnection.prototype.getStats = function () {
|
|
311
|
-
var r = this,
|
|
312
|
-
e = Array.prototype.slice.call(arguments),
|
|
313
|
-
t = e[0],
|
|
314
|
-
n = e[1],
|
|
315
|
-
e = e[2];
|
|
316
|
-
if (0 < arguments.length && "function" == typeof t)
|
|
317
|
-
return a.apply(this, arguments);
|
|
318
|
-
if (0 === a.length && (0 === arguments.length || "function" != typeof t))
|
|
319
|
-
return a.apply(this, []);
|
|
320
|
-
var i = function (e) {
|
|
321
|
-
var n = {};
|
|
322
|
-
return e.result().forEach(function (t) {
|
|
323
|
-
var r = {
|
|
324
|
-
id: t.id,
|
|
325
|
-
timestamp: t.timestamp,
|
|
326
|
-
type: {
|
|
327
|
-
localcandidate: "local-candidate",
|
|
328
|
-
remotecandidate: "remote-candidate"
|
|
329
|
-
}
|
|
330
|
-
[t.type] || t.type
|
|
331
|
-
};
|
|
332
|
-
t.names().forEach(function (e) {
|
|
333
|
-
r[e] = t.stat(e)
|
|
334
|
-
}),
|
|
335
|
-
n[r.id] = r
|
|
336
|
-
}),
|
|
337
|
-
n
|
|
338
|
-
},
|
|
339
|
-
o = function (t) {
|
|
340
|
-
return new Map(Object.keys(t).map(function (e) {
|
|
341
|
-
return [e, t[e]]
|
|
342
|
-
}))
|
|
343
|
-
};
|
|
344
|
-
if (2 <= arguments.length)
|
|
345
|
-
return a.apply(this, [function (e) {
|
|
346
|
-
n(o(i(e)))
|
|
347
|
-
}, t]);
|
|
348
|
-
return new Promise(function (t, e) {
|
|
349
|
-
a.apply(r, [function (e) {
|
|
350
|
-
t(o(i(e)))
|
|
351
|
-
}, e])
|
|
352
|
-
}).then(n, e)
|
|
353
|
-
})
|
|
354
|
-
},
|
|
355
|
-
r.shimSenderReceiverGetStats = function (e) {
|
|
356
|
-
var r,
|
|
357
|
-
t,
|
|
358
|
-
n,
|
|
359
|
-
o;
|
|
360
|
-
"object" === (void 0 === e ? "undefined" : s(e)) && e.RTCPeerConnection && e.RTCRtpSender && e.RTCRtpReceiver && ("getStats" in e.RTCRtpSender.prototype || ((r = e.RTCPeerConnection.prototype.getSenders) && (e.RTCPeerConnection.prototype.getSenders = function () {
|
|
361
|
-
var t = this,
|
|
362
|
-
e = r.apply(this, []);
|
|
363
|
-
return e.forEach(function (e) {
|
|
364
|
-
return e._pc = t
|
|
365
|
-
}),
|
|
366
|
-
e
|
|
367
|
-
}), (t = e.RTCPeerConnection.prototype.addTrack) && (e.RTCPeerConnection.prototype.addTrack = function () {
|
|
368
|
-
var e = t.apply(this, arguments);
|
|
369
|
-
return e._pc = this,
|
|
370
|
-
e
|
|
371
|
-
}), e.RTCRtpSender.prototype.getStats = function () {
|
|
372
|
-
var t = this;
|
|
373
|
-
return this._pc.getStats().then(function (e) {
|
|
374
|
-
return a.filterStats(e, t.track, !0)
|
|
375
|
-
})
|
|
376
|
-
}), "getStats" in e.RTCRtpReceiver.prototype || ((n = e.RTCPeerConnection.prototype.getReceivers) && (e.RTCPeerConnection.prototype.getReceivers = function () {
|
|
377
|
-
var t = this,
|
|
378
|
-
e = n.apply(this, []);
|
|
379
|
-
return e.forEach(function (e) {
|
|
380
|
-
return e._pc = t
|
|
381
|
-
}),
|
|
382
|
-
e
|
|
383
|
-
}), a.wrapPeerConnectionEvent(e, "track", function (e) {
|
|
384
|
-
return e.receiver._pc = e.srcElement,
|
|
385
|
-
e
|
|
386
|
-
}), e.RTCRtpReceiver.prototype.getStats = function () {
|
|
387
|
-
var t = this;
|
|
388
|
-
return this._pc.getStats().then(function (e) {
|
|
389
|
-
return a.filterStats(e, t.track, !1)
|
|
390
|
-
})
|
|
391
|
-
}), "getStats" in e.RTCRtpSender.prototype && "getStats" in e.RTCRtpReceiver.prototype && (o = e.RTCPeerConnection.prototype.getStats, e.RTCPeerConnection.prototype.getStats = function () {
|
|
392
|
-
if (0 < arguments.length && arguments[0]instanceof e.MediaStreamTrack) {
|
|
393
|
-
var t = arguments[0],
|
|
394
|
-
r = void 0,
|
|
395
|
-
n = void 0,
|
|
396
|
-
i = void 0;
|
|
397
|
-
return this.getSenders().forEach(function (e) {
|
|
398
|
-
e.track === t && (r ? i = !0 : r = e)
|
|
399
|
-
}),
|
|
400
|
-
this.getReceivers().forEach(function (e) {
|
|
401
|
-
return e.track === t && (n ? i = !0 : n = e),
|
|
402
|
-
e.track === t
|
|
403
|
-
}),
|
|
404
|
-
i || r && n ? Promise.reject(new DOMException("There are more than one sender or receiver for the track.", "InvalidAccessError")) : r ? r.getStats() : n ? n.getStats() : Promise.reject(new DOMException("There is no sender or receiver for the track.", "InvalidAccessError"))
|
|
405
|
-
}
|
|
406
|
-
return o.apply(this, arguments)
|
|
407
|
-
}))
|
|
408
|
-
},
|
|
409
|
-
r.shimAddTrackRemoveTrackWithNative = p,
|
|
410
|
-
r.shimAddTrackRemoveTrack = function (i, e) {
|
|
411
|
-
if (i.RTCPeerConnection) {
|
|
412
|
-
if (i.RTCPeerConnection.prototype.addTrack && 65 <= e.version)
|
|
413
|
-
return p(i);
|
|
414
|
-
var r = i.RTCPeerConnection.prototype.getLocalStreams;
|
|
415
|
-
i.RTCPeerConnection.prototype.getLocalStreams = function () {
|
|
416
|
-
var t = this,
|
|
417
|
-
e = r.apply(this);
|
|
418
|
-
return this._reverseStreams = this._reverseStreams || {},
|
|
419
|
-
e.map(function (e) {
|
|
420
|
-
return t._reverseStreams[e.id]
|
|
421
|
-
})
|
|
422
|
-
};
|
|
423
|
-
var n = i.RTCPeerConnection.prototype.addStream;
|
|
424
|
-
i.RTCPeerConnection.prototype.addStream = function (e) {
|
|
425
|
-
var t,
|
|
426
|
-
r = this;
|
|
427
|
-
this._streams = this._streams || {},
|
|
428
|
-
this._reverseStreams = this._reverseStreams || {},
|
|
429
|
-
e.getTracks().forEach(function (t) {
|
|
430
|
-
if (r.getSenders().find(function (e) {
|
|
431
|
-
return e.track === t
|
|
432
|
-
}))
|
|
433
|
-
throw new DOMException("Track already exists.", "InvalidAccessError")
|
|
434
|
-
}),
|
|
435
|
-
this._reverseStreams[e.id] || (t = new i.MediaStream(e.getTracks()), this._streams[e.id] = t, this._reverseStreams[t.id] = e, e = t),
|
|
436
|
-
n.apply(this, [e])
|
|
437
|
-
};
|
|
438
|
-
var t = i.RTCPeerConnection.prototype.removeStream;
|
|
439
|
-
i.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
440
|
-
this._streams = this._streams || {},
|
|
441
|
-
this._reverseStreams = this._reverseStreams || {},
|
|
442
|
-
t.apply(this, [this._streams[e.id] || e]),
|
|
443
|
-
delete this._reverseStreams[(this._streams[e.id] || e).id],
|
|
444
|
-
delete this._streams[e.id]
|
|
445
|
-
},
|
|
446
|
-
i.RTCPeerConnection.prototype.addTrack = function (t, e) {
|
|
447
|
-
var r = this;
|
|
448
|
-
if ("closed" === this.signalingState)
|
|
449
|
-
throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.", "InvalidStateError");
|
|
450
|
-
var n = [].slice.call(arguments, 1);
|
|
451
|
-
if (1 !== n.length || !n[0].getTracks().find(function (e) {
|
|
452
|
-
return e === t
|
|
453
|
-
}))
|
|
454
|
-
throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.", "NotSupportedError");
|
|
455
|
-
if (this.getSenders().find(function (e) {
|
|
456
|
-
return e.track === t
|
|
457
|
-
}))
|
|
458
|
-
throw new DOMException("Track already exists.", "InvalidAccessError");
|
|
459
|
-
this._streams = this._streams || {},
|
|
460
|
-
this._reverseStreams = this._reverseStreams || {};
|
|
461
|
-
n = this._streams[e.id];
|
|
462
|
-
return n ? (n.addTrack(t), Promise.resolve().then(function () {
|
|
463
|
-
r.dispatchEvent(new Event("negotiationneeded"))
|
|
464
|
-
})) : (n = new i.MediaStream([t]), this._streams[e.id] = n, this._reverseStreams[n.id] = e, this.addStream(n)),
|
|
465
|
-
this.getSenders().find(function (e) {
|
|
466
|
-
return e.track === t
|
|
467
|
-
})
|
|
468
|
-
},
|
|
469
|
-
["createOffer", "createAnswer"].forEach(function (e) {
|
|
470
|
-
var n = i.RTCPeerConnection.prototype[e],
|
|
471
|
-
t = c({}, e, function () {
|
|
472
|
-
var t = this,
|
|
473
|
-
r = arguments;
|
|
474
|
-
return arguments.length && "function" == typeof arguments[0] ? n.apply(this, [function (e) {
|
|
475
|
-
e = s(t, e);
|
|
476
|
-
r[0].apply(null, [e])
|
|
477
|
-
}, function (e) {
|
|
478
|
-
r[1] && r[1].apply(null, e)
|
|
479
|
-
}, arguments[2]]) : n.apply(this, arguments).then(function (e) {
|
|
480
|
-
return s(t, e)
|
|
481
|
-
})
|
|
482
|
-
});
|
|
483
|
-
i.RTCPeerConnection.prototype[e] = t[e]
|
|
484
|
-
});
|
|
485
|
-
var o = i.RTCPeerConnection.prototype.setLocalDescription;
|
|
486
|
-
i.RTCPeerConnection.prototype.setLocalDescription = function () {
|
|
487
|
-
return arguments.length && arguments[0].type && (arguments[0] = (r = this, n = (e = arguments[0]).sdp, Object.keys(r._reverseStreams || []).forEach(function (e) {
|
|
488
|
-
var t = r._reverseStreams[e],
|
|
489
|
-
e = r._streams[t.id];
|
|
490
|
-
n = n.replace(new RegExp(t.id, "g"), e.id)
|
|
491
|
-
}), new RTCSessionDescription({
|
|
492
|
-
type: e.type,
|
|
493
|
-
sdp: n
|
|
494
|
-
}))),
|
|
495
|
-
o.apply(this, arguments);
|
|
496
|
-
var r,
|
|
497
|
-
e,
|
|
498
|
-
n
|
|
499
|
-
};
|
|
500
|
-
var a = Object.getOwnPropertyDescriptor(i.RTCPeerConnection.prototype, "localDescription");
|
|
501
|
-
Object.defineProperty(i.RTCPeerConnection.prototype, "localDescription", {
|
|
502
|
-
get: function () {
|
|
503
|
-
var e = a.get.apply(this);
|
|
504
|
-
return "" === e.type ? e : s(this, e)
|
|
505
|
-
}
|
|
506
|
-
}),
|
|
507
|
-
i.RTCPeerConnection.prototype.removeTrack = function (t) {
|
|
508
|
-
var r = this;
|
|
509
|
-
if ("closed" === this.signalingState)
|
|
510
|
-
throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.", "InvalidStateError");
|
|
511
|
-
if (!t._pc)
|
|
512
|
-
throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.", "TypeError");
|
|
513
|
-
if (!(t._pc === this))
|
|
514
|
-
throw new DOMException("Sender was not created by this connection.", "InvalidAccessError");
|
|
515
|
-
this._streams = this._streams || {};
|
|
516
|
-
var n = void 0;
|
|
517
|
-
Object.keys(this._streams).forEach(function (e) {
|
|
518
|
-
r._streams[e].getTracks().find(function (e) {
|
|
519
|
-
return t.track === e
|
|
520
|
-
}) && (n = r._streams[e])
|
|
521
|
-
}),
|
|
522
|
-
n && (1 === n.getTracks().length ? this.removeStream(this._reverseStreams[n.id]) : n.removeTrack(t.track), this.dispatchEvent(new Event("negotiationneeded")))
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function s(r, e) {
|
|
526
|
-
var n = e.sdp;
|
|
527
|
-
return Object.keys(r._reverseStreams || []).forEach(function (e) {
|
|
528
|
-
var t = r._reverseStreams[e],
|
|
529
|
-
e = r._streams[t.id];
|
|
530
|
-
n = n.replace(new RegExp(e.id, "g"), t.id)
|
|
531
|
-
}),
|
|
532
|
-
new RTCSessionDescription({
|
|
533
|
-
type: e.type,
|
|
534
|
-
sdp: n
|
|
535
|
-
})
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
r.shimPeerConnection = function (n, e) {
|
|
539
|
-
!n.RTCPeerConnection && n.webkitRTCPeerConnection && (n.RTCPeerConnection = n.webkitRTCPeerConnection);
|
|
540
|
-
n.RTCPeerConnection && e.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function (e) {
|
|
541
|
-
var t = n.RTCPeerConnection.prototype[e],
|
|
542
|
-
r = c({}, e, function () {
|
|
543
|
-
return arguments[0] = new("addIceCandidate" === e ? n.RTCIceCandidate : n.RTCSessionDescription)(arguments[0]),
|
|
544
|
-
t.apply(this, arguments)
|
|
545
|
-
});
|
|
546
|
-
n.RTCPeerConnection.prototype[e] = r[e]
|
|
547
|
-
})
|
|
548
|
-
},
|
|
549
|
-
r.fixNegotiationNeeded = function (e, r) {
|
|
550
|
-
a.wrapPeerConnectionEvent(e, "negotiationneeded", function (e) {
|
|
551
|
-
var t = e.target;
|
|
552
|
-
if (!(r.version < 72 || t.getConfiguration && "plan-b" === t.getConfiguration().sdpSemantics) || "stable" === t.signalingState)
|
|
553
|
-
return e
|
|
554
|
-
})
|
|
555
|
-
};
|
|
556
|
-
var a = function (e) { {
|
|
557
|
-
if (e && e.__esModule)
|
|
558
|
-
return e;
|
|
559
|
-
var t = {};
|
|
560
|
-
if (null != e)
|
|
561
|
-
for (var r in e)
|
|
562
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
563
|
-
return t.default = e,
|
|
564
|
-
t
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
(e("../utils.js"));
|
|
568
|
-
function c(e, t, r) {
|
|
569
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
570
|
-
value: r,
|
|
571
|
-
enumerable: !0,
|
|
572
|
-
configurable: !0,
|
|
573
|
-
writable: !0
|
|
574
|
-
}) : e[t] = r,
|
|
575
|
-
e
|
|
576
|
-
}
|
|
577
|
-
function p(e) {
|
|
578
|
-
e.RTCPeerConnection.prototype.getLocalStreams = function () {
|
|
579
|
-
var t = this;
|
|
580
|
-
return this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
581
|
-
Object.keys(this._shimmedLocalStreams).map(function (e) {
|
|
582
|
-
return t._shimmedLocalStreams[e][0]
|
|
583
|
-
})
|
|
584
|
-
};
|
|
585
|
-
var n = e.RTCPeerConnection.prototype.addTrack;
|
|
586
|
-
e.RTCPeerConnection.prototype.addTrack = function (e, t) {
|
|
587
|
-
if (!t)
|
|
588
|
-
return n.apply(this, arguments);
|
|
589
|
-
this._shimmedLocalStreams = this._shimmedLocalStreams || {};
|
|
590
|
-
var r = n.apply(this, arguments);
|
|
591
|
-
return this._shimmedLocalStreams[t.id] ? -1 === this._shimmedLocalStreams[t.id].indexOf(r) && this._shimmedLocalStreams[t.id].push(r) : this._shimmedLocalStreams[t.id] = [t, r],
|
|
592
|
-
r
|
|
593
|
-
};
|
|
594
|
-
var i = e.RTCPeerConnection.prototype.addStream;
|
|
595
|
-
e.RTCPeerConnection.prototype.addStream = function (e) {
|
|
596
|
-
var r = this;
|
|
597
|
-
this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
598
|
-
e.getTracks().forEach(function (t) {
|
|
599
|
-
if (r.getSenders().find(function (e) {
|
|
600
|
-
return e.track === t
|
|
601
|
-
}))
|
|
602
|
-
throw new DOMException("Track already exists.", "InvalidAccessError")
|
|
603
|
-
});
|
|
604
|
-
var t = this.getSenders();
|
|
605
|
-
i.apply(this, arguments);
|
|
606
|
-
var n = this.getSenders().filter(function (e) {
|
|
607
|
-
return -1 === t.indexOf(e)
|
|
608
|
-
});
|
|
609
|
-
this._shimmedLocalStreams[e.id] = [e].concat(n)
|
|
610
|
-
};
|
|
611
|
-
var t = e.RTCPeerConnection.prototype.removeStream;
|
|
612
|
-
e.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
613
|
-
return this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
614
|
-
delete this._shimmedLocalStreams[e.id],
|
|
615
|
-
t.apply(this, arguments)
|
|
616
|
-
};
|
|
617
|
-
var o = e.RTCPeerConnection.prototype.removeTrack;
|
|
618
|
-
e.RTCPeerConnection.prototype.removeTrack = function (r) {
|
|
619
|
-
var n = this;
|
|
620
|
-
return this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
621
|
-
r && Object.keys(this._shimmedLocalStreams).forEach(function (e) {
|
|
622
|
-
var t = n._shimmedLocalStreams[e].indexOf(r);
|
|
623
|
-
-1 !== t && n._shimmedLocalStreams[e].splice(t, 1),
|
|
624
|
-
1 === n._shimmedLocalStreams[e].length && delete n._shimmedLocalStreams[e]
|
|
625
|
-
}),
|
|
626
|
-
o.apply(this, arguments)
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
}, {
|
|
630
|
-
"../utils.js": 11,
|
|
631
|
-
"./getdisplaymedia": 4,
|
|
632
|
-
"./getusermedia": 5
|
|
633
|
-
}
|
|
634
|
-
],
|
|
635
|
-
4: [function (e, t, r) {
|
|
636
|
-
"use strict";
|
|
637
|
-
Object.defineProperty(r, "__esModule", {
|
|
638
|
-
value: !0
|
|
639
|
-
}),
|
|
640
|
-
r.shimGetDisplayMedia = function (o, e) {
|
|
641
|
-
o.navigator.mediaDevices && "getDisplayMedia" in o.navigator.mediaDevices || o.navigator.mediaDevices && ("function" == typeof e ? o.navigator.mediaDevices.getDisplayMedia = function (i) {
|
|
642
|
-
return e(i).then(function (e) {
|
|
643
|
-
var t = i.video && i.video.width,
|
|
644
|
-
r = i.video && i.video.height,
|
|
645
|
-
n = i.video && i.video.frameRate;
|
|
646
|
-
return i.video = {
|
|
647
|
-
mandatory: {
|
|
648
|
-
chromeMediaSource: "desktop",
|
|
649
|
-
chromeMediaSourceId: e,
|
|
650
|
-
maxFrameRate: n || 3
|
|
651
|
-
}
|
|
652
|
-
},
|
|
653
|
-
t && (i.video.mandatory.maxWidth = t),
|
|
654
|
-
r && (i.video.mandatory.maxHeight = r),
|
|
655
|
-
o.navigator.mediaDevices.getUserMedia(i)
|
|
656
|
-
})
|
|
657
|
-
}
|
|
658
|
-
: console.error("shimGetDisplayMedia: getSourceId argument is not a function"))
|
|
659
|
-
}
|
|
660
|
-
}, {}
|
|
661
|
-
],
|
|
662
|
-
5: [function (e, t, r) {
|
|
663
|
-
"use strict";
|
|
664
|
-
Object.defineProperty(r, "__esModule", {
|
|
665
|
-
value: !0
|
|
666
|
-
});
|
|
667
|
-
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
668
|
-
return typeof e
|
|
669
|
-
}
|
|
670
|
-
: function (e) {
|
|
671
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
672
|
-
};
|
|
673
|
-
r.shimGetUserMedia = function (e, t) {
|
|
674
|
-
var a,
|
|
675
|
-
n,
|
|
676
|
-
i,
|
|
677
|
-
r,
|
|
678
|
-
s = e && e.navigator;
|
|
679
|
-
s.mediaDevices && (a = function (i) {
|
|
680
|
-
if ("object" !== (void 0 === i ? "undefined" : c(i)) || i.mandatory || i.optional)
|
|
681
|
-
return i;
|
|
682
|
-
var o = {};
|
|
683
|
-
return Object.keys(i).forEach(function (t) {
|
|
684
|
-
var r,
|
|
685
|
-
n,
|
|
686
|
-
e;
|
|
687
|
-
"require" !== t && "advanced" !== t && "mediaSource" !== t && (void 0 !== (r = "object" === c(i[t]) ? i[t] : {
|
|
688
|
-
ideal: i[t]
|
|
689
|
-
}).exact && "number" == typeof r.exact && (r.min = r.max = r.exact), n = function (e, t) {
|
|
690
|
-
return e ? e + t.charAt(0).toUpperCase() + t.slice(1) : "deviceId" === t ? "sourceId" : t
|
|
691
|
-
}, void 0 !== r.ideal && (o.optional = o.optional || [], e = {}, "number" == typeof r.ideal ? (e[n("min", t)] = r.ideal, o.optional.push(e), (e = {})[n("max", t)] = r.ideal) : e[n("", t)] = r.ideal, o.optional.push(e)), void 0 !== r.exact && "number" != typeof r.exact ? (o.mandatory = o.mandatory || {}, o.mandatory[n("", t)] = r.exact) : ["min", "max"].forEach(function (e) {
|
|
692
|
-
void 0 !== r[e] && (o.mandatory = o.mandatory || {}, o.mandatory[n(e, t)] = r[e])
|
|
693
|
-
}))
|
|
694
|
-
}),
|
|
695
|
-
i.advanced && (o.optional = (o.optional || []).concat(i.advanced)),
|
|
696
|
-
o
|
|
697
|
-
}, n = function (r, n) {
|
|
698
|
-
if (61 <= t.version)
|
|
699
|
-
return n(r);
|
|
700
|
-
if ((r = JSON.parse(JSON.stringify(r))) && "object" === c(r.audio) && ((e = function (e, t, r) {
|
|
701
|
-
t in e && !(r in e) && (e[r] = e[t], delete e[t])
|
|
702
|
-
})((r = JSON.parse(JSON.stringify(r))).audio, "autoGainControl", "googAutoGainControl"), e(r.audio, "noiseSuppression", "googNoiseSuppression"), r.audio = a(r.audio)), r && "object" === c(r.video)) {
|
|
703
|
-
var i = (i = r.video.facingMode) && ("object" === (void 0 === i ? "undefined" : c(i)) ? i : {
|
|
704
|
-
ideal: i
|
|
705
|
-
}),
|
|
706
|
-
e = t.version < 66;
|
|
707
|
-
if (i && ("user" === i.exact || "environment" === i.exact || "user" === i.ideal || "environment" === i.ideal) && (!s.mediaDevices.getSupportedConstraints || !s.mediaDevices.getSupportedConstraints().facingMode || e)) {
|
|
708
|
-
delete r.video.facingMode;
|
|
709
|
-
var o = void 0;
|
|
710
|
-
if ("environment" === i.exact || "environment" === i.ideal ? o = ["back", "rear"] : "user" !== i.exact && "user" !== i.ideal || (o = ["front"]), o)
|
|
711
|
-
return s.mediaDevices.enumerateDevices().then(function (e) {
|
|
712
|
-
var t = (e = e.filter(function (e) {
|
|
713
|
-
return "videoinput" === e.kind
|
|
714
|
-
})).find(function (t) {
|
|
715
|
-
return o.some(function (e) {
|
|
716
|
-
return t.label.toLowerCase().includes(e)
|
|
717
|
-
})
|
|
718
|
-
});
|
|
719
|
-
return (t = !t && e.length && o.includes("back") ? e[e.length - 1] : t) && (r.video.deviceId = i.exact ? {
|
|
720
|
-
exact: t.deviceId
|
|
721
|
-
}
|
|
722
|
-
: {
|
|
723
|
-
ideal: t.deviceId
|
|
724
|
-
}),
|
|
725
|
-
r.video = a(r.video),
|
|
726
|
-
p("chrome: " + JSON.stringify(r)),
|
|
727
|
-
n(r)
|
|
728
|
-
})
|
|
729
|
-
}
|
|
730
|
-
r.video = a(r.video)
|
|
731
|
-
}
|
|
732
|
-
return p("chrome: " + JSON.stringify(r)),
|
|
733
|
-
n(r)
|
|
734
|
-
}, i = function (e) {
|
|
735
|
-
return 64 <= t.version ? e : {
|
|
736
|
-
name: {
|
|
737
|
-
PermissionDeniedError: "NotAllowedError",
|
|
738
|
-
PermissionDismissedError: "NotAllowedError",
|
|
739
|
-
InvalidStateError: "NotAllowedError",
|
|
740
|
-
DevicesNotFoundError: "NotFoundError",
|
|
741
|
-
ConstraintNotSatisfiedError: "OverconstrainedError",
|
|
742
|
-
TrackStartError: "NotReadableError",
|
|
743
|
-
MediaDeviceFailedDueToShutdown: "NotAllowedError",
|
|
744
|
-
MediaDeviceKillSwitchOn: "NotAllowedError",
|
|
745
|
-
TabCaptureError: "AbortError",
|
|
746
|
-
ScreenCaptureError: "AbortError",
|
|
747
|
-
DeviceCaptureError: "AbortError"
|
|
748
|
-
}
|
|
749
|
-
[e.name] || e.name,
|
|
750
|
-
message: e.message,
|
|
751
|
-
constraint: e.constraint || e.constraintName,
|
|
752
|
-
toString: function () {
|
|
753
|
-
return this.name + (this.message && ": ") + this.message
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
}, s.getUserMedia = function (e, t, r) {
|
|
757
|
-
n(e, function (e) {
|
|
758
|
-
s.webkitGetUserMedia(e, t, function (e) {
|
|
759
|
-
r && r(i(e))
|
|
760
|
-
})
|
|
761
|
-
})
|
|
762
|
-
}
|
|
763
|
-
.bind(s), s.mediaDevices.getUserMedia && (r = s.mediaDevices.getUserMedia.bind(s.mediaDevices), s.mediaDevices.getUserMedia = function (e) {
|
|
764
|
-
return n(e, function (t) {
|
|
765
|
-
return r(t).then(function (e) {
|
|
766
|
-
if (t.audio && !e.getAudioTracks().length || t.video && !e.getVideoTracks().length)
|
|
767
|
-
throw e.getTracks().forEach(function (e) {
|
|
768
|
-
e.stop()
|
|
769
|
-
}), new DOMException("", "NotFoundError");
|
|
770
|
-
return e
|
|
771
|
-
}, function (e) {
|
|
772
|
-
return Promise.reject(i(e))
|
|
773
|
-
})
|
|
774
|
-
})
|
|
775
|
-
}))
|
|
776
|
-
};
|
|
777
|
-
var p = function (e) { {
|
|
778
|
-
if (e && e.__esModule)
|
|
779
|
-
return e;
|
|
780
|
-
var t = {};
|
|
781
|
-
if (null != e)
|
|
782
|
-
for (var r in e)
|
|
783
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
784
|
-
return t.default = e,
|
|
785
|
-
t
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
(e("../utils.js")).log
|
|
789
|
-
}, {
|
|
790
|
-
"../utils.js": 11
|
|
791
|
-
}
|
|
792
|
-
],
|
|
793
|
-
6: [function (e, t, r) {
|
|
794
|
-
"use strict";
|
|
795
|
-
Object.defineProperty(r, "__esModule", {
|
|
796
|
-
value: !0
|
|
797
|
-
});
|
|
798
|
-
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
799
|
-
return typeof e
|
|
800
|
-
}
|
|
801
|
-
: function (e) {
|
|
802
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
803
|
-
};
|
|
804
|
-
r.shimRTCIceCandidate = function (t) {
|
|
805
|
-
var i;
|
|
806
|
-
!t.RTCIceCandidate || t.RTCIceCandidate && "foundation" in t.RTCIceCandidate.prototype || (i = t.RTCIceCandidate, t.RTCIceCandidate = function (e) {
|
|
807
|
-
if ("object" === (void 0 === e ? "undefined" : o(e)) && e.candidate && 0 === e.candidate.indexOf("a=") && ((e = JSON.parse(JSON.stringify(e))).candidate = e.candidate.substr(2)), e.candidate && e.candidate.length) {
|
|
808
|
-
var t = new i(e),
|
|
809
|
-
r = a.default.parseCandidate(e.candidate),
|
|
810
|
-
n = Object.assign(t, r);
|
|
811
|
-
return n.toJSON = function () {
|
|
812
|
-
return {
|
|
813
|
-
candidate: n.candidate,
|
|
814
|
-
sdpMid: n.sdpMid,
|
|
815
|
-
sdpMLineIndex: n.sdpMLineIndex,
|
|
816
|
-
usernameFragment: n.usernameFragment
|
|
817
|
-
}
|
|
818
|
-
},
|
|
819
|
-
n
|
|
820
|
-
}
|
|
821
|
-
return new i(e)
|
|
822
|
-
}, t.RTCIceCandidate.prototype = i.prototype, s.wrapPeerConnectionEvent(t, "icecandidate", function (e) {
|
|
823
|
-
return e.candidate && Object.defineProperty(e, "candidate", {
|
|
824
|
-
value: new t.RTCIceCandidate(e.candidate),
|
|
825
|
-
writable: "false"
|
|
826
|
-
}),
|
|
827
|
-
e
|
|
828
|
-
}))
|
|
829
|
-
},
|
|
830
|
-
r.shimMaxMessageSize = function (e, i) {
|
|
831
|
-
var o;
|
|
832
|
-
e.RTCPeerConnection && ("sctp" in e.RTCPeerConnection.prototype || Object.defineProperty(e.RTCPeerConnection.prototype, "sctp", {
|
|
833
|
-
get: function () {
|
|
834
|
-
return void 0 === this._sctp ? null : this._sctp
|
|
835
|
-
}
|
|
836
|
-
}), o = e.RTCPeerConnection.prototype.setRemoteDescription, e.RTCPeerConnection.prototype.setRemoteDescription = function () {
|
|
837
|
-
var e,
|
|
838
|
-
t,
|
|
839
|
-
r,
|
|
840
|
-
n;
|
|
841
|
-
return this._sctp = null,
|
|
842
|
-
"chrome" === i.browser && 76 <= i.version && "plan-b" === this.getConfiguration().sdpSemantics && Object.defineProperty(this, "sctp", {
|
|
843
|
-
get: function () {
|
|
844
|
-
return void 0 === this._sctp ? null : this._sctp
|
|
845
|
-
},
|
|
846
|
-
enumerable: !0,
|
|
847
|
-
configurable: !0
|
|
848
|
-
}),
|
|
849
|
-
function (e) {
|
|
850
|
-
if (!e || !e.sdp)
|
|
851
|
-
return !1;
|
|
852
|
-
e = a.default.splitSections(e.sdp);
|
|
853
|
-
return e.shift(),
|
|
854
|
-
e.some(function (e) {
|
|
855
|
-
e = a.default.parseMLine(e);
|
|
856
|
-
return e && "application" === e.kind && -1 !== e.protocol.indexOf("SCTP")
|
|
857
|
-
})
|
|
858
|
-
}
|
|
859
|
-
(arguments[0]) && (t = function (e) {
|
|
860
|
-
e = e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
|
861
|
-
if (null === e || e.length < 2)
|
|
862
|
-
return -1;
|
|
863
|
-
e = parseInt(e[1], 10);
|
|
864
|
-
return e != e ? -1 : e
|
|
865
|
-
}
|
|
866
|
-
(arguments[0]), r = t, n = 65536, n = n = "firefox" === i.browser ? i.version < 57 ? -1 === r ? 16384 : 2147483637 : i.version < 60 ? 57 === i.version ? 65535 : 65536 : 2147483637 : n, t = function (e, t) {
|
|
867
|
-
var r = 65536;
|
|
868
|
-
"firefox" === i.browser && 57 === i.version && (r = 65535);
|
|
869
|
-
e = a.default.matchPrefix(e.sdp, "a=max-message-size:");
|
|
870
|
-
return 0 < e.length ? r = parseInt(e[0].substr(19), 10) : "firefox" === i.browser && -1 !== t && (r = 2147483637),
|
|
871
|
-
r
|
|
872
|
-
}
|
|
873
|
-
(arguments[0], t), e = void 0, e = 0 === n && 0 === t ? Number.POSITIVE_INFINITY : 0 === n || 0 === t ? Math.max(n, t) : Math.min(n, t), t = {}, Object.defineProperty(t, "maxMessageSize", {
|
|
874
|
-
get: function () {
|
|
875
|
-
return e
|
|
876
|
-
}
|
|
877
|
-
}), this._sctp = t),
|
|
878
|
-
o.apply(this, arguments)
|
|
879
|
-
})
|
|
880
|
-
},
|
|
881
|
-
r.shimSendThrowTypeError = function (e) {
|
|
882
|
-
var t;
|
|
883
|
-
function r(t, r) {
|
|
884
|
-
var n = t.send;
|
|
885
|
-
t.send = function () {
|
|
886
|
-
var e = arguments[0],
|
|
887
|
-
e = e.length || e.size || e.byteLength;
|
|
888
|
-
if ("open" === t.readyState && r.sctp && e > r.sctp.maxMessageSize)
|
|
889
|
-
throw new TypeError("Message too large (can send a maximum of " + r.sctp.maxMessageSize + " bytes)");
|
|
890
|
-
return n.apply(t, arguments)
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
e.RTCPeerConnection && "createDataChannel" in e.RTCPeerConnection.prototype && (t = e.RTCPeerConnection.prototype.createDataChannel, e.RTCPeerConnection.prototype.createDataChannel = function () {
|
|
894
|
-
var e = t.apply(this, arguments);
|
|
895
|
-
return r(e, this),
|
|
896
|
-
e
|
|
897
|
-
}, s.wrapPeerConnectionEvent(e, "datachannel", function (e) {
|
|
898
|
-
return r(e.channel, e.target),
|
|
899
|
-
e
|
|
900
|
-
}))
|
|
901
|
-
},
|
|
902
|
-
r.shimConnectionState = function (e) {
|
|
903
|
-
var r;
|
|
904
|
-
!e.RTCPeerConnection || "connectionState" in e.RTCPeerConnection.prototype || (r = e.RTCPeerConnection.prototype, Object.defineProperty(r, "connectionState", {
|
|
905
|
-
get: function () {
|
|
906
|
-
return {
|
|
907
|
-
completed: "connected",
|
|
908
|
-
checking: "connecting"
|
|
909
|
-
}
|
|
910
|
-
[this.iceConnectionState] || this.iceConnectionState
|
|
911
|
-
},
|
|
912
|
-
enumerable: !0,
|
|
913
|
-
configurable: !0
|
|
914
|
-
}), Object.defineProperty(r, "onconnectionstatechange", {
|
|
915
|
-
get: function () {
|
|
916
|
-
return this._onconnectionstatechange || null
|
|
917
|
-
},
|
|
918
|
-
set: function (e) {
|
|
919
|
-
this._onconnectionstatechange && (this.removeEventListener("connectionstatechange", this._onconnectionstatechange), delete this._onconnectionstatechange),
|
|
920
|
-
e && this.addEventListener("connectionstatechange", this._onconnectionstatechange = e)
|
|
921
|
-
},
|
|
922
|
-
enumerable: !0,
|
|
923
|
-
configurable: !0
|
|
924
|
-
}), ["setLocalDescription", "setRemoteDescription"].forEach(function (e) {
|
|
925
|
-
var t = r[e];
|
|
926
|
-
r[e] = function () {
|
|
927
|
-
return this._connectionstatechangepoly || (this._connectionstatechangepoly = function (e) {
|
|
928
|
-
var t,
|
|
929
|
-
r = e.target;
|
|
930
|
-
return r._lastConnectionState !== r.connectionState && (r._lastConnectionState = r.connectionState, t = new Event("connectionstatechange", e), r.dispatchEvent(t)),
|
|
931
|
-
e
|
|
932
|
-
}, this.addEventListener("iceconnectionstatechange", this._connectionstatechangepoly)),
|
|
933
|
-
t.apply(this, arguments)
|
|
934
|
-
}
|
|
935
|
-
}))
|
|
936
|
-
},
|
|
937
|
-
r.removeExtmapAllowMixed = function (r, e) {
|
|
938
|
-
var n;
|
|
939
|
-
r.RTCPeerConnection && ("chrome" === e.browser && 71 <= e.version || "safari" === e.browser && 605 <= e.version || (n = r.RTCPeerConnection.prototype.setRemoteDescription, r.RTCPeerConnection.prototype.setRemoteDescription = function (e) {
|
|
940
|
-
var t;
|
|
941
|
-
return e && e.sdp && -1 !== e.sdp.indexOf("\na=extmap-allow-mixed") && (t = e.sdp.split("\n").filter(function (e) {
|
|
942
|
-
return "a=extmap-allow-mixed" !== e.trim()
|
|
943
|
-
}).join("\n"), r.RTCSessionDescription && e instanceof r.RTCSessionDescription ? arguments[0] = new r.RTCSessionDescription({
|
|
944
|
-
type: e.type,
|
|
945
|
-
sdp: t
|
|
946
|
-
}) : e.sdp = t),
|
|
947
|
-
n.apply(this, arguments)
|
|
948
|
-
}))
|
|
949
|
-
},
|
|
950
|
-
r.shimAddIceCandidateNullOrEmpty = function (e, t) {
|
|
951
|
-
var r;
|
|
952
|
-
e.RTCPeerConnection && e.RTCPeerConnection.prototype && ((r = e.RTCPeerConnection.prototype.addIceCandidate) && 0 !== r.length && (e.RTCPeerConnection.prototype.addIceCandidate = function () {
|
|
953
|
-
return arguments[0] ? ("chrome" === t.browser && t.version < 78 || "firefox" === t.browser && t.version < 68 || "safari" === t.browser) && arguments[0] && "" === arguments[0].candidate ? Promise.resolve() : r.apply(this, arguments) : (arguments[1] && arguments[1].apply(null), Promise.resolve())
|
|
954
|
-
}))
|
|
955
|
-
},
|
|
956
|
-
r.shimParameterlessSetLocalDescription = function (e, t) {
|
|
957
|
-
var r;
|
|
958
|
-
e.RTCPeerConnection && e.RTCPeerConnection.prototype && ((r = e.RTCPeerConnection.prototype.setLocalDescription) && 0 !== r.length && (e.RTCPeerConnection.prototype.setLocalDescription = function () {
|
|
959
|
-
var t = this,
|
|
960
|
-
e = arguments[0] || {};
|
|
961
|
-
if ("object" !== (void 0 === e ? "undefined" : o(e)) || e.type && e.sdp)
|
|
962
|
-
return r.apply(this, arguments);
|
|
963
|
-
if (!(e = {
|
|
964
|
-
type: e.type,
|
|
965
|
-
sdp: e.sdp
|
|
966
|
-
}).type)
|
|
967
|
-
switch (this.signalingState) {
|
|
968
|
-
case "stable":
|
|
969
|
-
case "have-local-offer":
|
|
970
|
-
case "have-remote-pranswer":
|
|
971
|
-
e.type = "offer";
|
|
972
|
-
break;
|
|
973
|
-
default:
|
|
974
|
-
e.type = "answer"
|
|
975
|
-
}
|
|
976
|
-
return e.sdp || "offer" !== e.type && "answer" !== e.type ? r.apply(this, [e]) : ("offer" === e.type ? this.createOffer : this.createAnswer).apply(this).then(function (e) {
|
|
977
|
-
return r.apply(t, [e])
|
|
978
|
-
})
|
|
979
|
-
}))
|
|
980
|
-
};
|
|
981
|
-
var n,
|
|
982
|
-
i = e("sdp"),
|
|
983
|
-
a = (n = i) && n.__esModule ? n : {
|
|
984
|
-
default:
|
|
985
|
-
n
|
|
986
|
-
},
|
|
987
|
-
s = function (e) { {
|
|
988
|
-
if (e && e.__esModule)
|
|
989
|
-
return e;
|
|
990
|
-
var t = {};
|
|
991
|
-
if (null != e)
|
|
992
|
-
for (var r in e)
|
|
993
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
994
|
-
return t.default = e,
|
|
995
|
-
t
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
(e("./utils"))
|
|
999
|
-
}, {
|
|
1000
|
-
"./utils": 11,
|
|
1001
|
-
sdp: 12
|
|
1002
|
-
}
|
|
1003
|
-
],
|
|
1004
|
-
7: [function (e, t, r) {
|
|
1005
|
-
"use strict";
|
|
1006
|
-
Object.defineProperty(r, "__esModule", {
|
|
1007
|
-
value: !0
|
|
1008
|
-
}),
|
|
1009
|
-
r.shimGetDisplayMedia = r.shimGetUserMedia = void 0;
|
|
1010
|
-
var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1011
|
-
return typeof e
|
|
1012
|
-
}
|
|
1013
|
-
: function (e) {
|
|
1014
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1015
|
-
},
|
|
1016
|
-
n = e("./getusermedia");
|
|
1017
|
-
Object.defineProperty(r, "shimGetUserMedia", {
|
|
1018
|
-
enumerable: !0,
|
|
1019
|
-
get: function () {
|
|
1020
|
-
return n.shimGetUserMedia
|
|
1021
|
-
}
|
|
1022
|
-
});
|
|
1023
|
-
var i = e("./getdisplaymedia");
|
|
1024
|
-
Object.defineProperty(r, "shimGetDisplayMedia", {
|
|
1025
|
-
enumerable: !0,
|
|
1026
|
-
get: function () {
|
|
1027
|
-
return i.shimGetDisplayMedia
|
|
1028
|
-
}
|
|
1029
|
-
}),
|
|
1030
|
-
r.shimOnTrack = function (e) {
|
|
1031
|
-
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCTrackEvent && "receiver" in e.RTCTrackEvent.prototype && !("transceiver" in e.RTCTrackEvent.prototype) && Object.defineProperty(e.RTCTrackEvent.prototype, "transceiver", {
|
|
1032
|
-
get: function () {
|
|
1033
|
-
return {
|
|
1034
|
-
receiver: this.receiver
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
})
|
|
1038
|
-
},
|
|
1039
|
-
r.shimPeerConnection = function (n, i) {
|
|
1040
|
-
var o,
|
|
1041
|
-
r;
|
|
1042
|
-
"object" === (void 0 === n ? "undefined" : a(n)) && (n.RTCPeerConnection || n.mozRTCPeerConnection) && (!n.RTCPeerConnection && n.mozRTCPeerConnection && (n.RTCPeerConnection = n.mozRTCPeerConnection), i.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function (e) {
|
|
1043
|
-
var t = n.RTCPeerConnection.prototype[e],
|
|
1044
|
-
r = function (e, t, r) {
|
|
1045
|
-
t in e ? Object.defineProperty(e, t, {
|
|
1046
|
-
value: r,
|
|
1047
|
-
enumerable: !0,
|
|
1048
|
-
configurable: !0,
|
|
1049
|
-
writable: !0
|
|
1050
|
-
}) : e[t] = r;
|
|
1051
|
-
return e
|
|
1052
|
-
}
|
|
1053
|
-
({}, e, function () {
|
|
1054
|
-
return arguments[0] = new("addIceCandidate" === e ? n.RTCIceCandidate : n.RTCSessionDescription)(arguments[0]),
|
|
1055
|
-
t.apply(this, arguments)
|
|
1056
|
-
});
|
|
1057
|
-
n.RTCPeerConnection.prototype[e] = r[e]
|
|
1058
|
-
}), o = {
|
|
1059
|
-
inboundrtp: "inbound-rtp",
|
|
1060
|
-
outboundrtp: "outbound-rtp",
|
|
1061
|
-
candidatepair: "candidate-pair",
|
|
1062
|
-
localcandidate: "local-candidate",
|
|
1063
|
-
remotecandidate: "remote-candidate"
|
|
1064
|
-
}, r = n.RTCPeerConnection.prototype.getStats, n.RTCPeerConnection.prototype.getStats = function () {
|
|
1065
|
-
var e = Array.prototype.slice.call(arguments),
|
|
1066
|
-
t = e[0],
|
|
1067
|
-
n = e[1],
|
|
1068
|
-
e = e[2];
|
|
1069
|
-
return r.apply(this, [t || null]).then(function (r) {
|
|
1070
|
-
if (i.version < 53 && !n)
|
|
1071
|
-
try {
|
|
1072
|
-
r.forEach(function (e) {
|
|
1073
|
-
e.type = o[e.type] || e.type
|
|
1074
|
-
})
|
|
1075
|
-
} catch (e) {
|
|
1076
|
-
if ("TypeError" !== e.name)
|
|
1077
|
-
throw e;
|
|
1078
|
-
r.forEach(function (e, t) {
|
|
1079
|
-
r.set(t, Object.assign({}, e, {
|
|
1080
|
-
type: o[e.type] || e.type
|
|
1081
|
-
}))
|
|
1082
|
-
})
|
|
1083
|
-
}
|
|
1084
|
-
return r
|
|
1085
|
-
}).then(n, e)
|
|
1086
|
-
})
|
|
1087
|
-
},
|
|
1088
|
-
r.shimSenderGetStats = function (e) {
|
|
1089
|
-
var r,
|
|
1090
|
-
t;
|
|
1091
|
-
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && e.RTCRtpSender && (e.RTCRtpSender && "getStats" in e.RTCRtpSender.prototype || ((r = e.RTCPeerConnection.prototype.getSenders) && (e.RTCPeerConnection.prototype.getSenders = function () {
|
|
1092
|
-
var t = this,
|
|
1093
|
-
e = r.apply(this, []);
|
|
1094
|
-
return e.forEach(function (e) {
|
|
1095
|
-
return e._pc = t
|
|
1096
|
-
}),
|
|
1097
|
-
e
|
|
1098
|
-
}), (t = e.RTCPeerConnection.prototype.addTrack) && (e.RTCPeerConnection.prototype.addTrack = function () {
|
|
1099
|
-
var e = t.apply(this, arguments);
|
|
1100
|
-
return e._pc = this,
|
|
1101
|
-
e
|
|
1102
|
-
}), e.RTCRtpSender.prototype.getStats = function () {
|
|
1103
|
-
return this.track ? this._pc.getStats(this.track) : Promise.resolve(new Map)
|
|
1104
|
-
}))
|
|
1105
|
-
},
|
|
1106
|
-
r.shimReceiverGetStats = function (e) {
|
|
1107
|
-
var r;
|
|
1108
|
-
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && e.RTCRtpSender && (e.RTCRtpSender && "getStats" in e.RTCRtpReceiver.prototype || ((r = e.RTCPeerConnection.prototype.getReceivers) && (e.RTCPeerConnection.prototype.getReceivers = function () {
|
|
1109
|
-
var t = this,
|
|
1110
|
-
e = r.apply(this, []);
|
|
1111
|
-
return e.forEach(function (e) {
|
|
1112
|
-
return e._pc = t
|
|
1113
|
-
}),
|
|
1114
|
-
e
|
|
1115
|
-
}), o.wrapPeerConnectionEvent(e, "track", function (e) {
|
|
1116
|
-
return e.receiver._pc = e.srcElement,
|
|
1117
|
-
e
|
|
1118
|
-
}), e.RTCRtpReceiver.prototype.getStats = function () {
|
|
1119
|
-
return this._pc.getStats(this.track)
|
|
1120
|
-
}))
|
|
1121
|
-
},
|
|
1122
|
-
r.shimRemoveStream = function (e) {
|
|
1123
|
-
!e.RTCPeerConnection || "removeStream" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.removeStream = function (t) {
|
|
1124
|
-
var r = this;
|
|
1125
|
-
o.deprecated("removeStream", "removeTrack"),
|
|
1126
|
-
this.getSenders().forEach(function (e) {
|
|
1127
|
-
e.track && t.getTracks().includes(e.track) && r.removeTrack(e)
|
|
1128
|
-
})
|
|
1129
|
-
})
|
|
1130
|
-
},
|
|
1131
|
-
r.shimRTCDataChannel = function (e) {
|
|
1132
|
-
e.DataChannel && !e.RTCDataChannel && (e.RTCDataChannel = e.DataChannel)
|
|
1133
|
-
},
|
|
1134
|
-
r.shimAddTransceiver = function (e) {
|
|
1135
|
-
var i;
|
|
1136
|
-
"object" !== (void 0 === e ? "undefined" : a(e)) || !e.RTCPeerConnection || (i = e.RTCPeerConnection.prototype.addTransceiver) && (e.RTCPeerConnection.prototype.addTransceiver = function () {
|
|
1137
|
-
this.setParametersPromises = [];
|
|
1138
|
-
var e = arguments[1],
|
|
1139
|
-
t = e && "sendEncodings" in e;
|
|
1140
|
-
t && e.sendEncodings.forEach(function (e) {
|
|
1141
|
-
if ("rid" in e)
|
|
1142
|
-
if (!/^[a-z0-9]{0,16}$/i.test(e.rid))
|
|
1143
|
-
throw new TypeError("Invalid RID value provided.");
|
|
1144
|
-
if ("scaleResolutionDownBy" in e && !(1 <= parseFloat(e.scaleResolutionDownBy)))
|
|
1145
|
-
throw new RangeError("scale_resolution_down_by must be >= 1.0");
|
|
1146
|
-
if ("maxFramerate" in e && !(0 <= parseFloat(e.maxFramerate)))
|
|
1147
|
-
throw new RangeError("max_framerate must be >= 0.0")
|
|
1148
|
-
});
|
|
1149
|
-
var r,
|
|
1150
|
-
n = i.apply(this, arguments);
|
|
1151
|
-
return t && ("encodings" in(t = (r = n.sender).getParameters()) && (1 !== t.encodings.length || 0 !== Object.keys(t.encodings[0]).length) || (t.encodings = e.sendEncodings, r.sendEncodings = e.sendEncodings, this.setParametersPromises.push(r.setParameters(t).then(function () {
|
|
1152
|
-
delete r.sendEncodings
|
|
1153
|
-
}).catch(function () {
|
|
1154
|
-
delete r.sendEncodings
|
|
1155
|
-
})))),
|
|
1156
|
-
n
|
|
1157
|
-
})
|
|
1158
|
-
},
|
|
1159
|
-
r.shimGetParameters = function (e) {
|
|
1160
|
-
var t;
|
|
1161
|
-
"object" !== (void 0 === e ? "undefined" : a(e)) || !e.RTCRtpSender || (t = e.RTCRtpSender.prototype.getParameters) && (e.RTCRtpSender.prototype.getParameters = function () {
|
|
1162
|
-
var e = t.apply(this, arguments);
|
|
1163
|
-
return "encodings" in e || (e.encodings = [].concat(this.sendEncodings || [{}
|
|
1164
|
-
])),
|
|
1165
|
-
e
|
|
1166
|
-
})
|
|
1167
|
-
},
|
|
1168
|
-
r.shimCreateOffer = function (e) {
|
|
1169
|
-
var r;
|
|
1170
|
-
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && (r = e.RTCPeerConnection.prototype.createOffer, e.RTCPeerConnection.prototype.createOffer = function () {
|
|
1171
|
-
var e = this,
|
|
1172
|
-
t = arguments;
|
|
1173
|
-
return this.setParametersPromises && this.setParametersPromises.length ? Promise.all(this.setParametersPromises).then(function () {
|
|
1174
|
-
return r.apply(e, t)
|
|
1175
|
-
}).finally(function () {
|
|
1176
|
-
e.setParametersPromises = []
|
|
1177
|
-
}) : r.apply(this, arguments)
|
|
1178
|
-
})
|
|
1179
|
-
},
|
|
1180
|
-
r.shimCreateAnswer = function (e) {
|
|
1181
|
-
var r;
|
|
1182
|
-
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && (r = e.RTCPeerConnection.prototype.createAnswer, e.RTCPeerConnection.prototype.createAnswer = function () {
|
|
1183
|
-
var e = this,
|
|
1184
|
-
t = arguments;
|
|
1185
|
-
return this.setParametersPromises && this.setParametersPromises.length ? Promise.all(this.setParametersPromises).then(function () {
|
|
1186
|
-
return r.apply(e, t)
|
|
1187
|
-
}).finally(function () {
|
|
1188
|
-
e.setParametersPromises = []
|
|
1189
|
-
}) : r.apply(this, arguments)
|
|
1190
|
-
})
|
|
1191
|
-
};
|
|
1192
|
-
var o = function (e) { {
|
|
1193
|
-
if (e && e.__esModule)
|
|
1194
|
-
return e;
|
|
1195
|
-
var t = {};
|
|
1196
|
-
if (null != e)
|
|
1197
|
-
for (var r in e)
|
|
1198
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
1199
|
-
return t.default = e,
|
|
1200
|
-
t
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
(e("../utils"))
|
|
1204
|
-
}, {
|
|
1205
|
-
"../utils": 11,
|
|
1206
|
-
"./getdisplaymedia": 8,
|
|
1207
|
-
"./getusermedia": 9
|
|
1208
|
-
}
|
|
1209
|
-
],
|
|
1210
|
-
8: [function (e, t, r) {
|
|
1211
|
-
"use strict";
|
|
1212
|
-
Object.defineProperty(r, "__esModule", {
|
|
1213
|
-
value: !0
|
|
1214
|
-
}),
|
|
1215
|
-
r.shimGetDisplayMedia = function (t, r) {
|
|
1216
|
-
t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices || t.navigator.mediaDevices && (t.navigator.mediaDevices.getDisplayMedia = function (e) {
|
|
1217
|
-
if (e && e.video)
|
|
1218
|
-
return !0 === e.video ? e.video = {
|
|
1219
|
-
mediaSource: r
|
|
1220
|
-
}
|
|
1221
|
-
: e.video.mediaSource = r,
|
|
1222
|
-
t.navigator.mediaDevices.getUserMedia(e);
|
|
1223
|
-
e = new DOMException("getDisplayMedia without video constraints is undefined");
|
|
1224
|
-
return e.name = "NotFoundError",
|
|
1225
|
-
e.code = 8,
|
|
1226
|
-
Promise.reject(e)
|
|
1227
|
-
})
|
|
1228
|
-
}
|
|
1229
|
-
}, {}
|
|
1230
|
-
],
|
|
1231
|
-
9: [function (e, t, r) {
|
|
1232
|
-
"use strict";
|
|
1233
|
-
Object.defineProperty(r, "__esModule", {
|
|
1234
|
-
value: !0
|
|
1235
|
-
});
|
|
1236
|
-
var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1237
|
-
return typeof e
|
|
1238
|
-
}
|
|
1239
|
-
: function (e) {
|
|
1240
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1241
|
-
};
|
|
1242
|
-
r.shimGetUserMedia = function (e, t) {
|
|
1243
|
-
var n = e && e.navigator,
|
|
1244
|
-
e = e && e.MediaStreamTrack; {
|
|
1245
|
-
var r,
|
|
1246
|
-
i,
|
|
1247
|
-
o,
|
|
1248
|
-
a;
|
|
1249
|
-
n.getUserMedia = function (e, t, r) {
|
|
1250
|
-
c.deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"),
|
|
1251
|
-
n.mediaDevices.getUserMedia(e).then(t, r)
|
|
1252
|
-
},
|
|
1253
|
-
55 < t.version && "autoGainControl" in n.mediaDevices.getSupportedConstraints() || (r = function (e, t, r) {
|
|
1254
|
-
t in e && !(r in e) && (e[r] = e[t], delete e[t])
|
|
1255
|
-
}, i = n.mediaDevices.getUserMedia.bind(n.mediaDevices), n.mediaDevices.getUserMedia = function (e) {
|
|
1256
|
-
return "object" === (void 0 === e ? "undefined" : s(e)) && "object" === s(e.audio) && (e = JSON.parse(JSON.stringify(e)), r(e.audio, "autoGainControl", "mozAutoGainControl"), r(e.audio, "noiseSuppression", "mozNoiseSuppression")),
|
|
1257
|
-
i(e)
|
|
1258
|
-
}, e && e.prototype.getSettings && (o = e.prototype.getSettings, e.prototype.getSettings = function () {
|
|
1259
|
-
var e = o.apply(this, arguments);
|
|
1260
|
-
return r(e, "mozAutoGainControl", "autoGainControl"),
|
|
1261
|
-
r(e, "mozNoiseSuppression", "noiseSuppression"),
|
|
1262
|
-
e
|
|
1263
|
-
}), e && e.prototype.applyConstraints && (a = e.prototype.applyConstraints, e.prototype.applyConstraints = function (e) {
|
|
1264
|
-
return "audio" === this.kind && "object" === (void 0 === e ? "undefined" : s(e)) && (e = JSON.parse(JSON.stringify(e)), r(e, "autoGainControl", "mozAutoGainControl"), r(e, "noiseSuppression", "mozNoiseSuppression")),
|
|
1265
|
-
a.apply(this, [e])
|
|
1266
|
-
}))
|
|
1267
|
-
}
|
|
1268
|
-
};
|
|
1269
|
-
var c = function (e) { {
|
|
1270
|
-
if (e && e.__esModule)
|
|
1271
|
-
return e;
|
|
1272
|
-
var t = {};
|
|
1273
|
-
if (null != e)
|
|
1274
|
-
for (var r in e)
|
|
1275
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
1276
|
-
return t.default = e,
|
|
1277
|
-
t
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
(e("../utils"))
|
|
1281
|
-
}, {
|
|
1282
|
-
"../utils": 11
|
|
1283
|
-
}
|
|
1284
|
-
],
|
|
1285
|
-
10: [function (e, t, r) {
|
|
1286
|
-
"use strict";
|
|
1287
|
-
Object.defineProperty(r, "__esModule", {
|
|
1288
|
-
value: !0
|
|
1289
|
-
});
|
|
1290
|
-
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1291
|
-
return typeof e
|
|
1292
|
-
}
|
|
1293
|
-
: function (e) {
|
|
1294
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1295
|
-
};
|
|
1296
|
-
r.shimLocalStreamsAPI = function (e) {
|
|
1297
|
-
var o;
|
|
1298
|
-
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCPeerConnection && ("getLocalStreams" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.getLocalStreams = function () {
|
|
1299
|
-
return this._localStreams || (this._localStreams = []),
|
|
1300
|
-
this._localStreams
|
|
1301
|
-
}), "addStream" in e.RTCPeerConnection.prototype || (o = e.RTCPeerConnection.prototype.addTrack, e.RTCPeerConnection.prototype.addStream = function (t) {
|
|
1302
|
-
var r = this;
|
|
1303
|
-
this._localStreams || (this._localStreams = []),
|
|
1304
|
-
this._localStreams.includes(t) || this._localStreams.push(t),
|
|
1305
|
-
t.getAudioTracks().forEach(function (e) {
|
|
1306
|
-
return o.call(r, e, t)
|
|
1307
|
-
}),
|
|
1308
|
-
t.getVideoTracks().forEach(function (e) {
|
|
1309
|
-
return o.call(r, e, t)
|
|
1310
|
-
})
|
|
1311
|
-
}, e.RTCPeerConnection.prototype.addTrack = function (e) {
|
|
1312
|
-
for (var t = this, r = arguments.length, n = Array(1 < r ? r - 1 : 0), i = 1; i < r; i++)
|
|
1313
|
-
n[i - 1] = arguments[i];
|
|
1314
|
-
return n && n.forEach(function (e) {
|
|
1315
|
-
t._localStreams ? t._localStreams.includes(e) || t._localStreams.push(e) : t._localStreams = [e]
|
|
1316
|
-
}),
|
|
1317
|
-
o.apply(this, arguments)
|
|
1318
|
-
}), "removeStream" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
1319
|
-
var t = this;
|
|
1320
|
-
this._localStreams || (this._localStreams = []);
|
|
1321
|
-
var r,
|
|
1322
|
-
n = this._localStreams.indexOf(e);
|
|
1323
|
-
-1 !== n && (this._localStreams.splice(n, 1), r = e.getTracks(), this.getSenders().forEach(function (e) {
|
|
1324
|
-
r.includes(e.track) && t.removeTrack(e)
|
|
1325
|
-
}))
|
|
1326
|
-
}))
|
|
1327
|
-
},
|
|
1328
|
-
r.shimRemoteStreamsAPI = function (e) {
|
|
1329
|
-
var t;
|
|
1330
|
-
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCPeerConnection && ("getRemoteStreams" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.getRemoteStreams = function () {
|
|
1331
|
-
return this._remoteStreams || []
|
|
1332
|
-
}), "onaddstream" in e.RTCPeerConnection.prototype || (Object.defineProperty(e.RTCPeerConnection.prototype, "onaddstream", {
|
|
1333
|
-
get: function () {
|
|
1334
|
-
return this._onaddstream
|
|
1335
|
-
},
|
|
1336
|
-
set: function (e) {
|
|
1337
|
-
var r = this;
|
|
1338
|
-
this._onaddstream && (this.removeEventListener("addstream", this._onaddstream), this.removeEventListener("track", this._onaddstreampoly)),
|
|
1339
|
-
this.addEventListener("addstream", this._onaddstream = e),
|
|
1340
|
-
this.addEventListener("track", this._onaddstreampoly = function (e) {
|
|
1341
|
-
e.streams.forEach(function (e) {
|
|
1342
|
-
var t;
|
|
1343
|
-
r._remoteStreams || (r._remoteStreams = []),
|
|
1344
|
-
r._remoteStreams.includes(e) || (r._remoteStreams.push(e), (t = new Event("addstream")).stream = e, r.dispatchEvent(t))
|
|
1345
|
-
})
|
|
1346
|
-
})
|
|
1347
|
-
}
|
|
1348
|
-
}), t = e.RTCPeerConnection.prototype.setRemoteDescription, e.RTCPeerConnection.prototype.setRemoteDescription = function () {
|
|
1349
|
-
var r = this;
|
|
1350
|
-
return this._onaddstreampoly || this.addEventListener("track", this._onaddstreampoly = function (e) {
|
|
1351
|
-
e.streams.forEach(function (e) {
|
|
1352
|
-
var t;
|
|
1353
|
-
r._remoteStreams || (r._remoteStreams = []),
|
|
1354
|
-
0 <= r._remoteStreams.indexOf(e) || (r._remoteStreams.push(e), (t = new Event("addstream")).stream = e, r.dispatchEvent(t))
|
|
1355
|
-
})
|
|
1356
|
-
}),
|
|
1357
|
-
t.apply(r, arguments)
|
|
1358
|
-
}))
|
|
1359
|
-
},
|
|
1360
|
-
r.shimCallbacksAPI = function (e) {
|
|
1361
|
-
var t,
|
|
1362
|
-
n,
|
|
1363
|
-
i,
|
|
1364
|
-
o,
|
|
1365
|
-
a,
|
|
1366
|
-
s;
|
|
1367
|
-
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCPeerConnection && (t = e.RTCPeerConnection.prototype, n = t.createOffer, i = t.createAnswer, o = t.setLocalDescription, a = t.setRemoteDescription, s = t.addIceCandidate, t.createOffer = function (e, t) {
|
|
1368
|
-
var r = n.apply(this, [2 <= arguments.length ? arguments[2] : e]);
|
|
1369
|
-
return t ? (r.then(e, t), Promise.resolve()) : r
|
|
1370
|
-
}, t.createAnswer = function (e, t) {
|
|
1371
|
-
var r = i.apply(this, [2 <= arguments.length ? arguments[2] : e]);
|
|
1372
|
-
return t ? (r.then(e, t), Promise.resolve()) : r
|
|
1373
|
-
}, e = function (e, t, r) {
|
|
1374
|
-
e = o.apply(this, [e]);
|
|
1375
|
-
return r ? (e.then(t, r), Promise.resolve()) : e
|
|
1376
|
-
}, t.setLocalDescription = e, e = function (e, t, r) {
|
|
1377
|
-
e = a.apply(this, [e]);
|
|
1378
|
-
return r ? (e.then(t, r), Promise.resolve()) : e
|
|
1379
|
-
}, t.setRemoteDescription = e, e = function (e, t, r) {
|
|
1380
|
-
e = s.apply(this, [e]);
|
|
1381
|
-
return r ? (e.then(t, r), Promise.resolve()) : e
|
|
1382
|
-
}, t.addIceCandidate = e)
|
|
1383
|
-
},
|
|
1384
|
-
r.shimGetUserMedia = function (e) {
|
|
1385
|
-
var n = e && e.navigator; {
|
|
1386
|
-
var t;
|
|
1387
|
-
n.mediaDevices && n.mediaDevices.getUserMedia && (e = n.mediaDevices, t = e.getUserMedia.bind(e), n.mediaDevices.getUserMedia = function (e) {
|
|
1388
|
-
return t(i(e))
|
|
1389
|
-
})
|
|
1390
|
-
}
|
|
1391
|
-
!n.getUserMedia && n.mediaDevices && n.mediaDevices.getUserMedia && (n.getUserMedia = function (e, t, r) {
|
|
1392
|
-
n.mediaDevices.getUserMedia(e).then(t, r)
|
|
1393
|
-
}
|
|
1394
|
-
.bind(n))
|
|
1395
|
-
},
|
|
1396
|
-
r.shimConstraints = i,
|
|
1397
|
-
r.shimRTCIceServerUrls = function (e) {
|
|
1398
|
-
var o;
|
|
1399
|
-
e.RTCPeerConnection && (o = e.RTCPeerConnection, e.RTCPeerConnection = function (e, t) {
|
|
1400
|
-
if (e && e.iceServers) {
|
|
1401
|
-
for (var r = [], n = 0; n < e.iceServers.length; n++) {
|
|
1402
|
-
var i = e.iceServers[n];
|
|
1403
|
-
!i.hasOwnProperty("urls") && i.hasOwnProperty("url") ? (a.deprecated("RTCIceServer.url", "RTCIceServer.urls"), (i = JSON.parse(JSON.stringify(i))).urls = i.url, delete i.url, r.push(i)) : r.push(e.iceServers[n])
|
|
1404
|
-
}
|
|
1405
|
-
e.iceServers = r
|
|
1406
|
-
}
|
|
1407
|
-
return new o(e, t)
|
|
1408
|
-
}, e.RTCPeerConnection.prototype = o.prototype, "generateCertificate" in o && Object.defineProperty(e.RTCPeerConnection, "generateCertificate", {
|
|
1409
|
-
get: function () {
|
|
1410
|
-
return o.generateCertificate
|
|
1411
|
-
}
|
|
1412
|
-
}))
|
|
1413
|
-
},
|
|
1414
|
-
r.shimTrackEventTransceiver = function (e) {
|
|
1415
|
-
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCTrackEvent && "receiver" in e.RTCTrackEvent.prototype && !("transceiver" in e.RTCTrackEvent.prototype) && Object.defineProperty(e.RTCTrackEvent.prototype, "transceiver", {
|
|
1416
|
-
get: function () {
|
|
1417
|
-
return {
|
|
1418
|
-
receiver: this.receiver
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
})
|
|
1422
|
-
},
|
|
1423
|
-
r.shimCreateOfferLegacy = function (e) {
|
|
1424
|
-
var r = e.RTCPeerConnection.prototype.createOffer;
|
|
1425
|
-
e.RTCPeerConnection.prototype.createOffer = function (e) {
|
|
1426
|
-
var t;
|
|
1427
|
-
return e && (void 0 !== e.offerToReceiveAudio && (e.offerToReceiveAudio = !!e.offerToReceiveAudio), t = this.getTransceivers().find(function (e) {
|
|
1428
|
-
return "audio" === e.receiver.track.kind
|
|
1429
|
-
}), !1 === e.offerToReceiveAudio && t ? "sendrecv" === t.direction ? t.setDirection ? t.setDirection("sendonly") : t.direction = "sendonly" : "recvonly" === t.direction && (t.setDirection ? t.setDirection("inactive") : t.direction = "inactive") : !0 !== e.offerToReceiveAudio || t || this.addTransceiver("audio", {
|
|
1430
|
-
direction: "recvonly"
|
|
1431
|
-
}), void 0 !== e.offerToReceiveVideo && (e.offerToReceiveVideo = !!e.offerToReceiveVideo), t = this.getTransceivers().find(function (e) {
|
|
1432
|
-
return "video" === e.receiver.track.kind
|
|
1433
|
-
}), !1 === e.offerToReceiveVideo && t ? "sendrecv" === t.direction ? t.setDirection ? t.setDirection("sendonly") : t.direction = "sendonly" : "recvonly" === t.direction && (t.setDirection ? t.setDirection("inactive") : t.direction = "inactive") : !0 !== e.offerToReceiveVideo || t || this.addTransceiver("video", {
|
|
1434
|
-
direction: "recvonly"
|
|
1435
|
-
})),
|
|
1436
|
-
r.apply(this, arguments)
|
|
1437
|
-
}
|
|
1438
|
-
},
|
|
1439
|
-
r.shimAudioContext = function (e) {
|
|
1440
|
-
"object" !== (void 0 === e ? "undefined" : c(e)) || e.AudioContext || (e.AudioContext = e.webkitAudioContext)
|
|
1441
|
-
};
|
|
1442
|
-
var a = function (e) { {
|
|
1443
|
-
if (e && e.__esModule)
|
|
1444
|
-
return e;
|
|
1445
|
-
var t = {};
|
|
1446
|
-
if (null != e)
|
|
1447
|
-
for (var r in e)
|
|
1448
|
-
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
1449
|
-
return t.default = e,
|
|
1450
|
-
t
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
(e("../utils"));
|
|
1454
|
-
function i(e) {
|
|
1455
|
-
return e && void 0 !== e.video ? Object.assign({}, e, {
|
|
1456
|
-
video: a.compactObject(e.video)
|
|
1457
|
-
}) : e
|
|
1458
|
-
}
|
|
1459
|
-
}, {
|
|
1460
|
-
"../utils": 11
|
|
1461
|
-
}
|
|
1462
|
-
],
|
|
1463
|
-
11: [function (e, t, r) {
|
|
1464
|
-
"use strict";
|
|
1465
|
-
Object.defineProperty(r, "__esModule", {
|
|
1466
|
-
value: !0
|
|
1467
|
-
});
|
|
1468
|
-
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1469
|
-
return typeof e
|
|
1470
|
-
}
|
|
1471
|
-
: function (e) {
|
|
1472
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1473
|
-
};
|
|
1474
|
-
function a(e, t, r) {
|
|
1475
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
1476
|
-
value: r,
|
|
1477
|
-
enumerable: !0,
|
|
1478
|
-
configurable: !0,
|
|
1479
|
-
writable: !0
|
|
1480
|
-
}) : e[t] = r,
|
|
1481
|
-
e
|
|
1482
|
-
}
|
|
1483
|
-
r.extractVersion = s,
|
|
1484
|
-
r.wrapPeerConnectionEvent = function (e, n, i) {
|
|
1485
|
-
var o,
|
|
1486
|
-
a;
|
|
1487
|
-
e.RTCPeerConnection && (e = e.RTCPeerConnection.prototype, o = e.addEventListener, e.addEventListener = function (e, t) {
|
|
1488
|
-
if (e !== n)
|
|
1489
|
-
return o.apply(this, arguments);
|
|
1490
|
-
function r(e) {
|
|
1491
|
-
(e = i(e)) && (t.handleEvent ? t.handleEvent(e) : t(e))
|
|
1492
|
-
}
|
|
1493
|
-
return this._eventMap = this._eventMap || {},
|
|
1494
|
-
this._eventMap[n] || (this._eventMap[n] = new Map),
|
|
1495
|
-
this._eventMap[n].set(t, r),
|
|
1496
|
-
o.apply(this, [e, r])
|
|
1497
|
-
}, a = e.removeEventListener, e.removeEventListener = function (e, t) {
|
|
1498
|
-
if (e !== n || !this._eventMap || !this._eventMap[n])
|
|
1499
|
-
return a.apply(this, arguments);
|
|
1500
|
-
if (!this._eventMap[n].has(t))
|
|
1501
|
-
return a.apply(this, arguments);
|
|
1502
|
-
var r = this._eventMap[n].get(t);
|
|
1503
|
-
return this._eventMap[n].delete(t),
|
|
1504
|
-
0 === this._eventMap[n].size && delete this._eventMap[n],
|
|
1505
|
-
0 === Object.keys(this._eventMap).length && delete this._eventMap,
|
|
1506
|
-
a.apply(this, [e, r])
|
|
1507
|
-
}, Object.defineProperty(e, "on" + n, {
|
|
1508
|
-
get: function () {
|
|
1509
|
-
return this["_on" + n]
|
|
1510
|
-
},
|
|
1511
|
-
set: function (e) {
|
|
1512
|
-
this["_on" + n] && (this.removeEventListener(n, this["_on" + n]), delete this["_on" + n]),
|
|
1513
|
-
e && this.addEventListener(n, this["_on" + n] = e)
|
|
1514
|
-
},
|
|
1515
|
-
enumerable: !0,
|
|
1516
|
-
configurable: !0
|
|
1517
|
-
}))
|
|
1518
|
-
},
|
|
1519
|
-
r.disableLog = function (e) {
|
|
1520
|
-
return "boolean" == typeof e ? (i = e) ? "adapter.js logging disabled" : "adapter.js logging enabled" : new Error("Argument type: " + (void 0 === e ? "undefined" : n(e)) + ". Please use a boolean.")
|
|
1521
|
-
},
|
|
1522
|
-
r.disableWarnings = function (e) {
|
|
1523
|
-
return "boolean" == typeof e ? (o = !e, "adapter.js deprecation warnings " + (e ? "disabled" : "enabled")) : new Error("Argument type: " + (void 0 === e ? "undefined" : n(e)) + ". Please use a boolean.")
|
|
1524
|
-
},
|
|
1525
|
-
r.log = function () {
|
|
1526
|
-
"object" === ("undefined" == typeof window ? "undefined" : n(window)) && (i || "undefined" != typeof console && "function" == typeof console.log && console.log.apply(console, arguments))
|
|
1527
|
-
},
|
|
1528
|
-
r.deprecated = function (e, t) {
|
|
1529
|
-
o && console.warn(e + " is deprecated, please use " + t + " instead.")
|
|
1530
|
-
},
|
|
1531
|
-
r.detectBrowser = function (e) {
|
|
1532
|
-
var t = {
|
|
1533
|
-
browser: null,
|
|
1534
|
-
version: null
|
|
1535
|
-
};
|
|
1536
|
-
if (void 0 === e || !e.navigator)
|
|
1537
|
-
return t.browser = "Not a browser.", t;
|
|
1538
|
-
var r = e.navigator;
|
|
1539
|
-
if (r.mozGetUserMedia)
|
|
1540
|
-
t.browser = "firefox", t.version = s(r.userAgent, /Firefox\/(\d+)\./, 1);
|
|
1541
|
-
else if (r.webkitGetUserMedia || !1 === e.isSecureContext && e.webkitRTCPeerConnection && !e.RTCIceGatherer)
|
|
1542
|
-
t.browser = "chrome", t.version = s(r.userAgent, /Chrom(e|ium)\/(\d+)\./, 2);
|
|
1543
|
-
else {
|
|
1544
|
-
if (!e.RTCPeerConnection || !r.userAgent.match(/AppleWebKit\/(\d+)\./))
|
|
1545
|
-
return t.browser = "Not a supported browser.", t;
|
|
1546
|
-
t.browser = "safari",
|
|
1547
|
-
t.version = s(r.userAgent, /AppleWebKit\/(\d+)\./, 1),
|
|
1548
|
-
t.supportsUnifiedPlan = e.RTCRtpTransceiver && "currentDirection" in e.RTCRtpTransceiver.prototype
|
|
1549
|
-
}
|
|
1550
|
-
return t
|
|
1551
|
-
},
|
|
1552
|
-
r.compactObject = function i(o) {
|
|
1553
|
-
if (!c(o))
|
|
1554
|
-
return o;
|
|
1555
|
-
return Object.keys(o).reduce(function (e, t) {
|
|
1556
|
-
var r = c(o[t]),
|
|
1557
|
-
n = r ? i(o[t]) : o[t],
|
|
1558
|
-
r = r && !Object.keys(n).length;
|
|
1559
|
-
return void 0 === n || r ? e : Object.assign(e, a({}, t, n))
|
|
1560
|
-
}, {})
|
|
1561
|
-
},
|
|
1562
|
-
r.walkStats = p,
|
|
1563
|
-
r.filterStats = function (r, t, e) {
|
|
1564
|
-
var n = e ? "outbound-rtp" : "inbound-rtp",
|
|
1565
|
-
i = new Map;
|
|
1566
|
-
if (null === t)
|
|
1567
|
-
return i;
|
|
1568
|
-
var o = [];
|
|
1569
|
-
return r.forEach(function (e) {
|
|
1570
|
-
"track" === e.type && e.trackIdentifier === t.id && o.push(e)
|
|
1571
|
-
}),
|
|
1572
|
-
o.forEach(function (t) {
|
|
1573
|
-
r.forEach(function (e) {
|
|
1574
|
-
e.type === n && e.trackId === t.id && p(r, e, i)
|
|
1575
|
-
})
|
|
1576
|
-
}),
|
|
1577
|
-
i
|
|
1578
|
-
};
|
|
1579
|
-
var i = !0,
|
|
1580
|
-
o = !0;
|
|
1581
|
-
function s(e, t, r) {
|
|
1582
|
-
t = e.match(t);
|
|
1583
|
-
return t && t.length >= r && parseInt(t[r], 10)
|
|
1584
|
-
}
|
|
1585
|
-
function c(e) {
|
|
1586
|
-
return "[object Object]" === Object.prototype.toString.call(e)
|
|
1587
|
-
}
|
|
1588
|
-
function p(t, r, n) {
|
|
1589
|
-
r && !n.has(r.id) && (n.set(r.id, r), Object.keys(r).forEach(function (e) {
|
|
1590
|
-
e.endsWith("Id") ? p(t, t.get(r[e]), n) : e.endsWith("Ids") && r[e].forEach(function (e) {
|
|
1591
|
-
p(t, t.get(e), n)
|
|
1592
|
-
})
|
|
1593
|
-
}))
|
|
1594
|
-
}
|
|
1595
|
-
}, {}
|
|
1596
|
-
],
|
|
1597
|
-
12: [function (e, t, r) {
|
|
1598
|
-
"use strict";
|
|
1599
|
-
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1600
|
-
return typeof e
|
|
1601
|
-
}
|
|
1602
|
-
: function (e) {
|
|
1603
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1604
|
-
},
|
|
1605
|
-
p = {
|
|
1606
|
-
generateIdentifier: function () {
|
|
1607
|
-
return Math.random().toString(36).substr(2, 10)
|
|
1608
|
-
}
|
|
1609
|
-
};
|
|
1610
|
-
p.localCName = p.generateIdentifier(),
|
|
1611
|
-
p.splitLines = function (e) {
|
|
1612
|
-
return e.trim().split("\n").map(function (e) {
|
|
1613
|
-
return e.trim()
|
|
1614
|
-
})
|
|
1615
|
-
},
|
|
1616
|
-
p.splitSections = function (e) {
|
|
1617
|
-
return e.split("\nm=").map(function (e, t) {
|
|
1618
|
-
return (0 < t ? "m=" + e : e).trim() + "\r\n"
|
|
1619
|
-
})
|
|
1620
|
-
},
|
|
1621
|
-
p.getDescription = function (e) {
|
|
1622
|
-
e = p.splitSections(e);
|
|
1623
|
-
return e && e[0]
|
|
1624
|
-
},
|
|
1625
|
-
p.getMediaSections = function (e) {
|
|
1626
|
-
e = p.splitSections(e);
|
|
1627
|
-
return e.shift(),
|
|
1628
|
-
e
|
|
1629
|
-
},
|
|
1630
|
-
p.matchPrefix = function (e, t) {
|
|
1631
|
-
return p.splitLines(e).filter(function (e) {
|
|
1632
|
-
return 0 === e.indexOf(t)
|
|
1633
|
-
})
|
|
1634
|
-
},
|
|
1635
|
-
p.parseCandidate = function (e) {
|
|
1636
|
-
for (var t = void 0, r = {
|
|
1637
|
-
foundation: (t = (0 === e.indexOf("a=candidate:") ? e.substring(12) : e.substring(10)).split(" "))[0],
|
|
1638
|
-
component: {
|
|
1639
|
-
1: "rtp",
|
|
1640
|
-
2: "rtcp"
|
|
1641
|
-
}
|
|
1642
|
-
[t[1]] || t[1],
|
|
1643
|
-
protocol: t[2].toLowerCase(),
|
|
1644
|
-
priority: parseInt(t[3], 10),
|
|
1645
|
-
ip: t[4],
|
|
1646
|
-
address: t[4],
|
|
1647
|
-
port: parseInt(t[5], 10),
|
|
1648
|
-
type: t[7]
|
|
1649
|
-
}, n = 8; n < t.length; n += 2)
|
|
1650
|
-
switch (t[n]) {
|
|
1651
|
-
case "raddr":
|
|
1652
|
-
r.relatedAddress = t[n + 1];
|
|
1653
|
-
break;
|
|
1654
|
-
case "rport":
|
|
1655
|
-
r.relatedPort = parseInt(t[n + 1], 10);
|
|
1656
|
-
break;
|
|
1657
|
-
case "tcptype":
|
|
1658
|
-
r.tcpType = t[n + 1];
|
|
1659
|
-
break;
|
|
1660
|
-
case "ufrag":
|
|
1661
|
-
r.ufrag = t[n + 1],
|
|
1662
|
-
r.usernameFragment = t[n + 1];
|
|
1663
|
-
break;
|
|
1664
|
-
default:
|
|
1665
|
-
void 0 === r[t[n]] && (r[t[n]] = t[n + 1])
|
|
1666
|
-
}
|
|
1667
|
-
return r
|
|
1668
|
-
},
|
|
1669
|
-
p.writeCandidate = function (e) {
|
|
1670
|
-
var t = [];
|
|
1671
|
-
t.push(e.foundation);
|
|
1672
|
-
var r = e.component;
|
|
1673
|
-
"rtp" === r ? t.push(1) : "rtcp" === r ? t.push(2) : t.push(r),
|
|
1674
|
-
t.push(e.protocol.toUpperCase()),
|
|
1675
|
-
t.push(e.priority),
|
|
1676
|
-
t.push(e.address || e.ip),
|
|
1677
|
-
t.push(e.port);
|
|
1678
|
-
r = e.type;
|
|
1679
|
-
return t.push("typ"),
|
|
1680
|
-
t.push(r),
|
|
1681
|
-
"host" !== r && e.relatedAddress && e.relatedPort && (t.push("raddr"), t.push(e.relatedAddress), t.push("rport"), t.push(e.relatedPort)),
|
|
1682
|
-
e.tcpType && "tcp" === e.protocol.toLowerCase() && (t.push("tcptype"), t.push(e.tcpType)),
|
|
1683
|
-
(e.usernameFragment || e.ufrag) && (t.push("ufrag"), t.push(e.usernameFragment || e.ufrag)),
|
|
1684
|
-
"candidate:" + t.join(" ")
|
|
1685
|
-
},
|
|
1686
|
-
p.parseIceOptions = function (e) {
|
|
1687
|
-
return e.substr(14).split(" ")
|
|
1688
|
-
},
|
|
1689
|
-
p.parseRtpMap = function (e) {
|
|
1690
|
-
var t = e.substr(9).split(" "),
|
|
1691
|
-
e = {
|
|
1692
|
-
payloadType: parseInt(t.shift(), 10)
|
|
1693
|
-
},
|
|
1694
|
-
t = t[0].split("/");
|
|
1695
|
-
return e.name = t[0],
|
|
1696
|
-
e.clockRate = parseInt(t[1], 10),
|
|
1697
|
-
e.channels = 3 === t.length ? parseInt(t[2], 10) : 1,
|
|
1698
|
-
e.numChannels = e.channels,
|
|
1699
|
-
e
|
|
1700
|
-
},
|
|
1701
|
-
p.writeRtpMap = function (e) {
|
|
1702
|
-
var t = e.payloadType;
|
|
1703
|
-
void 0 !== e.preferredPayloadType && (t = e.preferredPayloadType);
|
|
1704
|
-
var r = e.channels || e.numChannels || 1;
|
|
1705
|
-
return "a=rtpmap:" + t + " " + e.name + "/" + e.clockRate + (1 !== r ? "/" + r : "") + "\r\n"
|
|
1706
|
-
},
|
|
1707
|
-
p.parseExtmap = function (e) {
|
|
1708
|
-
e = e.substr(9).split(" ");
|
|
1709
|
-
return {
|
|
1710
|
-
id: parseInt(e[0], 10),
|
|
1711
|
-
direction: 0 < e[0].indexOf("/") ? e[0].split("/")[1] : "sendrecv",
|
|
1712
|
-
uri: e[1]
|
|
1713
|
-
}
|
|
1714
|
-
},
|
|
1715
|
-
p.writeExtmap = function (e) {
|
|
1716
|
-
return "a=extmap:" + (e.id || e.preferredId) + (e.direction && "sendrecv" !== e.direction ? "/" + e.direction : "") + " " + e.uri + "\r\n"
|
|
1717
|
-
},
|
|
1718
|
-
p.parseFmtp = function (e) {
|
|
1719
|
-
for (var t = {}, r = void 0, n = e.substr(e.indexOf(" ") + 1).split(";"), i = 0; i < n.length; i++)
|
|
1720
|
-
t[(r = n[i].trim().split("="))[0].trim()] = r[1];
|
|
1721
|
-
return t
|
|
1722
|
-
},
|
|
1723
|
-
p.writeFmtp = function (t) {
|
|
1724
|
-
var r,
|
|
1725
|
-
e = "",
|
|
1726
|
-
n = t.payloadType;
|
|
1727
|
-
return void 0 !== t.preferredPayloadType && (n = t.preferredPayloadType),
|
|
1728
|
-
t.parameters && Object.keys(t.parameters).length && (r = [], Object.keys(t.parameters).forEach(function (e) {
|
|
1729
|
-
void 0 !== t.parameters[e] ? r.push(e + "=" + t.parameters[e]) : r.push(e)
|
|
1730
|
-
}), e += "a=fmtp:" + n + " " + r.join(";") + "\r\n"),
|
|
1731
|
-
e
|
|
1732
|
-
},
|
|
1733
|
-
p.parseRtcpFb = function (e) {
|
|
1734
|
-
e = e.substr(e.indexOf(" ") + 1).split(" ");
|
|
1735
|
-
return {
|
|
1736
|
-
type: e.shift(),
|
|
1737
|
-
parameter: e.join(" ")
|
|
1738
|
-
}
|
|
1739
|
-
},
|
|
1740
|
-
p.writeRtcpFb = function (e) {
|
|
1741
|
-
var t = "",
|
|
1742
|
-
r = e.payloadType;
|
|
1743
|
-
return void 0 !== e.preferredPayloadType && (r = e.preferredPayloadType),
|
|
1744
|
-
e.rtcpFeedback && e.rtcpFeedback.length && e.rtcpFeedback.forEach(function (e) {
|
|
1745
|
-
t += "a=rtcp-fb:" + r + " " + e.type + (e.parameter && e.parameter.length ? " " + e.parameter : "") + "\r\n"
|
|
1746
|
-
}),
|
|
1747
|
-
t
|
|
1748
|
-
},
|
|
1749
|
-
p.parseSsrcMedia = function (e) {
|
|
1750
|
-
var t = e.indexOf(" "),
|
|
1751
|
-
r = {
|
|
1752
|
-
ssrc: parseInt(e.substr(7, t - 7), 10)
|
|
1753
|
-
},
|
|
1754
|
-
n = e.indexOf(":", t);
|
|
1755
|
-
return -1 < n ? (r.attribute = e.substr(t + 1, n - t - 1), r.value = e.substr(n + 1)) : r.attribute = e.substr(t + 1),
|
|
1756
|
-
r
|
|
1757
|
-
},
|
|
1758
|
-
p.parseSsrcGroup = function (e) {
|
|
1759
|
-
e = e.substr(13).split(" ");
|
|
1760
|
-
return {
|
|
1761
|
-
semantics: e.shift(),
|
|
1762
|
-
ssrcs: e.map(function (e) {
|
|
1763
|
-
return parseInt(e, 10)
|
|
1764
|
-
})
|
|
1765
|
-
}
|
|
1766
|
-
},
|
|
1767
|
-
p.getMid = function (e) {
|
|
1768
|
-
e = p.matchPrefix(e, "a=mid:")[0];
|
|
1769
|
-
if (e)
|
|
1770
|
-
return e.substr(6)
|
|
1771
|
-
},
|
|
1772
|
-
p.parseFingerprint = function (e) {
|
|
1773
|
-
e = e.substr(14).split(" ");
|
|
1774
|
-
return {
|
|
1775
|
-
algorithm: e[0].toLowerCase(),
|
|
1776
|
-
value: e[1].toUpperCase()
|
|
1777
|
-
}
|
|
1778
|
-
},
|
|
1779
|
-
p.getDtlsParameters = function (e, t) {
|
|
1780
|
-
return {
|
|
1781
|
-
role: "auto",
|
|
1782
|
-
fingerprints: p.matchPrefix(e + t, "a=fingerprint:").map(p.parseFingerprint)
|
|
1783
|
-
}
|
|
1784
|
-
},
|
|
1785
|
-
p.writeDtlsParameters = function (e, t) {
|
|
1786
|
-
var r = "a=setup:" + t + "\r\n";
|
|
1787
|
-
return e.fingerprints.forEach(function (e) {
|
|
1788
|
-
r += "a=fingerprint:" + e.algorithm + " " + e.value + "\r\n"
|
|
1789
|
-
}),
|
|
1790
|
-
r
|
|
1791
|
-
},
|
|
1792
|
-
p.parseCryptoLine = function (e) {
|
|
1793
|
-
e = e.substr(9).split(" ");
|
|
1794
|
-
return {
|
|
1795
|
-
tag: parseInt(e[0], 10),
|
|
1796
|
-
cryptoSuite: e[1],
|
|
1797
|
-
keyParams: e[2],
|
|
1798
|
-
sessionParams: e.slice(3)
|
|
1799
|
-
}
|
|
1800
|
-
},
|
|
1801
|
-
p.writeCryptoLine = function (e) {
|
|
1802
|
-
return "a=crypto:" + e.tag + " " + e.cryptoSuite + " " + ("object" === n(e.keyParams) ? p.writeCryptoKeyParams(e.keyParams) : e.keyParams) + (e.sessionParams ? " " + e.sessionParams.join(" ") : "") + "\r\n"
|
|
1803
|
-
},
|
|
1804
|
-
p.parseCryptoKeyParams = function (e) {
|
|
1805
|
-
if (0 !== e.indexOf("inline:"))
|
|
1806
|
-
return null;
|
|
1807
|
-
e = e.substr(7).split("|");
|
|
1808
|
-
return {
|
|
1809
|
-
keyMethod: "inline",
|
|
1810
|
-
keySalt: e[0],
|
|
1811
|
-
lifeTime: e[1],
|
|
1812
|
-
mkiValue: e[2] ? e[2].split(":")[0] : void 0,
|
|
1813
|
-
mkiLength: e[2] ? e[2].split(":")[1] : void 0
|
|
1814
|
-
}
|
|
1815
|
-
},
|
|
1816
|
-
p.writeCryptoKeyParams = function (e) {
|
|
1817
|
-
return e.keyMethod + ":" + e.keySalt + (e.lifeTime ? "|" + e.lifeTime : "") + (e.mkiValue && e.mkiLength ? "|" + e.mkiValue + ":" + e.mkiLength : "")
|
|
1818
|
-
},
|
|
1819
|
-
p.getCryptoParameters = function (e, t) {
|
|
1820
|
-
return p.matchPrefix(e + t, "a=crypto:").map(p.parseCryptoLine)
|
|
1821
|
-
},
|
|
1822
|
-
p.getIceParameters = function (e, t) {
|
|
1823
|
-
var r = p.matchPrefix(e + t, "a=ice-ufrag:")[0],
|
|
1824
|
-
t = p.matchPrefix(e + t, "a=ice-pwd:")[0];
|
|
1825
|
-
return r && t ? {
|
|
1826
|
-
usernameFragment: r.substr(12),
|
|
1827
|
-
password: t.substr(10)
|
|
1828
|
-
}
|
|
1829
|
-
: null
|
|
1830
|
-
},
|
|
1831
|
-
p.writeIceParameters = function (e) {
|
|
1832
|
-
var t = "a=ice-ufrag:" + e.usernameFragment + "\r\na=ice-pwd:" + e.password + "\r\n";
|
|
1833
|
-
return e.iceLite && (t += "a=ice-lite\r\n"),
|
|
1834
|
-
t
|
|
1835
|
-
},
|
|
1836
|
-
p.parseRtpParameters = function (e) {
|
|
1837
|
-
for (var t = {
|
|
1838
|
-
codecs: [],
|
|
1839
|
-
headerExtensions: [],
|
|
1840
|
-
fecMechanisms: [],
|
|
1841
|
-
rtcp: []
|
|
1842
|
-
}, r = p.splitLines(e)[0].split(" "), n = 3; n < r.length; n++) {
|
|
1843
|
-
var i = r[n],
|
|
1844
|
-
o = p.matchPrefix(e, "a=rtpmap:" + i + " ")[0];
|
|
1845
|
-
if (o) {
|
|
1846
|
-
var a = p.parseRtpMap(o),
|
|
1847
|
-
o = p.matchPrefix(e, "a=fmtp:" + i + " ");
|
|
1848
|
-
switch (a.parameters = o.length ? p.parseFmtp(o[0]) : {}, a.rtcpFeedback = p.matchPrefix(e, "a=rtcp-fb:" + i + " ").map(p.parseRtcpFb), t.codecs.push(a), a.name.toUpperCase()) {
|
|
1849
|
-
case "RED":
|
|
1850
|
-
case "ULPFEC":
|
|
1851
|
-
t.fecMechanisms.push(a.name.toUpperCase())
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
}
|
|
1855
|
-
return p.matchPrefix(e, "a=extmap:").forEach(function (e) {
|
|
1856
|
-
t.headerExtensions.push(p.parseExtmap(e))
|
|
1857
|
-
}),
|
|
1858
|
-
t
|
|
1859
|
-
},
|
|
1860
|
-
p.writeRtpDescription = function (e, t) {
|
|
1861
|
-
var r = "";
|
|
1862
|
-
r += "m=" + e + " ",
|
|
1863
|
-
r += 0 < t.codecs.length ? "9" : "0",
|
|
1864
|
-
r += " UDP/TLS/RTP/SAVPF ",
|
|
1865
|
-
r += t.codecs.map(function (e) {
|
|
1866
|
-
return void 0 !== e.preferredPayloadType ? e.preferredPayloadType : e.payloadType
|
|
1867
|
-
}).join(" ") + "\r\n",
|
|
1868
|
-
r += "c=IN IP4 0.0.0.0\r\n",
|
|
1869
|
-
r += "a=rtcp:9 IN IP4 0.0.0.0\r\n",
|
|
1870
|
-
t.codecs.forEach(function (e) {
|
|
1871
|
-
r += p.writeRtpMap(e),
|
|
1872
|
-
r += p.writeFmtp(e),
|
|
1873
|
-
r += p.writeRtcpFb(e)
|
|
1874
|
-
});
|
|
1875
|
-
var n = 0;
|
|
1876
|
-
return t.codecs.forEach(function (e) {
|
|
1877
|
-
e.maxptime > n && (n = e.maxptime)
|
|
1878
|
-
}),
|
|
1879
|
-
0 < n && (r += "a=maxptime:" + n + "\r\n"),
|
|
1880
|
-
t.headerExtensions && t.headerExtensions.forEach(function (e) {
|
|
1881
|
-
r += p.writeExtmap(e)
|
|
1882
|
-
}),
|
|
1883
|
-
r
|
|
1884
|
-
},
|
|
1885
|
-
p.parseRtpEncodingParameters = function (e) {
|
|
1886
|
-
var t = [],
|
|
1887
|
-
r = p.parseRtpParameters(e),
|
|
1888
|
-
n = -1 !== r.fecMechanisms.indexOf("RED"),
|
|
1889
|
-
i = -1 !== r.fecMechanisms.indexOf("ULPFEC"),
|
|
1890
|
-
o = p.matchPrefix(e, "a=ssrc:").map(function (e) {
|
|
1891
|
-
return p.parseSsrcMedia(e)
|
|
1892
|
-
}).filter(function (e) {
|
|
1893
|
-
return "cname" === e.attribute
|
|
1894
|
-
}),
|
|
1895
|
-
a = 0 < o.length && o[0].ssrc,
|
|
1896
|
-
s = void 0,
|
|
1897
|
-
o = p.matchPrefix(e, "a=ssrc-group:FID").map(function (e) {
|
|
1898
|
-
return e.substr(17).split(" ").map(function (e) {
|
|
1899
|
-
return parseInt(e, 10)
|
|
1900
|
-
})
|
|
1901
|
-
});
|
|
1902
|
-
0 < o.length && 1 < o[0].length && o[0][0] === a && (s = o[0][1]),
|
|
1903
|
-
r.codecs.forEach(function (e) {
|
|
1904
|
-
"RTX" === e.name.toUpperCase() && e.parameters.apt && (e = {
|
|
1905
|
-
ssrc: a,
|
|
1906
|
-
codecPayloadType: parseInt(e.parameters.apt, 10)
|
|
1907
|
-
}, a && s && (e.rtx = {
|
|
1908
|
-
ssrc: s
|
|
1909
|
-
}), t.push(e), n && ((e = JSON.parse(JSON.stringify(e))).fec = {
|
|
1910
|
-
ssrc: a,
|
|
1911
|
-
mechanism: i ? "red+ulpfec" : "red"
|
|
1912
|
-
}, t.push(e)))
|
|
1913
|
-
}),
|
|
1914
|
-
0 === t.length && a && t.push({
|
|
1915
|
-
ssrc: a
|
|
1916
|
-
});
|
|
1917
|
-
var c = p.matchPrefix(e, "b=");
|
|
1918
|
-
return c.length && (c = 0 === c[0].indexOf("b=TIAS:") ? parseInt(c[0].substr(7), 10) : 0 === c[0].indexOf("b=AS:") ? 1e3 * parseInt(c[0].substr(5), 10) * .95 - 16e3 : void 0, t.forEach(function (e) {
|
|
1919
|
-
e.maxBitrate = c
|
|
1920
|
-
})),
|
|
1921
|
-
t
|
|
1922
|
-
},
|
|
1923
|
-
p.parseRtcpParameters = function (e) {
|
|
1924
|
-
var t = {},
|
|
1925
|
-
r = p.matchPrefix(e, "a=ssrc:").map(function (e) {
|
|
1926
|
-
return p.parseSsrcMedia(e)
|
|
1927
|
-
}).filter(function (e) {
|
|
1928
|
-
return "cname" === e.attribute
|
|
1929
|
-
})[0];
|
|
1930
|
-
r && (t.cname = r.value, t.ssrc = r.ssrc);
|
|
1931
|
-
r = p.matchPrefix(e, "a=rtcp-rsize");
|
|
1932
|
-
t.reducedSize = 0 < r.length,
|
|
1933
|
-
t.compound = 0 === r.length;
|
|
1934
|
-
e = p.matchPrefix(e, "a=rtcp-mux");
|
|
1935
|
-
return t.mux = 0 < e.length,
|
|
1936
|
-
t
|
|
1937
|
-
},
|
|
1938
|
-
p.writeRtcpParameters = function (e) {
|
|
1939
|
-
var t = "";
|
|
1940
|
-
return e.reducedSize && (t += "a=rtcp-rsize\r\n"),
|
|
1941
|
-
e.mux && (t += "a=rtcp-mux\r\n"),
|
|
1942
|
-
void 0 !== e.ssrc && e.cname && (t += "a=ssrc:" + e.ssrc + " cname:" + e.cname + "\r\n"),
|
|
1943
|
-
t
|
|
1944
|
-
},
|
|
1945
|
-
p.parseMsid = function (e) {
|
|
1946
|
-
var t = void 0,
|
|
1947
|
-
r = p.matchPrefix(e, "a=msid:");
|
|
1948
|
-
if (1 === r.length)
|
|
1949
|
-
return {
|
|
1950
|
-
stream: (t = r[0].substr(7).split(" "))[0],
|
|
1951
|
-
track: t[1]
|
|
1952
|
-
};
|
|
1953
|
-
e = p.matchPrefix(e, "a=ssrc:").map(function (e) {
|
|
1954
|
-
return p.parseSsrcMedia(e)
|
|
1955
|
-
}).filter(function (e) {
|
|
1956
|
-
return "msid" === e.attribute
|
|
1957
|
-
});
|
|
1958
|
-
return 0 < e.length ? {
|
|
1959
|
-
stream: (t = e[0].value.split(" "))[0],
|
|
1960
|
-
track: t[1]
|
|
1961
|
-
}
|
|
1962
|
-
: void 0
|
|
1963
|
-
},
|
|
1964
|
-
p.parseSctpDescription = function (e) {
|
|
1965
|
-
var t = p.parseMLine(e),
|
|
1966
|
-
r = p.matchPrefix(e, "a=max-message-size:"),
|
|
1967
|
-
n = void 0;
|
|
1968
|
-
0 < r.length && (n = parseInt(r[0].substr(19), 10)),
|
|
1969
|
-
isNaN(n) && (n = 65536);
|
|
1970
|
-
r = p.matchPrefix(e, "a=sctp-port:");
|
|
1971
|
-
if (0 < r.length)
|
|
1972
|
-
return {
|
|
1973
|
-
port: parseInt(r[0].substr(12), 10),
|
|
1974
|
-
protocol: t.fmt,
|
|
1975
|
-
maxMessageSize: n
|
|
1976
|
-
};
|
|
1977
|
-
e = p.matchPrefix(e, "a=sctpmap:");
|
|
1978
|
-
if (0 < e.length) {
|
|
1979
|
-
e = e[0].substr(10).split(" ");
|
|
1980
|
-
return {
|
|
1981
|
-
port: parseInt(e[0], 10),
|
|
1982
|
-
protocol: e[1],
|
|
1983
|
-
maxMessageSize: n
|
|
1984
|
-
}
|
|
1985
|
-
}
|
|
1986
|
-
},
|
|
1987
|
-
p.writeSctpDescription = function (e, t) {
|
|
1988
|
-
var r = [],
|
|
1989
|
-
r = "DTLS/SCTP" !== e.protocol ? ["m=" + e.kind + " 9 " + e.protocol + " " + t.protocol + "\r\n", "c=IN IP4 0.0.0.0\r\n", "a=sctp-port:" + t.port + "\r\n"] : ["m=" + e.kind + " 9 " + e.protocol + " " + t.port + "\r\n", "c=IN IP4 0.0.0.0\r\n", "a=sctpmap:" + t.port + " " + t.protocol + " 65535\r\n"];
|
|
1990
|
-
return void 0 !== t.maxMessageSize && r.push("a=max-message-size:" + t.maxMessageSize + "\r\n"),
|
|
1991
|
-
r.join("")
|
|
1992
|
-
},
|
|
1993
|
-
p.generateSessionId = function () {
|
|
1994
|
-
return Math.random().toString().substr(2, 21)
|
|
1995
|
-
},
|
|
1996
|
-
p.writeSessionBoilerplate = function (e, t, r) {
|
|
1997
|
-
t = void 0 !== t ? t : 2;
|
|
1998
|
-
return "v=0\r\no=" + (r || "thisisadapterortc") + " " + (e || p.generateSessionId()) + " " + t + " IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"
|
|
1999
|
-
},
|
|
2000
|
-
p.getDirection = function (e, t) {
|
|
2001
|
-
for (var r = p.splitLines(e), n = 0; n < r.length; n++)
|
|
2002
|
-
switch (r[n]) {
|
|
2003
|
-
case "a=sendrecv":
|
|
2004
|
-
case "a=sendonly":
|
|
2005
|
-
case "a=recvonly":
|
|
2006
|
-
case "a=inactive":
|
|
2007
|
-
return r[n].substr(2)
|
|
2008
|
-
}
|
|
2009
|
-
return t ? p.getDirection(t) : "sendrecv"
|
|
2010
|
-
},
|
|
2011
|
-
p.getKind = function (e) {
|
|
2012
|
-
return p.splitLines(e)[0].split(" ")[0].substr(2)
|
|
2013
|
-
},
|
|
2014
|
-
p.isRejected = function (e) {
|
|
2015
|
-
return "0" === e.split(" ", 2)[1]
|
|
2016
|
-
},
|
|
2017
|
-
p.parseMLine = function (e) {
|
|
2018
|
-
e = p.splitLines(e)[0].substr(2).split(" ");
|
|
2019
|
-
return {
|
|
2020
|
-
kind: e[0],
|
|
2021
|
-
port: parseInt(e[1], 10),
|
|
2022
|
-
protocol: e[2],
|
|
2023
|
-
fmt: e.slice(3).join(" ")
|
|
2024
|
-
}
|
|
2025
|
-
},
|
|
2026
|
-
p.parseOLine = function (e) {
|
|
2027
|
-
e = p.matchPrefix(e, "o=")[0].substr(2).split(" ");
|
|
2028
|
-
return {
|
|
2029
|
-
username: e[0],
|
|
2030
|
-
sessionId: e[1],
|
|
2031
|
-
sessionVersion: parseInt(e[2], 10),
|
|
2032
|
-
netType: e[3],
|
|
2033
|
-
addressType: e[4],
|
|
2034
|
-
address: e[5]
|
|
2035
|
-
}
|
|
2036
|
-
},
|
|
2037
|
-
p.isValidSDP = function (e) {
|
|
2038
|
-
if ("string" != typeof e || 0 === e.length)
|
|
2039
|
-
return !1;
|
|
2040
|
-
for (var t = p.splitLines(e), r = 0; r < t.length; r++)
|
|
2041
|
-
if (t[r].length < 2 || "=" !== t[r].charAt(1))
|
|
2042
|
-
return !1;
|
|
2043
|
-
return !0
|
|
2044
|
-
},
|
|
2045
|
-
"object" === (void 0 === t ? "undefined" : n(t)) && (t.exports = p)
|
|
2046
|
-
}, {}
|
|
2047
|
-
]
|
|
2048
|
-
}, {}, [1])(1)
|
|
2049
|
-
});
|
|
1
|
+
!function (e) {
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : ("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).adapter = e()
|
|
3
|
+
}
|
|
4
|
+
(function () {
|
|
5
|
+
return function n(i, o, a) {
|
|
6
|
+
function s(t, e) {
|
|
7
|
+
if (!o[t]) {
|
|
8
|
+
if (!i[t]) {
|
|
9
|
+
var r = "function" == typeof require && require;
|
|
10
|
+
if (!e && r)
|
|
11
|
+
return r(t, !0);
|
|
12
|
+
if (c)
|
|
13
|
+
return c(t, !0);
|
|
14
|
+
throw (r = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND",
|
|
15
|
+
r
|
|
16
|
+
}
|
|
17
|
+
r = o[t] = {
|
|
18
|
+
exports: {}
|
|
19
|
+
},
|
|
20
|
+
i[t][0].call(r.exports, function (e) {
|
|
21
|
+
return s(i[t][1][e] || e)
|
|
22
|
+
}, r, r.exports, n, i, o, a)
|
|
23
|
+
}
|
|
24
|
+
return o[t].exports
|
|
25
|
+
}
|
|
26
|
+
for (var c = "function" == typeof require && require, e = 0; e < a.length; e++)
|
|
27
|
+
s(a[e]);
|
|
28
|
+
return s
|
|
29
|
+
}
|
|
30
|
+
({
|
|
31
|
+
1: [function (e, t, r) {
|
|
32
|
+
"use strict";
|
|
33
|
+
e = (0, e("./adapter_factory.js").adapterFactory)({
|
|
34
|
+
window: "undefined" == typeof window ? void 0 : window
|
|
35
|
+
});
|
|
36
|
+
t.exports = e
|
|
37
|
+
}, {
|
|
38
|
+
"./adapter_factory.js": 2
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
2: [function (e, t, r) {
|
|
42
|
+
"use strict";
|
|
43
|
+
Object.defineProperty(r, "__esModule", {
|
|
44
|
+
value: !0
|
|
45
|
+
}),
|
|
46
|
+
r.adapterFactory = function () {
|
|
47
|
+
var e = (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}).window,
|
|
48
|
+
t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {
|
|
49
|
+
shimChrome: !0,
|
|
50
|
+
shimFirefox: !0,
|
|
51
|
+
shimSafari: !0
|
|
52
|
+
},
|
|
53
|
+
r = o.log,
|
|
54
|
+
n = o.detectBrowser(e),
|
|
55
|
+
i = {
|
|
56
|
+
browserDetails: n,
|
|
57
|
+
commonShim: p,
|
|
58
|
+
extractVersion: o.extractVersion,
|
|
59
|
+
disableLog: o.disableLog,
|
|
60
|
+
disableWarnings: o.disableWarnings,
|
|
61
|
+
sdp: d
|
|
62
|
+
};
|
|
63
|
+
switch (n.browser) {
|
|
64
|
+
case "chrome":
|
|
65
|
+
if (!a || !a.shimPeerConnection || !t.shimChrome)
|
|
66
|
+
return r("Chrome shim is not included in this adapter release."), i;
|
|
67
|
+
if (null === n.version)
|
|
68
|
+
return r("Chrome shim can not determine version, not shimming."), i;
|
|
69
|
+
r("adapter.js shimming chrome."),
|
|
70
|
+
i.browserShim = a,
|
|
71
|
+
p.shimAddIceCandidateNullOrEmpty(e, n),
|
|
72
|
+
p.shimParameterlessSetLocalDescription(e, n),
|
|
73
|
+
a.shimGetUserMedia(e, n),
|
|
74
|
+
a.shimMediaStream(e, n),
|
|
75
|
+
a.shimPeerConnection(e, n),
|
|
76
|
+
a.shimOnTrack(e, n),
|
|
77
|
+
a.shimAddTrackRemoveTrack(e, n),
|
|
78
|
+
a.shimGetSendersWithDtmf(e, n),
|
|
79
|
+
a.shimGetStats(e, n),
|
|
80
|
+
a.shimSenderReceiverGetStats(e, n),
|
|
81
|
+
a.fixNegotiationNeeded(e, n),
|
|
82
|
+
p.shimRTCIceCandidate(e, n),
|
|
83
|
+
p.shimConnectionState(e, n),
|
|
84
|
+
p.shimMaxMessageSize(e, n),
|
|
85
|
+
p.shimSendThrowTypeError(e, n),
|
|
86
|
+
p.removeExtmapAllowMixed(e, n);
|
|
87
|
+
break;
|
|
88
|
+
case "firefox":
|
|
89
|
+
if (!s || !s.shimPeerConnection || !t.shimFirefox)
|
|
90
|
+
return r("Firefox shim is not included in this adapter release."), i;
|
|
91
|
+
r("adapter.js shimming firefox."),
|
|
92
|
+
i.browserShim = s,
|
|
93
|
+
p.shimAddIceCandidateNullOrEmpty(e, n),
|
|
94
|
+
p.shimParameterlessSetLocalDescription(e, n),
|
|
95
|
+
s.shimGetUserMedia(e, n),
|
|
96
|
+
s.shimPeerConnection(e, n),
|
|
97
|
+
s.shimOnTrack(e, n),
|
|
98
|
+
s.shimRemoveStream(e, n),
|
|
99
|
+
s.shimSenderGetStats(e, n),
|
|
100
|
+
s.shimReceiverGetStats(e, n),
|
|
101
|
+
s.shimRTCDataChannel(e, n),
|
|
102
|
+
s.shimAddTransceiver(e, n),
|
|
103
|
+
s.shimGetParameters(e, n),
|
|
104
|
+
s.shimCreateOffer(e, n),
|
|
105
|
+
s.shimCreateAnswer(e, n),
|
|
106
|
+
p.shimRTCIceCandidate(e, n),
|
|
107
|
+
p.shimConnectionState(e, n),
|
|
108
|
+
p.shimMaxMessageSize(e, n),
|
|
109
|
+
p.shimSendThrowTypeError(e, n);
|
|
110
|
+
break;
|
|
111
|
+
case "safari":
|
|
112
|
+
if (!c || !t.shimSafari)
|
|
113
|
+
return r("Safari shim is not included in this adapter release."), i;
|
|
114
|
+
r("adapter.js shimming safari."),
|
|
115
|
+
i.browserShim = c,
|
|
116
|
+
p.shimAddIceCandidateNullOrEmpty(e, n),
|
|
117
|
+
p.shimParameterlessSetLocalDescription(e, n),
|
|
118
|
+
c.shimRTCIceServerUrls(e, n),
|
|
119
|
+
c.shimCreateOfferLegacy(e, n),
|
|
120
|
+
c.shimCallbacksAPI(e, n),
|
|
121
|
+
c.shimLocalStreamsAPI(e, n),
|
|
122
|
+
c.shimRemoteStreamsAPI(e, n),
|
|
123
|
+
c.shimTrackEventTransceiver(e, n),
|
|
124
|
+
c.shimGetUserMedia(e, n),
|
|
125
|
+
c.shimAudioContext(e, n),
|
|
126
|
+
p.shimRTCIceCandidate(e, n),
|
|
127
|
+
p.shimMaxMessageSize(e, n),
|
|
128
|
+
p.shimSendThrowTypeError(e, n),
|
|
129
|
+
p.removeExtmapAllowMixed(e, n);
|
|
130
|
+
break;
|
|
131
|
+
default:
|
|
132
|
+
r("Unsupported browser!")
|
|
133
|
+
}
|
|
134
|
+
return i
|
|
135
|
+
};
|
|
136
|
+
var o = n(e("./utils")),
|
|
137
|
+
a = n(e("./chrome/chrome_shim")),
|
|
138
|
+
s = n(e("./firefox/firefox_shim")),
|
|
139
|
+
c = n(e("./safari/safari_shim")),
|
|
140
|
+
p = n(e("./common_shim")),
|
|
141
|
+
d = n(e("sdp"));
|
|
142
|
+
function n(e) {
|
|
143
|
+
if (e && e.__esModule)
|
|
144
|
+
return e;
|
|
145
|
+
var t = {};
|
|
146
|
+
if (null != e)
|
|
147
|
+
for (var r in e)
|
|
148
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
149
|
+
return t.default = e,
|
|
150
|
+
t
|
|
151
|
+
}
|
|
152
|
+
}, {
|
|
153
|
+
"./chrome/chrome_shim": 3,
|
|
154
|
+
"./common_shim": 6,
|
|
155
|
+
"./firefox/firefox_shim": 7,
|
|
156
|
+
"./safari/safari_shim": 10,
|
|
157
|
+
"./utils": 11,
|
|
158
|
+
sdp: 12
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
3: [function (e, t, r) {
|
|
162
|
+
"use strict";
|
|
163
|
+
Object.defineProperty(r, "__esModule", {
|
|
164
|
+
value: !0
|
|
165
|
+
}),
|
|
166
|
+
r.shimGetDisplayMedia = r.shimGetUserMedia = void 0;
|
|
167
|
+
var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
168
|
+
return typeof e
|
|
169
|
+
}
|
|
170
|
+
: function (e) {
|
|
171
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
172
|
+
},
|
|
173
|
+
n = e("./getusermedia");
|
|
174
|
+
Object.defineProperty(r, "shimGetUserMedia", {
|
|
175
|
+
enumerable: !0,
|
|
176
|
+
get: function () {
|
|
177
|
+
return n.shimGetUserMedia
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
var i = e("./getdisplaymedia");
|
|
181
|
+
Object.defineProperty(r, "shimGetDisplayMedia", {
|
|
182
|
+
enumerable: !0,
|
|
183
|
+
get: function () {
|
|
184
|
+
return i.shimGetDisplayMedia
|
|
185
|
+
}
|
|
186
|
+
}),
|
|
187
|
+
r.shimMediaStream = function (e) {
|
|
188
|
+
e.MediaStream = e.MediaStream || e.webkitMediaStream
|
|
189
|
+
},
|
|
190
|
+
r.shimOnTrack = function (o) { {
|
|
191
|
+
var e;
|
|
192
|
+
"object" !== (void 0 === o ? "undefined" : s(o)) || !o.RTCPeerConnection || "ontrack" in o.RTCPeerConnection.prototype ? a.wrapPeerConnectionEvent(o, "track", function (e) {
|
|
193
|
+
return e.transceiver || Object.defineProperty(e, "transceiver", {
|
|
194
|
+
value: {
|
|
195
|
+
receiver: e.receiver
|
|
196
|
+
}
|
|
197
|
+
}),
|
|
198
|
+
e
|
|
199
|
+
}) : (Object.defineProperty(o.RTCPeerConnection.prototype, "ontrack", {
|
|
200
|
+
get: function () {
|
|
201
|
+
return this._ontrack
|
|
202
|
+
},
|
|
203
|
+
set: function (e) {
|
|
204
|
+
this._ontrack && this.removeEventListener("track", this._ontrack),
|
|
205
|
+
this.addEventListener("track", this._ontrack = e)
|
|
206
|
+
},
|
|
207
|
+
enumerable: !0,
|
|
208
|
+
configurable: !0
|
|
209
|
+
}), e = o.RTCPeerConnection.prototype.setRemoteDescription, o.RTCPeerConnection.prototype.setRemoteDescription = function () {
|
|
210
|
+
var i = this;
|
|
211
|
+
return this._ontrackpoly || (this._ontrackpoly = function (n) {
|
|
212
|
+
n.stream.addEventListener("addtrack", function (t) {
|
|
213
|
+
var e = void 0,
|
|
214
|
+
e = o.RTCPeerConnection.prototype.getReceivers ? i.getReceivers().find(function (e) {
|
|
215
|
+
return e.track && e.track.id === t.track.id
|
|
216
|
+
}) : {
|
|
217
|
+
track: t.track
|
|
218
|
+
},
|
|
219
|
+
r = new Event("track");
|
|
220
|
+
r.track = t.track,
|
|
221
|
+
r.receiver = e,
|
|
222
|
+
r.transceiver = {
|
|
223
|
+
receiver: e
|
|
224
|
+
},
|
|
225
|
+
r.streams = [n.stream],
|
|
226
|
+
i.dispatchEvent(r)
|
|
227
|
+
}),
|
|
228
|
+
n.stream.getTracks().forEach(function (t) {
|
|
229
|
+
var e = void 0,
|
|
230
|
+
e = o.RTCPeerConnection.prototype.getReceivers ? i.getReceivers().find(function (e) {
|
|
231
|
+
return e.track && e.track.id === t.id
|
|
232
|
+
}) : {
|
|
233
|
+
track: t
|
|
234
|
+
},
|
|
235
|
+
r = new Event("track");
|
|
236
|
+
r.track = t,
|
|
237
|
+
r.receiver = e,
|
|
238
|
+
r.transceiver = {
|
|
239
|
+
receiver: e
|
|
240
|
+
},
|
|
241
|
+
r.streams = [n.stream],
|
|
242
|
+
i.dispatchEvent(r)
|
|
243
|
+
})
|
|
244
|
+
}, this.addEventListener("addstream", this._ontrackpoly)),
|
|
245
|
+
e.apply(this, arguments)
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
r.shimGetSendersWithDtmf = function (e) { {
|
|
250
|
+
var n,
|
|
251
|
+
i,
|
|
252
|
+
t,
|
|
253
|
+
r,
|
|
254
|
+
o,
|
|
255
|
+
a;
|
|
256
|
+
"object" === (void 0 === e ? "undefined" : s(e)) && e.RTCPeerConnection && !("getSenders" in e.RTCPeerConnection.prototype) && "createDTMFSender" in e.RTCPeerConnection.prototype ? (n = function (e, t) {
|
|
257
|
+
return {
|
|
258
|
+
track: t,
|
|
259
|
+
get dtmf() {
|
|
260
|
+
return void 0 === this._dtmf && ("audio" === t.kind ? this._dtmf = e.createDTMFSender(t) : this._dtmf = null),
|
|
261
|
+
this._dtmf
|
|
262
|
+
},
|
|
263
|
+
_pc: e
|
|
264
|
+
}
|
|
265
|
+
}, e.RTCPeerConnection.prototype.getSenders || (e.RTCPeerConnection.prototype.getSenders = function () {
|
|
266
|
+
return this._senders = this._senders || [],
|
|
267
|
+
this._senders.slice()
|
|
268
|
+
}, i = e.RTCPeerConnection.prototype.addTrack, e.RTCPeerConnection.prototype.addTrack = function (e, t) {
|
|
269
|
+
var r = i.apply(this, arguments);
|
|
270
|
+
return r || (r = n(this, e), this._senders.push(r)),
|
|
271
|
+
r
|
|
272
|
+
}, t = e.RTCPeerConnection.prototype.removeTrack, e.RTCPeerConnection.prototype.removeTrack = function (e) {
|
|
273
|
+
t.apply(this, arguments);
|
|
274
|
+
e = this._senders.indexOf(e);
|
|
275
|
+
-1 !== e && this._senders.splice(e, 1)
|
|
276
|
+
}), r = e.RTCPeerConnection.prototype.addStream, e.RTCPeerConnection.prototype.addStream = function (e) {
|
|
277
|
+
var t = this;
|
|
278
|
+
this._senders = this._senders || [],
|
|
279
|
+
r.apply(this, [e]),
|
|
280
|
+
e.getTracks().forEach(function (e) {
|
|
281
|
+
t._senders.push(n(t, e))
|
|
282
|
+
})
|
|
283
|
+
}, o = e.RTCPeerConnection.prototype.removeStream, e.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
284
|
+
var r = this;
|
|
285
|
+
this._senders = this._senders || [],
|
|
286
|
+
o.apply(this, [e]),
|
|
287
|
+
e.getTracks().forEach(function (t) {
|
|
288
|
+
var e = r._senders.find(function (e) {
|
|
289
|
+
return e.track === t
|
|
290
|
+
});
|
|
291
|
+
e && r._senders.splice(r._senders.indexOf(e), 1)
|
|
292
|
+
})
|
|
293
|
+
}) : "object" === (void 0 === e ? "undefined" : s(e)) && e.RTCPeerConnection && "getSenders" in e.RTCPeerConnection.prototype && "createDTMFSender" in e.RTCPeerConnection.prototype && e.RTCRtpSender && !("dtmf" in e.RTCRtpSender.prototype) && (a = e.RTCPeerConnection.prototype.getSenders, e.RTCPeerConnection.prototype.getSenders = function () {
|
|
294
|
+
var t = this,
|
|
295
|
+
e = a.apply(this, []);
|
|
296
|
+
return e.forEach(function (e) {
|
|
297
|
+
return e._pc = t
|
|
298
|
+
}),
|
|
299
|
+
e
|
|
300
|
+
}, Object.defineProperty(e.RTCRtpSender.prototype, "dtmf", {
|
|
301
|
+
get: function () {
|
|
302
|
+
return void 0 === this._dtmf && ("audio" === this.track.kind ? this._dtmf = this._pc.createDTMFSender(this.track) : this._dtmf = null),
|
|
303
|
+
this._dtmf
|
|
304
|
+
}
|
|
305
|
+
}))
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
r.shimGetStats = function (e) {
|
|
309
|
+
var a;
|
|
310
|
+
e.RTCPeerConnection && (a = e.RTCPeerConnection.prototype.getStats, e.RTCPeerConnection.prototype.getStats = function () {
|
|
311
|
+
var r = this,
|
|
312
|
+
e = Array.prototype.slice.call(arguments),
|
|
313
|
+
t = e[0],
|
|
314
|
+
n = e[1],
|
|
315
|
+
e = e[2];
|
|
316
|
+
if (0 < arguments.length && "function" == typeof t)
|
|
317
|
+
return a.apply(this, arguments);
|
|
318
|
+
if (0 === a.length && (0 === arguments.length || "function" != typeof t))
|
|
319
|
+
return a.apply(this, []);
|
|
320
|
+
var i = function (e) {
|
|
321
|
+
var n = {};
|
|
322
|
+
return e.result().forEach(function (t) {
|
|
323
|
+
var r = {
|
|
324
|
+
id: t.id,
|
|
325
|
+
timestamp: t.timestamp,
|
|
326
|
+
type: {
|
|
327
|
+
localcandidate: "local-candidate",
|
|
328
|
+
remotecandidate: "remote-candidate"
|
|
329
|
+
}
|
|
330
|
+
[t.type] || t.type
|
|
331
|
+
};
|
|
332
|
+
t.names().forEach(function (e) {
|
|
333
|
+
r[e] = t.stat(e)
|
|
334
|
+
}),
|
|
335
|
+
n[r.id] = r
|
|
336
|
+
}),
|
|
337
|
+
n
|
|
338
|
+
},
|
|
339
|
+
o = function (t) {
|
|
340
|
+
return new Map(Object.keys(t).map(function (e) {
|
|
341
|
+
return [e, t[e]]
|
|
342
|
+
}))
|
|
343
|
+
};
|
|
344
|
+
if (2 <= arguments.length)
|
|
345
|
+
return a.apply(this, [function (e) {
|
|
346
|
+
n(o(i(e)))
|
|
347
|
+
}, t]);
|
|
348
|
+
return new Promise(function (t, e) {
|
|
349
|
+
a.apply(r, [function (e) {
|
|
350
|
+
t(o(i(e)))
|
|
351
|
+
}, e])
|
|
352
|
+
}).then(n, e)
|
|
353
|
+
})
|
|
354
|
+
},
|
|
355
|
+
r.shimSenderReceiverGetStats = function (e) {
|
|
356
|
+
var r,
|
|
357
|
+
t,
|
|
358
|
+
n,
|
|
359
|
+
o;
|
|
360
|
+
"object" === (void 0 === e ? "undefined" : s(e)) && e.RTCPeerConnection && e.RTCRtpSender && e.RTCRtpReceiver && ("getStats" in e.RTCRtpSender.prototype || ((r = e.RTCPeerConnection.prototype.getSenders) && (e.RTCPeerConnection.prototype.getSenders = function () {
|
|
361
|
+
var t = this,
|
|
362
|
+
e = r.apply(this, []);
|
|
363
|
+
return e.forEach(function (e) {
|
|
364
|
+
return e._pc = t
|
|
365
|
+
}),
|
|
366
|
+
e
|
|
367
|
+
}), (t = e.RTCPeerConnection.prototype.addTrack) && (e.RTCPeerConnection.prototype.addTrack = function () {
|
|
368
|
+
var e = t.apply(this, arguments);
|
|
369
|
+
return e._pc = this,
|
|
370
|
+
e
|
|
371
|
+
}), e.RTCRtpSender.prototype.getStats = function () {
|
|
372
|
+
var t = this;
|
|
373
|
+
return this._pc.getStats().then(function (e) {
|
|
374
|
+
return a.filterStats(e, t.track, !0)
|
|
375
|
+
})
|
|
376
|
+
}), "getStats" in e.RTCRtpReceiver.prototype || ((n = e.RTCPeerConnection.prototype.getReceivers) && (e.RTCPeerConnection.prototype.getReceivers = function () {
|
|
377
|
+
var t = this,
|
|
378
|
+
e = n.apply(this, []);
|
|
379
|
+
return e.forEach(function (e) {
|
|
380
|
+
return e._pc = t
|
|
381
|
+
}),
|
|
382
|
+
e
|
|
383
|
+
}), a.wrapPeerConnectionEvent(e, "track", function (e) {
|
|
384
|
+
return e.receiver._pc = e.srcElement,
|
|
385
|
+
e
|
|
386
|
+
}), e.RTCRtpReceiver.prototype.getStats = function () {
|
|
387
|
+
var t = this;
|
|
388
|
+
return this._pc.getStats().then(function (e) {
|
|
389
|
+
return a.filterStats(e, t.track, !1)
|
|
390
|
+
})
|
|
391
|
+
}), "getStats" in e.RTCRtpSender.prototype && "getStats" in e.RTCRtpReceiver.prototype && (o = e.RTCPeerConnection.prototype.getStats, e.RTCPeerConnection.prototype.getStats = function () {
|
|
392
|
+
if (0 < arguments.length && arguments[0]instanceof e.MediaStreamTrack) {
|
|
393
|
+
var t = arguments[0],
|
|
394
|
+
r = void 0,
|
|
395
|
+
n = void 0,
|
|
396
|
+
i = void 0;
|
|
397
|
+
return this.getSenders().forEach(function (e) {
|
|
398
|
+
e.track === t && (r ? i = !0 : r = e)
|
|
399
|
+
}),
|
|
400
|
+
this.getReceivers().forEach(function (e) {
|
|
401
|
+
return e.track === t && (n ? i = !0 : n = e),
|
|
402
|
+
e.track === t
|
|
403
|
+
}),
|
|
404
|
+
i || r && n ? Promise.reject(new DOMException("There are more than one sender or receiver for the track.", "InvalidAccessError")) : r ? r.getStats() : n ? n.getStats() : Promise.reject(new DOMException("There is no sender or receiver for the track.", "InvalidAccessError"))
|
|
405
|
+
}
|
|
406
|
+
return o.apply(this, arguments)
|
|
407
|
+
}))
|
|
408
|
+
},
|
|
409
|
+
r.shimAddTrackRemoveTrackWithNative = p,
|
|
410
|
+
r.shimAddTrackRemoveTrack = function (i, e) {
|
|
411
|
+
if (i.RTCPeerConnection) {
|
|
412
|
+
if (i.RTCPeerConnection.prototype.addTrack && 65 <= e.version)
|
|
413
|
+
return p(i);
|
|
414
|
+
var r = i.RTCPeerConnection.prototype.getLocalStreams;
|
|
415
|
+
i.RTCPeerConnection.prototype.getLocalStreams = function () {
|
|
416
|
+
var t = this,
|
|
417
|
+
e = r.apply(this);
|
|
418
|
+
return this._reverseStreams = this._reverseStreams || {},
|
|
419
|
+
e.map(function (e) {
|
|
420
|
+
return t._reverseStreams[e.id]
|
|
421
|
+
})
|
|
422
|
+
};
|
|
423
|
+
var n = i.RTCPeerConnection.prototype.addStream;
|
|
424
|
+
i.RTCPeerConnection.prototype.addStream = function (e) {
|
|
425
|
+
var t,
|
|
426
|
+
r = this;
|
|
427
|
+
this._streams = this._streams || {},
|
|
428
|
+
this._reverseStreams = this._reverseStreams || {},
|
|
429
|
+
e.getTracks().forEach(function (t) {
|
|
430
|
+
if (r.getSenders().find(function (e) {
|
|
431
|
+
return e.track === t
|
|
432
|
+
}))
|
|
433
|
+
throw new DOMException("Track already exists.", "InvalidAccessError")
|
|
434
|
+
}),
|
|
435
|
+
this._reverseStreams[e.id] || (t = new i.MediaStream(e.getTracks()), this._streams[e.id] = t, this._reverseStreams[t.id] = e, e = t),
|
|
436
|
+
n.apply(this, [e])
|
|
437
|
+
};
|
|
438
|
+
var t = i.RTCPeerConnection.prototype.removeStream;
|
|
439
|
+
i.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
440
|
+
this._streams = this._streams || {},
|
|
441
|
+
this._reverseStreams = this._reverseStreams || {},
|
|
442
|
+
t.apply(this, [this._streams[e.id] || e]),
|
|
443
|
+
delete this._reverseStreams[(this._streams[e.id] || e).id],
|
|
444
|
+
delete this._streams[e.id]
|
|
445
|
+
},
|
|
446
|
+
i.RTCPeerConnection.prototype.addTrack = function (t, e) {
|
|
447
|
+
var r = this;
|
|
448
|
+
if ("closed" === this.signalingState)
|
|
449
|
+
throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.", "InvalidStateError");
|
|
450
|
+
var n = [].slice.call(arguments, 1);
|
|
451
|
+
if (1 !== n.length || !n[0].getTracks().find(function (e) {
|
|
452
|
+
return e === t
|
|
453
|
+
}))
|
|
454
|
+
throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.", "NotSupportedError");
|
|
455
|
+
if (this.getSenders().find(function (e) {
|
|
456
|
+
return e.track === t
|
|
457
|
+
}))
|
|
458
|
+
throw new DOMException("Track already exists.", "InvalidAccessError");
|
|
459
|
+
this._streams = this._streams || {},
|
|
460
|
+
this._reverseStreams = this._reverseStreams || {};
|
|
461
|
+
n = this._streams[e.id];
|
|
462
|
+
return n ? (n.addTrack(t), Promise.resolve().then(function () {
|
|
463
|
+
r.dispatchEvent(new Event("negotiationneeded"))
|
|
464
|
+
})) : (n = new i.MediaStream([t]), this._streams[e.id] = n, this._reverseStreams[n.id] = e, this.addStream(n)),
|
|
465
|
+
this.getSenders().find(function (e) {
|
|
466
|
+
return e.track === t
|
|
467
|
+
})
|
|
468
|
+
},
|
|
469
|
+
["createOffer", "createAnswer"].forEach(function (e) {
|
|
470
|
+
var n = i.RTCPeerConnection.prototype[e],
|
|
471
|
+
t = c({}, e, function () {
|
|
472
|
+
var t = this,
|
|
473
|
+
r = arguments;
|
|
474
|
+
return arguments.length && "function" == typeof arguments[0] ? n.apply(this, [function (e) {
|
|
475
|
+
e = s(t, e);
|
|
476
|
+
r[0].apply(null, [e])
|
|
477
|
+
}, function (e) {
|
|
478
|
+
r[1] && r[1].apply(null, e)
|
|
479
|
+
}, arguments[2]]) : n.apply(this, arguments).then(function (e) {
|
|
480
|
+
return s(t, e)
|
|
481
|
+
})
|
|
482
|
+
});
|
|
483
|
+
i.RTCPeerConnection.prototype[e] = t[e]
|
|
484
|
+
});
|
|
485
|
+
var o = i.RTCPeerConnection.prototype.setLocalDescription;
|
|
486
|
+
i.RTCPeerConnection.prototype.setLocalDescription = function () {
|
|
487
|
+
return arguments.length && arguments[0].type && (arguments[0] = (r = this, n = (e = arguments[0]).sdp, Object.keys(r._reverseStreams || []).forEach(function (e) {
|
|
488
|
+
var t = r._reverseStreams[e],
|
|
489
|
+
e = r._streams[t.id];
|
|
490
|
+
n = n.replace(new RegExp(t.id, "g"), e.id)
|
|
491
|
+
}), new RTCSessionDescription({
|
|
492
|
+
type: e.type,
|
|
493
|
+
sdp: n
|
|
494
|
+
}))),
|
|
495
|
+
o.apply(this, arguments);
|
|
496
|
+
var r,
|
|
497
|
+
e,
|
|
498
|
+
n
|
|
499
|
+
};
|
|
500
|
+
var a = Object.getOwnPropertyDescriptor(i.RTCPeerConnection.prototype, "localDescription");
|
|
501
|
+
Object.defineProperty(i.RTCPeerConnection.prototype, "localDescription", {
|
|
502
|
+
get: function () {
|
|
503
|
+
var e = a.get.apply(this);
|
|
504
|
+
return "" === e.type ? e : s(this, e)
|
|
505
|
+
}
|
|
506
|
+
}),
|
|
507
|
+
i.RTCPeerConnection.prototype.removeTrack = function (t) {
|
|
508
|
+
var r = this;
|
|
509
|
+
if ("closed" === this.signalingState)
|
|
510
|
+
throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.", "InvalidStateError");
|
|
511
|
+
if (!t._pc)
|
|
512
|
+
throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.", "TypeError");
|
|
513
|
+
if (!(t._pc === this))
|
|
514
|
+
throw new DOMException("Sender was not created by this connection.", "InvalidAccessError");
|
|
515
|
+
this._streams = this._streams || {};
|
|
516
|
+
var n = void 0;
|
|
517
|
+
Object.keys(this._streams).forEach(function (e) {
|
|
518
|
+
r._streams[e].getTracks().find(function (e) {
|
|
519
|
+
return t.track === e
|
|
520
|
+
}) && (n = r._streams[e])
|
|
521
|
+
}),
|
|
522
|
+
n && (1 === n.getTracks().length ? this.removeStream(this._reverseStreams[n.id]) : n.removeTrack(t.track), this.dispatchEvent(new Event("negotiationneeded")))
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
function s(r, e) {
|
|
526
|
+
var n = e.sdp;
|
|
527
|
+
return Object.keys(r._reverseStreams || []).forEach(function (e) {
|
|
528
|
+
var t = r._reverseStreams[e],
|
|
529
|
+
e = r._streams[t.id];
|
|
530
|
+
n = n.replace(new RegExp(e.id, "g"), t.id)
|
|
531
|
+
}),
|
|
532
|
+
new RTCSessionDescription({
|
|
533
|
+
type: e.type,
|
|
534
|
+
sdp: n
|
|
535
|
+
})
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
r.shimPeerConnection = function (n, e) {
|
|
539
|
+
!n.RTCPeerConnection && n.webkitRTCPeerConnection && (n.RTCPeerConnection = n.webkitRTCPeerConnection);
|
|
540
|
+
n.RTCPeerConnection && e.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function (e) {
|
|
541
|
+
var t = n.RTCPeerConnection.prototype[e],
|
|
542
|
+
r = c({}, e, function () {
|
|
543
|
+
return arguments[0] = new("addIceCandidate" === e ? n.RTCIceCandidate : n.RTCSessionDescription)(arguments[0]),
|
|
544
|
+
t.apply(this, arguments)
|
|
545
|
+
});
|
|
546
|
+
n.RTCPeerConnection.prototype[e] = r[e]
|
|
547
|
+
})
|
|
548
|
+
},
|
|
549
|
+
r.fixNegotiationNeeded = function (e, r) {
|
|
550
|
+
a.wrapPeerConnectionEvent(e, "negotiationneeded", function (e) {
|
|
551
|
+
var t = e.target;
|
|
552
|
+
if (!(r.version < 72 || t.getConfiguration && "plan-b" === t.getConfiguration().sdpSemantics) || "stable" === t.signalingState)
|
|
553
|
+
return e
|
|
554
|
+
})
|
|
555
|
+
};
|
|
556
|
+
var a = function (e) { {
|
|
557
|
+
if (e && e.__esModule)
|
|
558
|
+
return e;
|
|
559
|
+
var t = {};
|
|
560
|
+
if (null != e)
|
|
561
|
+
for (var r in e)
|
|
562
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
563
|
+
return t.default = e,
|
|
564
|
+
t
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
(e("../utils.js"));
|
|
568
|
+
function c(e, t, r) {
|
|
569
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
570
|
+
value: r,
|
|
571
|
+
enumerable: !0,
|
|
572
|
+
configurable: !0,
|
|
573
|
+
writable: !0
|
|
574
|
+
}) : e[t] = r,
|
|
575
|
+
e
|
|
576
|
+
}
|
|
577
|
+
function p(e) {
|
|
578
|
+
e.RTCPeerConnection.prototype.getLocalStreams = function () {
|
|
579
|
+
var t = this;
|
|
580
|
+
return this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
581
|
+
Object.keys(this._shimmedLocalStreams).map(function (e) {
|
|
582
|
+
return t._shimmedLocalStreams[e][0]
|
|
583
|
+
})
|
|
584
|
+
};
|
|
585
|
+
var n = e.RTCPeerConnection.prototype.addTrack;
|
|
586
|
+
e.RTCPeerConnection.prototype.addTrack = function (e, t) {
|
|
587
|
+
if (!t)
|
|
588
|
+
return n.apply(this, arguments);
|
|
589
|
+
this._shimmedLocalStreams = this._shimmedLocalStreams || {};
|
|
590
|
+
var r = n.apply(this, arguments);
|
|
591
|
+
return this._shimmedLocalStreams[t.id] ? -1 === this._shimmedLocalStreams[t.id].indexOf(r) && this._shimmedLocalStreams[t.id].push(r) : this._shimmedLocalStreams[t.id] = [t, r],
|
|
592
|
+
r
|
|
593
|
+
};
|
|
594
|
+
var i = e.RTCPeerConnection.prototype.addStream;
|
|
595
|
+
e.RTCPeerConnection.prototype.addStream = function (e) {
|
|
596
|
+
var r = this;
|
|
597
|
+
this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
598
|
+
e.getTracks().forEach(function (t) {
|
|
599
|
+
if (r.getSenders().find(function (e) {
|
|
600
|
+
return e.track === t
|
|
601
|
+
}))
|
|
602
|
+
throw new DOMException("Track already exists.", "InvalidAccessError")
|
|
603
|
+
});
|
|
604
|
+
var t = this.getSenders();
|
|
605
|
+
i.apply(this, arguments);
|
|
606
|
+
var n = this.getSenders().filter(function (e) {
|
|
607
|
+
return -1 === t.indexOf(e)
|
|
608
|
+
});
|
|
609
|
+
this._shimmedLocalStreams[e.id] = [e].concat(n)
|
|
610
|
+
};
|
|
611
|
+
var t = e.RTCPeerConnection.prototype.removeStream;
|
|
612
|
+
e.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
613
|
+
return this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
614
|
+
delete this._shimmedLocalStreams[e.id],
|
|
615
|
+
t.apply(this, arguments)
|
|
616
|
+
};
|
|
617
|
+
var o = e.RTCPeerConnection.prototype.removeTrack;
|
|
618
|
+
e.RTCPeerConnection.prototype.removeTrack = function (r) {
|
|
619
|
+
var n = this;
|
|
620
|
+
return this._shimmedLocalStreams = this._shimmedLocalStreams || {},
|
|
621
|
+
r && Object.keys(this._shimmedLocalStreams).forEach(function (e) {
|
|
622
|
+
var t = n._shimmedLocalStreams[e].indexOf(r);
|
|
623
|
+
-1 !== t && n._shimmedLocalStreams[e].splice(t, 1),
|
|
624
|
+
1 === n._shimmedLocalStreams[e].length && delete n._shimmedLocalStreams[e]
|
|
625
|
+
}),
|
|
626
|
+
o.apply(this, arguments)
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}, {
|
|
630
|
+
"../utils.js": 11,
|
|
631
|
+
"./getdisplaymedia": 4,
|
|
632
|
+
"./getusermedia": 5
|
|
633
|
+
}
|
|
634
|
+
],
|
|
635
|
+
4: [function (e, t, r) {
|
|
636
|
+
"use strict";
|
|
637
|
+
Object.defineProperty(r, "__esModule", {
|
|
638
|
+
value: !0
|
|
639
|
+
}),
|
|
640
|
+
r.shimGetDisplayMedia = function (o, e) {
|
|
641
|
+
o.navigator.mediaDevices && "getDisplayMedia" in o.navigator.mediaDevices || o.navigator.mediaDevices && ("function" == typeof e ? o.navigator.mediaDevices.getDisplayMedia = function (i) {
|
|
642
|
+
return e(i).then(function (e) {
|
|
643
|
+
var t = i.video && i.video.width,
|
|
644
|
+
r = i.video && i.video.height,
|
|
645
|
+
n = i.video && i.video.frameRate;
|
|
646
|
+
return i.video = {
|
|
647
|
+
mandatory: {
|
|
648
|
+
chromeMediaSource: "desktop",
|
|
649
|
+
chromeMediaSourceId: e,
|
|
650
|
+
maxFrameRate: n || 3
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
t && (i.video.mandatory.maxWidth = t),
|
|
654
|
+
r && (i.video.mandatory.maxHeight = r),
|
|
655
|
+
o.navigator.mediaDevices.getUserMedia(i)
|
|
656
|
+
})
|
|
657
|
+
}
|
|
658
|
+
: console.error("shimGetDisplayMedia: getSourceId argument is not a function"))
|
|
659
|
+
}
|
|
660
|
+
}, {}
|
|
661
|
+
],
|
|
662
|
+
5: [function (e, t, r) {
|
|
663
|
+
"use strict";
|
|
664
|
+
Object.defineProperty(r, "__esModule", {
|
|
665
|
+
value: !0
|
|
666
|
+
});
|
|
667
|
+
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
668
|
+
return typeof e
|
|
669
|
+
}
|
|
670
|
+
: function (e) {
|
|
671
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
672
|
+
};
|
|
673
|
+
r.shimGetUserMedia = function (e, t) {
|
|
674
|
+
var a,
|
|
675
|
+
n,
|
|
676
|
+
i,
|
|
677
|
+
r,
|
|
678
|
+
s = e && e.navigator;
|
|
679
|
+
s.mediaDevices && (a = function (i) {
|
|
680
|
+
if ("object" !== (void 0 === i ? "undefined" : c(i)) || i.mandatory || i.optional)
|
|
681
|
+
return i;
|
|
682
|
+
var o = {};
|
|
683
|
+
return Object.keys(i).forEach(function (t) {
|
|
684
|
+
var r,
|
|
685
|
+
n,
|
|
686
|
+
e;
|
|
687
|
+
"require" !== t && "advanced" !== t && "mediaSource" !== t && (void 0 !== (r = "object" === c(i[t]) ? i[t] : {
|
|
688
|
+
ideal: i[t]
|
|
689
|
+
}).exact && "number" == typeof r.exact && (r.min = r.max = r.exact), n = function (e, t) {
|
|
690
|
+
return e ? e + t.charAt(0).toUpperCase() + t.slice(1) : "deviceId" === t ? "sourceId" : t
|
|
691
|
+
}, void 0 !== r.ideal && (o.optional = o.optional || [], e = {}, "number" == typeof r.ideal ? (e[n("min", t)] = r.ideal, o.optional.push(e), (e = {})[n("max", t)] = r.ideal) : e[n("", t)] = r.ideal, o.optional.push(e)), void 0 !== r.exact && "number" != typeof r.exact ? (o.mandatory = o.mandatory || {}, o.mandatory[n("", t)] = r.exact) : ["min", "max"].forEach(function (e) {
|
|
692
|
+
void 0 !== r[e] && (o.mandatory = o.mandatory || {}, o.mandatory[n(e, t)] = r[e])
|
|
693
|
+
}))
|
|
694
|
+
}),
|
|
695
|
+
i.advanced && (o.optional = (o.optional || []).concat(i.advanced)),
|
|
696
|
+
o
|
|
697
|
+
}, n = function (r, n) {
|
|
698
|
+
if (61 <= t.version)
|
|
699
|
+
return n(r);
|
|
700
|
+
if ((r = JSON.parse(JSON.stringify(r))) && "object" === c(r.audio) && ((e = function (e, t, r) {
|
|
701
|
+
t in e && !(r in e) && (e[r] = e[t], delete e[t])
|
|
702
|
+
})((r = JSON.parse(JSON.stringify(r))).audio, "autoGainControl", "googAutoGainControl"), e(r.audio, "noiseSuppression", "googNoiseSuppression"), r.audio = a(r.audio)), r && "object" === c(r.video)) {
|
|
703
|
+
var i = (i = r.video.facingMode) && ("object" === (void 0 === i ? "undefined" : c(i)) ? i : {
|
|
704
|
+
ideal: i
|
|
705
|
+
}),
|
|
706
|
+
e = t.version < 66;
|
|
707
|
+
if (i && ("user" === i.exact || "environment" === i.exact || "user" === i.ideal || "environment" === i.ideal) && (!s.mediaDevices.getSupportedConstraints || !s.mediaDevices.getSupportedConstraints().facingMode || e)) {
|
|
708
|
+
delete r.video.facingMode;
|
|
709
|
+
var o = void 0;
|
|
710
|
+
if ("environment" === i.exact || "environment" === i.ideal ? o = ["back", "rear"] : "user" !== i.exact && "user" !== i.ideal || (o = ["front"]), o)
|
|
711
|
+
return s.mediaDevices.enumerateDevices().then(function (e) {
|
|
712
|
+
var t = (e = e.filter(function (e) {
|
|
713
|
+
return "videoinput" === e.kind
|
|
714
|
+
})).find(function (t) {
|
|
715
|
+
return o.some(function (e) {
|
|
716
|
+
return t.label.toLowerCase().includes(e)
|
|
717
|
+
})
|
|
718
|
+
});
|
|
719
|
+
return (t = !t && e.length && o.includes("back") ? e[e.length - 1] : t) && (r.video.deviceId = i.exact ? {
|
|
720
|
+
exact: t.deviceId
|
|
721
|
+
}
|
|
722
|
+
: {
|
|
723
|
+
ideal: t.deviceId
|
|
724
|
+
}),
|
|
725
|
+
r.video = a(r.video),
|
|
726
|
+
p("chrome: " + JSON.stringify(r)),
|
|
727
|
+
n(r)
|
|
728
|
+
})
|
|
729
|
+
}
|
|
730
|
+
r.video = a(r.video)
|
|
731
|
+
}
|
|
732
|
+
return p("chrome: " + JSON.stringify(r)),
|
|
733
|
+
n(r)
|
|
734
|
+
}, i = function (e) {
|
|
735
|
+
return 64 <= t.version ? e : {
|
|
736
|
+
name: {
|
|
737
|
+
PermissionDeniedError: "NotAllowedError",
|
|
738
|
+
PermissionDismissedError: "NotAllowedError",
|
|
739
|
+
InvalidStateError: "NotAllowedError",
|
|
740
|
+
DevicesNotFoundError: "NotFoundError",
|
|
741
|
+
ConstraintNotSatisfiedError: "OverconstrainedError",
|
|
742
|
+
TrackStartError: "NotReadableError",
|
|
743
|
+
MediaDeviceFailedDueToShutdown: "NotAllowedError",
|
|
744
|
+
MediaDeviceKillSwitchOn: "NotAllowedError",
|
|
745
|
+
TabCaptureError: "AbortError",
|
|
746
|
+
ScreenCaptureError: "AbortError",
|
|
747
|
+
DeviceCaptureError: "AbortError"
|
|
748
|
+
}
|
|
749
|
+
[e.name] || e.name,
|
|
750
|
+
message: e.message,
|
|
751
|
+
constraint: e.constraint || e.constraintName,
|
|
752
|
+
toString: function () {
|
|
753
|
+
return this.name + (this.message && ": ") + this.message
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}, s.getUserMedia = function (e, t, r) {
|
|
757
|
+
n(e, function (e) {
|
|
758
|
+
s.webkitGetUserMedia(e, t, function (e) {
|
|
759
|
+
r && r(i(e))
|
|
760
|
+
})
|
|
761
|
+
})
|
|
762
|
+
}
|
|
763
|
+
.bind(s), s.mediaDevices.getUserMedia && (r = s.mediaDevices.getUserMedia.bind(s.mediaDevices), s.mediaDevices.getUserMedia = function (e) {
|
|
764
|
+
return n(e, function (t) {
|
|
765
|
+
return r(t).then(function (e) {
|
|
766
|
+
if (t.audio && !e.getAudioTracks().length || t.video && !e.getVideoTracks().length)
|
|
767
|
+
throw e.getTracks().forEach(function (e) {
|
|
768
|
+
e.stop()
|
|
769
|
+
}), new DOMException("", "NotFoundError");
|
|
770
|
+
return e
|
|
771
|
+
}, function (e) {
|
|
772
|
+
return Promise.reject(i(e))
|
|
773
|
+
})
|
|
774
|
+
})
|
|
775
|
+
}))
|
|
776
|
+
};
|
|
777
|
+
var p = function (e) { {
|
|
778
|
+
if (e && e.__esModule)
|
|
779
|
+
return e;
|
|
780
|
+
var t = {};
|
|
781
|
+
if (null != e)
|
|
782
|
+
for (var r in e)
|
|
783
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
784
|
+
return t.default = e,
|
|
785
|
+
t
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
(e("../utils.js")).log
|
|
789
|
+
}, {
|
|
790
|
+
"../utils.js": 11
|
|
791
|
+
}
|
|
792
|
+
],
|
|
793
|
+
6: [function (e, t, r) {
|
|
794
|
+
"use strict";
|
|
795
|
+
Object.defineProperty(r, "__esModule", {
|
|
796
|
+
value: !0
|
|
797
|
+
});
|
|
798
|
+
var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
799
|
+
return typeof e
|
|
800
|
+
}
|
|
801
|
+
: function (e) {
|
|
802
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
803
|
+
};
|
|
804
|
+
r.shimRTCIceCandidate = function (t) {
|
|
805
|
+
var i;
|
|
806
|
+
!t.RTCIceCandidate || t.RTCIceCandidate && "foundation" in t.RTCIceCandidate.prototype || (i = t.RTCIceCandidate, t.RTCIceCandidate = function (e) {
|
|
807
|
+
if ("object" === (void 0 === e ? "undefined" : o(e)) && e.candidate && 0 === e.candidate.indexOf("a=") && ((e = JSON.parse(JSON.stringify(e))).candidate = e.candidate.substr(2)), e.candidate && e.candidate.length) {
|
|
808
|
+
var t = new i(e),
|
|
809
|
+
r = a.default.parseCandidate(e.candidate),
|
|
810
|
+
n = Object.assign(t, r);
|
|
811
|
+
return n.toJSON = function () {
|
|
812
|
+
return {
|
|
813
|
+
candidate: n.candidate,
|
|
814
|
+
sdpMid: n.sdpMid,
|
|
815
|
+
sdpMLineIndex: n.sdpMLineIndex,
|
|
816
|
+
usernameFragment: n.usernameFragment
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
n
|
|
820
|
+
}
|
|
821
|
+
return new i(e)
|
|
822
|
+
}, t.RTCIceCandidate.prototype = i.prototype, s.wrapPeerConnectionEvent(t, "icecandidate", function (e) {
|
|
823
|
+
return e.candidate && Object.defineProperty(e, "candidate", {
|
|
824
|
+
value: new t.RTCIceCandidate(e.candidate),
|
|
825
|
+
writable: "false"
|
|
826
|
+
}),
|
|
827
|
+
e
|
|
828
|
+
}))
|
|
829
|
+
},
|
|
830
|
+
r.shimMaxMessageSize = function (e, i) {
|
|
831
|
+
var o;
|
|
832
|
+
e.RTCPeerConnection && ("sctp" in e.RTCPeerConnection.prototype || Object.defineProperty(e.RTCPeerConnection.prototype, "sctp", {
|
|
833
|
+
get: function () {
|
|
834
|
+
return void 0 === this._sctp ? null : this._sctp
|
|
835
|
+
}
|
|
836
|
+
}), o = e.RTCPeerConnection.prototype.setRemoteDescription, e.RTCPeerConnection.prototype.setRemoteDescription = function () {
|
|
837
|
+
var e,
|
|
838
|
+
t,
|
|
839
|
+
r,
|
|
840
|
+
n;
|
|
841
|
+
return this._sctp = null,
|
|
842
|
+
"chrome" === i.browser && 76 <= i.version && "plan-b" === this.getConfiguration().sdpSemantics && Object.defineProperty(this, "sctp", {
|
|
843
|
+
get: function () {
|
|
844
|
+
return void 0 === this._sctp ? null : this._sctp
|
|
845
|
+
},
|
|
846
|
+
enumerable: !0,
|
|
847
|
+
configurable: !0
|
|
848
|
+
}),
|
|
849
|
+
function (e) {
|
|
850
|
+
if (!e || !e.sdp)
|
|
851
|
+
return !1;
|
|
852
|
+
e = a.default.splitSections(e.sdp);
|
|
853
|
+
return e.shift(),
|
|
854
|
+
e.some(function (e) {
|
|
855
|
+
e = a.default.parseMLine(e);
|
|
856
|
+
return e && "application" === e.kind && -1 !== e.protocol.indexOf("SCTP")
|
|
857
|
+
})
|
|
858
|
+
}
|
|
859
|
+
(arguments[0]) && (t = function (e) {
|
|
860
|
+
e = e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);
|
|
861
|
+
if (null === e || e.length < 2)
|
|
862
|
+
return -1;
|
|
863
|
+
e = parseInt(e[1], 10);
|
|
864
|
+
return e != e ? -1 : e
|
|
865
|
+
}
|
|
866
|
+
(arguments[0]), r = t, n = 65536, n = n = "firefox" === i.browser ? i.version < 57 ? -1 === r ? 16384 : 2147483637 : i.version < 60 ? 57 === i.version ? 65535 : 65536 : 2147483637 : n, t = function (e, t) {
|
|
867
|
+
var r = 65536;
|
|
868
|
+
"firefox" === i.browser && 57 === i.version && (r = 65535);
|
|
869
|
+
e = a.default.matchPrefix(e.sdp, "a=max-message-size:");
|
|
870
|
+
return 0 < e.length ? r = parseInt(e[0].substr(19), 10) : "firefox" === i.browser && -1 !== t && (r = 2147483637),
|
|
871
|
+
r
|
|
872
|
+
}
|
|
873
|
+
(arguments[0], t), e = void 0, e = 0 === n && 0 === t ? Number.POSITIVE_INFINITY : 0 === n || 0 === t ? Math.max(n, t) : Math.min(n, t), t = {}, Object.defineProperty(t, "maxMessageSize", {
|
|
874
|
+
get: function () {
|
|
875
|
+
return e
|
|
876
|
+
}
|
|
877
|
+
}), this._sctp = t),
|
|
878
|
+
o.apply(this, arguments)
|
|
879
|
+
})
|
|
880
|
+
},
|
|
881
|
+
r.shimSendThrowTypeError = function (e) {
|
|
882
|
+
var t;
|
|
883
|
+
function r(t, r) {
|
|
884
|
+
var n = t.send;
|
|
885
|
+
t.send = function () {
|
|
886
|
+
var e = arguments[0],
|
|
887
|
+
e = e.length || e.size || e.byteLength;
|
|
888
|
+
if ("open" === t.readyState && r.sctp && e > r.sctp.maxMessageSize)
|
|
889
|
+
throw new TypeError("Message too large (can send a maximum of " + r.sctp.maxMessageSize + " bytes)");
|
|
890
|
+
return n.apply(t, arguments)
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
e.RTCPeerConnection && "createDataChannel" in e.RTCPeerConnection.prototype && (t = e.RTCPeerConnection.prototype.createDataChannel, e.RTCPeerConnection.prototype.createDataChannel = function () {
|
|
894
|
+
var e = t.apply(this, arguments);
|
|
895
|
+
return r(e, this),
|
|
896
|
+
e
|
|
897
|
+
}, s.wrapPeerConnectionEvent(e, "datachannel", function (e) {
|
|
898
|
+
return r(e.channel, e.target),
|
|
899
|
+
e
|
|
900
|
+
}))
|
|
901
|
+
},
|
|
902
|
+
r.shimConnectionState = function (e) {
|
|
903
|
+
var r;
|
|
904
|
+
!e.RTCPeerConnection || "connectionState" in e.RTCPeerConnection.prototype || (r = e.RTCPeerConnection.prototype, Object.defineProperty(r, "connectionState", {
|
|
905
|
+
get: function () {
|
|
906
|
+
return {
|
|
907
|
+
completed: "connected",
|
|
908
|
+
checking: "connecting"
|
|
909
|
+
}
|
|
910
|
+
[this.iceConnectionState] || this.iceConnectionState
|
|
911
|
+
},
|
|
912
|
+
enumerable: !0,
|
|
913
|
+
configurable: !0
|
|
914
|
+
}), Object.defineProperty(r, "onconnectionstatechange", {
|
|
915
|
+
get: function () {
|
|
916
|
+
return this._onconnectionstatechange || null
|
|
917
|
+
},
|
|
918
|
+
set: function (e) {
|
|
919
|
+
this._onconnectionstatechange && (this.removeEventListener("connectionstatechange", this._onconnectionstatechange), delete this._onconnectionstatechange),
|
|
920
|
+
e && this.addEventListener("connectionstatechange", this._onconnectionstatechange = e)
|
|
921
|
+
},
|
|
922
|
+
enumerable: !0,
|
|
923
|
+
configurable: !0
|
|
924
|
+
}), ["setLocalDescription", "setRemoteDescription"].forEach(function (e) {
|
|
925
|
+
var t = r[e];
|
|
926
|
+
r[e] = function () {
|
|
927
|
+
return this._connectionstatechangepoly || (this._connectionstatechangepoly = function (e) {
|
|
928
|
+
var t,
|
|
929
|
+
r = e.target;
|
|
930
|
+
return r._lastConnectionState !== r.connectionState && (r._lastConnectionState = r.connectionState, t = new Event("connectionstatechange", e), r.dispatchEvent(t)),
|
|
931
|
+
e
|
|
932
|
+
}, this.addEventListener("iceconnectionstatechange", this._connectionstatechangepoly)),
|
|
933
|
+
t.apply(this, arguments)
|
|
934
|
+
}
|
|
935
|
+
}))
|
|
936
|
+
},
|
|
937
|
+
r.removeExtmapAllowMixed = function (r, e) {
|
|
938
|
+
var n;
|
|
939
|
+
r.RTCPeerConnection && ("chrome" === e.browser && 71 <= e.version || "safari" === e.browser && 605 <= e.version || (n = r.RTCPeerConnection.prototype.setRemoteDescription, r.RTCPeerConnection.prototype.setRemoteDescription = function (e) {
|
|
940
|
+
var t;
|
|
941
|
+
return e && e.sdp && -1 !== e.sdp.indexOf("\na=extmap-allow-mixed") && (t = e.sdp.split("\n").filter(function (e) {
|
|
942
|
+
return "a=extmap-allow-mixed" !== e.trim()
|
|
943
|
+
}).join("\n"), r.RTCSessionDescription && e instanceof r.RTCSessionDescription ? arguments[0] = new r.RTCSessionDescription({
|
|
944
|
+
type: e.type,
|
|
945
|
+
sdp: t
|
|
946
|
+
}) : e.sdp = t),
|
|
947
|
+
n.apply(this, arguments)
|
|
948
|
+
}))
|
|
949
|
+
},
|
|
950
|
+
r.shimAddIceCandidateNullOrEmpty = function (e, t) {
|
|
951
|
+
var r;
|
|
952
|
+
e.RTCPeerConnection && e.RTCPeerConnection.prototype && ((r = e.RTCPeerConnection.prototype.addIceCandidate) && 0 !== r.length && (e.RTCPeerConnection.prototype.addIceCandidate = function () {
|
|
953
|
+
return arguments[0] ? ("chrome" === t.browser && t.version < 78 || "firefox" === t.browser && t.version < 68 || "safari" === t.browser) && arguments[0] && "" === arguments[0].candidate ? Promise.resolve() : r.apply(this, arguments) : (arguments[1] && arguments[1].apply(null), Promise.resolve())
|
|
954
|
+
}))
|
|
955
|
+
},
|
|
956
|
+
r.shimParameterlessSetLocalDescription = function (e, t) {
|
|
957
|
+
var r;
|
|
958
|
+
e.RTCPeerConnection && e.RTCPeerConnection.prototype && ((r = e.RTCPeerConnection.prototype.setLocalDescription) && 0 !== r.length && (e.RTCPeerConnection.prototype.setLocalDescription = function () {
|
|
959
|
+
var t = this,
|
|
960
|
+
e = arguments[0] || {};
|
|
961
|
+
if ("object" !== (void 0 === e ? "undefined" : o(e)) || e.type && e.sdp)
|
|
962
|
+
return r.apply(this, arguments);
|
|
963
|
+
if (!(e = {
|
|
964
|
+
type: e.type,
|
|
965
|
+
sdp: e.sdp
|
|
966
|
+
}).type)
|
|
967
|
+
switch (this.signalingState) {
|
|
968
|
+
case "stable":
|
|
969
|
+
case "have-local-offer":
|
|
970
|
+
case "have-remote-pranswer":
|
|
971
|
+
e.type = "offer";
|
|
972
|
+
break;
|
|
973
|
+
default:
|
|
974
|
+
e.type = "answer"
|
|
975
|
+
}
|
|
976
|
+
return e.sdp || "offer" !== e.type && "answer" !== e.type ? r.apply(this, [e]) : ("offer" === e.type ? this.createOffer : this.createAnswer).apply(this).then(function (e) {
|
|
977
|
+
return r.apply(t, [e])
|
|
978
|
+
})
|
|
979
|
+
}))
|
|
980
|
+
};
|
|
981
|
+
var n,
|
|
982
|
+
i = e("sdp"),
|
|
983
|
+
a = (n = i) && n.__esModule ? n : {
|
|
984
|
+
default:
|
|
985
|
+
n
|
|
986
|
+
},
|
|
987
|
+
s = function (e) { {
|
|
988
|
+
if (e && e.__esModule)
|
|
989
|
+
return e;
|
|
990
|
+
var t = {};
|
|
991
|
+
if (null != e)
|
|
992
|
+
for (var r in e)
|
|
993
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
994
|
+
return t.default = e,
|
|
995
|
+
t
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
(e("./utils"))
|
|
999
|
+
}, {
|
|
1000
|
+
"./utils": 11,
|
|
1001
|
+
sdp: 12
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
7: [function (e, t, r) {
|
|
1005
|
+
"use strict";
|
|
1006
|
+
Object.defineProperty(r, "__esModule", {
|
|
1007
|
+
value: !0
|
|
1008
|
+
}),
|
|
1009
|
+
r.shimGetDisplayMedia = r.shimGetUserMedia = void 0;
|
|
1010
|
+
var a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1011
|
+
return typeof e
|
|
1012
|
+
}
|
|
1013
|
+
: function (e) {
|
|
1014
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1015
|
+
},
|
|
1016
|
+
n = e("./getusermedia");
|
|
1017
|
+
Object.defineProperty(r, "shimGetUserMedia", {
|
|
1018
|
+
enumerable: !0,
|
|
1019
|
+
get: function () {
|
|
1020
|
+
return n.shimGetUserMedia
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
var i = e("./getdisplaymedia");
|
|
1024
|
+
Object.defineProperty(r, "shimGetDisplayMedia", {
|
|
1025
|
+
enumerable: !0,
|
|
1026
|
+
get: function () {
|
|
1027
|
+
return i.shimGetDisplayMedia
|
|
1028
|
+
}
|
|
1029
|
+
}),
|
|
1030
|
+
r.shimOnTrack = function (e) {
|
|
1031
|
+
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCTrackEvent && "receiver" in e.RTCTrackEvent.prototype && !("transceiver" in e.RTCTrackEvent.prototype) && Object.defineProperty(e.RTCTrackEvent.prototype, "transceiver", {
|
|
1032
|
+
get: function () {
|
|
1033
|
+
return {
|
|
1034
|
+
receiver: this.receiver
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
})
|
|
1038
|
+
},
|
|
1039
|
+
r.shimPeerConnection = function (n, i) {
|
|
1040
|
+
var o,
|
|
1041
|
+
r;
|
|
1042
|
+
"object" === (void 0 === n ? "undefined" : a(n)) && (n.RTCPeerConnection || n.mozRTCPeerConnection) && (!n.RTCPeerConnection && n.mozRTCPeerConnection && (n.RTCPeerConnection = n.mozRTCPeerConnection), i.version < 53 && ["setLocalDescription", "setRemoteDescription", "addIceCandidate"].forEach(function (e) {
|
|
1043
|
+
var t = n.RTCPeerConnection.prototype[e],
|
|
1044
|
+
r = function (e, t, r) {
|
|
1045
|
+
t in e ? Object.defineProperty(e, t, {
|
|
1046
|
+
value: r,
|
|
1047
|
+
enumerable: !0,
|
|
1048
|
+
configurable: !0,
|
|
1049
|
+
writable: !0
|
|
1050
|
+
}) : e[t] = r;
|
|
1051
|
+
return e
|
|
1052
|
+
}
|
|
1053
|
+
({}, e, function () {
|
|
1054
|
+
return arguments[0] = new("addIceCandidate" === e ? n.RTCIceCandidate : n.RTCSessionDescription)(arguments[0]),
|
|
1055
|
+
t.apply(this, arguments)
|
|
1056
|
+
});
|
|
1057
|
+
n.RTCPeerConnection.prototype[e] = r[e]
|
|
1058
|
+
}), o = {
|
|
1059
|
+
inboundrtp: "inbound-rtp",
|
|
1060
|
+
outboundrtp: "outbound-rtp",
|
|
1061
|
+
candidatepair: "candidate-pair",
|
|
1062
|
+
localcandidate: "local-candidate",
|
|
1063
|
+
remotecandidate: "remote-candidate"
|
|
1064
|
+
}, r = n.RTCPeerConnection.prototype.getStats, n.RTCPeerConnection.prototype.getStats = function () {
|
|
1065
|
+
var e = Array.prototype.slice.call(arguments),
|
|
1066
|
+
t = e[0],
|
|
1067
|
+
n = e[1],
|
|
1068
|
+
e = e[2];
|
|
1069
|
+
return r.apply(this, [t || null]).then(function (r) {
|
|
1070
|
+
if (i.version < 53 && !n)
|
|
1071
|
+
try {
|
|
1072
|
+
r.forEach(function (e) {
|
|
1073
|
+
e.type = o[e.type] || e.type
|
|
1074
|
+
})
|
|
1075
|
+
} catch (e) {
|
|
1076
|
+
if ("TypeError" !== e.name)
|
|
1077
|
+
throw e;
|
|
1078
|
+
r.forEach(function (e, t) {
|
|
1079
|
+
r.set(t, Object.assign({}, e, {
|
|
1080
|
+
type: o[e.type] || e.type
|
|
1081
|
+
}))
|
|
1082
|
+
})
|
|
1083
|
+
}
|
|
1084
|
+
return r
|
|
1085
|
+
}).then(n, e)
|
|
1086
|
+
})
|
|
1087
|
+
},
|
|
1088
|
+
r.shimSenderGetStats = function (e) {
|
|
1089
|
+
var r,
|
|
1090
|
+
t;
|
|
1091
|
+
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && e.RTCRtpSender && (e.RTCRtpSender && "getStats" in e.RTCRtpSender.prototype || ((r = e.RTCPeerConnection.prototype.getSenders) && (e.RTCPeerConnection.prototype.getSenders = function () {
|
|
1092
|
+
var t = this,
|
|
1093
|
+
e = r.apply(this, []);
|
|
1094
|
+
return e.forEach(function (e) {
|
|
1095
|
+
return e._pc = t
|
|
1096
|
+
}),
|
|
1097
|
+
e
|
|
1098
|
+
}), (t = e.RTCPeerConnection.prototype.addTrack) && (e.RTCPeerConnection.prototype.addTrack = function () {
|
|
1099
|
+
var e = t.apply(this, arguments);
|
|
1100
|
+
return e._pc = this,
|
|
1101
|
+
e
|
|
1102
|
+
}), e.RTCRtpSender.prototype.getStats = function () {
|
|
1103
|
+
return this.track ? this._pc.getStats(this.track) : Promise.resolve(new Map)
|
|
1104
|
+
}))
|
|
1105
|
+
},
|
|
1106
|
+
r.shimReceiverGetStats = function (e) {
|
|
1107
|
+
var r;
|
|
1108
|
+
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && e.RTCRtpSender && (e.RTCRtpSender && "getStats" in e.RTCRtpReceiver.prototype || ((r = e.RTCPeerConnection.prototype.getReceivers) && (e.RTCPeerConnection.prototype.getReceivers = function () {
|
|
1109
|
+
var t = this,
|
|
1110
|
+
e = r.apply(this, []);
|
|
1111
|
+
return e.forEach(function (e) {
|
|
1112
|
+
return e._pc = t
|
|
1113
|
+
}),
|
|
1114
|
+
e
|
|
1115
|
+
}), o.wrapPeerConnectionEvent(e, "track", function (e) {
|
|
1116
|
+
return e.receiver._pc = e.srcElement,
|
|
1117
|
+
e
|
|
1118
|
+
}), e.RTCRtpReceiver.prototype.getStats = function () {
|
|
1119
|
+
return this._pc.getStats(this.track)
|
|
1120
|
+
}))
|
|
1121
|
+
},
|
|
1122
|
+
r.shimRemoveStream = function (e) {
|
|
1123
|
+
!e.RTCPeerConnection || "removeStream" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.removeStream = function (t) {
|
|
1124
|
+
var r = this;
|
|
1125
|
+
o.deprecated("removeStream", "removeTrack"),
|
|
1126
|
+
this.getSenders().forEach(function (e) {
|
|
1127
|
+
e.track && t.getTracks().includes(e.track) && r.removeTrack(e)
|
|
1128
|
+
})
|
|
1129
|
+
})
|
|
1130
|
+
},
|
|
1131
|
+
r.shimRTCDataChannel = function (e) {
|
|
1132
|
+
e.DataChannel && !e.RTCDataChannel && (e.RTCDataChannel = e.DataChannel)
|
|
1133
|
+
},
|
|
1134
|
+
r.shimAddTransceiver = function (e) {
|
|
1135
|
+
var i;
|
|
1136
|
+
"object" !== (void 0 === e ? "undefined" : a(e)) || !e.RTCPeerConnection || (i = e.RTCPeerConnection.prototype.addTransceiver) && (e.RTCPeerConnection.prototype.addTransceiver = function () {
|
|
1137
|
+
this.setParametersPromises = [];
|
|
1138
|
+
var e = arguments[1],
|
|
1139
|
+
t = e && "sendEncodings" in e;
|
|
1140
|
+
t && e.sendEncodings.forEach(function (e) {
|
|
1141
|
+
if ("rid" in e)
|
|
1142
|
+
if (!/^[a-z0-9]{0,16}$/i.test(e.rid))
|
|
1143
|
+
throw new TypeError("Invalid RID value provided.");
|
|
1144
|
+
if ("scaleResolutionDownBy" in e && !(1 <= parseFloat(e.scaleResolutionDownBy)))
|
|
1145
|
+
throw new RangeError("scale_resolution_down_by must be >= 1.0");
|
|
1146
|
+
if ("maxFramerate" in e && !(0 <= parseFloat(e.maxFramerate)))
|
|
1147
|
+
throw new RangeError("max_framerate must be >= 0.0")
|
|
1148
|
+
});
|
|
1149
|
+
var r,
|
|
1150
|
+
n = i.apply(this, arguments);
|
|
1151
|
+
return t && ("encodings" in(t = (r = n.sender).getParameters()) && (1 !== t.encodings.length || 0 !== Object.keys(t.encodings[0]).length) || (t.encodings = e.sendEncodings, r.sendEncodings = e.sendEncodings, this.setParametersPromises.push(r.setParameters(t).then(function () {
|
|
1152
|
+
delete r.sendEncodings
|
|
1153
|
+
}).catch(function () {
|
|
1154
|
+
delete r.sendEncodings
|
|
1155
|
+
})))),
|
|
1156
|
+
n
|
|
1157
|
+
})
|
|
1158
|
+
},
|
|
1159
|
+
r.shimGetParameters = function (e) {
|
|
1160
|
+
var t;
|
|
1161
|
+
"object" !== (void 0 === e ? "undefined" : a(e)) || !e.RTCRtpSender || (t = e.RTCRtpSender.prototype.getParameters) && (e.RTCRtpSender.prototype.getParameters = function () {
|
|
1162
|
+
var e = t.apply(this, arguments);
|
|
1163
|
+
return "encodings" in e || (e.encodings = [].concat(this.sendEncodings || [{}
|
|
1164
|
+
])),
|
|
1165
|
+
e
|
|
1166
|
+
})
|
|
1167
|
+
},
|
|
1168
|
+
r.shimCreateOffer = function (e) {
|
|
1169
|
+
var r;
|
|
1170
|
+
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && (r = e.RTCPeerConnection.prototype.createOffer, e.RTCPeerConnection.prototype.createOffer = function () {
|
|
1171
|
+
var e = this,
|
|
1172
|
+
t = arguments;
|
|
1173
|
+
return this.setParametersPromises && this.setParametersPromises.length ? Promise.all(this.setParametersPromises).then(function () {
|
|
1174
|
+
return r.apply(e, t)
|
|
1175
|
+
}).finally(function () {
|
|
1176
|
+
e.setParametersPromises = []
|
|
1177
|
+
}) : r.apply(this, arguments)
|
|
1178
|
+
})
|
|
1179
|
+
},
|
|
1180
|
+
r.shimCreateAnswer = function (e) {
|
|
1181
|
+
var r;
|
|
1182
|
+
"object" === (void 0 === e ? "undefined" : a(e)) && e.RTCPeerConnection && (r = e.RTCPeerConnection.prototype.createAnswer, e.RTCPeerConnection.prototype.createAnswer = function () {
|
|
1183
|
+
var e = this,
|
|
1184
|
+
t = arguments;
|
|
1185
|
+
return this.setParametersPromises && this.setParametersPromises.length ? Promise.all(this.setParametersPromises).then(function () {
|
|
1186
|
+
return r.apply(e, t)
|
|
1187
|
+
}).finally(function () {
|
|
1188
|
+
e.setParametersPromises = []
|
|
1189
|
+
}) : r.apply(this, arguments)
|
|
1190
|
+
})
|
|
1191
|
+
};
|
|
1192
|
+
var o = function (e) { {
|
|
1193
|
+
if (e && e.__esModule)
|
|
1194
|
+
return e;
|
|
1195
|
+
var t = {};
|
|
1196
|
+
if (null != e)
|
|
1197
|
+
for (var r in e)
|
|
1198
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
1199
|
+
return t.default = e,
|
|
1200
|
+
t
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
(e("../utils"))
|
|
1204
|
+
}, {
|
|
1205
|
+
"../utils": 11,
|
|
1206
|
+
"./getdisplaymedia": 8,
|
|
1207
|
+
"./getusermedia": 9
|
|
1208
|
+
}
|
|
1209
|
+
],
|
|
1210
|
+
8: [function (e, t, r) {
|
|
1211
|
+
"use strict";
|
|
1212
|
+
Object.defineProperty(r, "__esModule", {
|
|
1213
|
+
value: !0
|
|
1214
|
+
}),
|
|
1215
|
+
r.shimGetDisplayMedia = function (t, r) {
|
|
1216
|
+
t.navigator.mediaDevices && "getDisplayMedia" in t.navigator.mediaDevices || t.navigator.mediaDevices && (t.navigator.mediaDevices.getDisplayMedia = function (e) {
|
|
1217
|
+
if (e && e.video)
|
|
1218
|
+
return !0 === e.video ? e.video = {
|
|
1219
|
+
mediaSource: r
|
|
1220
|
+
}
|
|
1221
|
+
: e.video.mediaSource = r,
|
|
1222
|
+
t.navigator.mediaDevices.getUserMedia(e);
|
|
1223
|
+
e = new DOMException("getDisplayMedia without video constraints is undefined");
|
|
1224
|
+
return e.name = "NotFoundError",
|
|
1225
|
+
e.code = 8,
|
|
1226
|
+
Promise.reject(e)
|
|
1227
|
+
})
|
|
1228
|
+
}
|
|
1229
|
+
}, {}
|
|
1230
|
+
],
|
|
1231
|
+
9: [function (e, t, r) {
|
|
1232
|
+
"use strict";
|
|
1233
|
+
Object.defineProperty(r, "__esModule", {
|
|
1234
|
+
value: !0
|
|
1235
|
+
});
|
|
1236
|
+
var s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1237
|
+
return typeof e
|
|
1238
|
+
}
|
|
1239
|
+
: function (e) {
|
|
1240
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1241
|
+
};
|
|
1242
|
+
r.shimGetUserMedia = function (e, t) {
|
|
1243
|
+
var n = e && e.navigator,
|
|
1244
|
+
e = e && e.MediaStreamTrack; {
|
|
1245
|
+
var r,
|
|
1246
|
+
i,
|
|
1247
|
+
o,
|
|
1248
|
+
a;
|
|
1249
|
+
n.getUserMedia = function (e, t, r) {
|
|
1250
|
+
c.deprecated("navigator.getUserMedia", "navigator.mediaDevices.getUserMedia"),
|
|
1251
|
+
n.mediaDevices.getUserMedia(e).then(t, r)
|
|
1252
|
+
},
|
|
1253
|
+
55 < t.version && "autoGainControl" in n.mediaDevices.getSupportedConstraints() || (r = function (e, t, r) {
|
|
1254
|
+
t in e && !(r in e) && (e[r] = e[t], delete e[t])
|
|
1255
|
+
}, i = n.mediaDevices.getUserMedia.bind(n.mediaDevices), n.mediaDevices.getUserMedia = function (e) {
|
|
1256
|
+
return "object" === (void 0 === e ? "undefined" : s(e)) && "object" === s(e.audio) && (e = JSON.parse(JSON.stringify(e)), r(e.audio, "autoGainControl", "mozAutoGainControl"), r(e.audio, "noiseSuppression", "mozNoiseSuppression")),
|
|
1257
|
+
i(e)
|
|
1258
|
+
}, e && e.prototype.getSettings && (o = e.prototype.getSettings, e.prototype.getSettings = function () {
|
|
1259
|
+
var e = o.apply(this, arguments);
|
|
1260
|
+
return r(e, "mozAutoGainControl", "autoGainControl"),
|
|
1261
|
+
r(e, "mozNoiseSuppression", "noiseSuppression"),
|
|
1262
|
+
e
|
|
1263
|
+
}), e && e.prototype.applyConstraints && (a = e.prototype.applyConstraints, e.prototype.applyConstraints = function (e) {
|
|
1264
|
+
return "audio" === this.kind && "object" === (void 0 === e ? "undefined" : s(e)) && (e = JSON.parse(JSON.stringify(e)), r(e, "autoGainControl", "mozAutoGainControl"), r(e, "noiseSuppression", "mozNoiseSuppression")),
|
|
1265
|
+
a.apply(this, [e])
|
|
1266
|
+
}))
|
|
1267
|
+
}
|
|
1268
|
+
};
|
|
1269
|
+
var c = function (e) { {
|
|
1270
|
+
if (e && e.__esModule)
|
|
1271
|
+
return e;
|
|
1272
|
+
var t = {};
|
|
1273
|
+
if (null != e)
|
|
1274
|
+
for (var r in e)
|
|
1275
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
1276
|
+
return t.default = e,
|
|
1277
|
+
t
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
(e("../utils"))
|
|
1281
|
+
}, {
|
|
1282
|
+
"../utils": 11
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
1285
|
+
10: [function (e, t, r) {
|
|
1286
|
+
"use strict";
|
|
1287
|
+
Object.defineProperty(r, "__esModule", {
|
|
1288
|
+
value: !0
|
|
1289
|
+
});
|
|
1290
|
+
var c = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1291
|
+
return typeof e
|
|
1292
|
+
}
|
|
1293
|
+
: function (e) {
|
|
1294
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1295
|
+
};
|
|
1296
|
+
r.shimLocalStreamsAPI = function (e) {
|
|
1297
|
+
var o;
|
|
1298
|
+
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCPeerConnection && ("getLocalStreams" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.getLocalStreams = function () {
|
|
1299
|
+
return this._localStreams || (this._localStreams = []),
|
|
1300
|
+
this._localStreams
|
|
1301
|
+
}), "addStream" in e.RTCPeerConnection.prototype || (o = e.RTCPeerConnection.prototype.addTrack, e.RTCPeerConnection.prototype.addStream = function (t) {
|
|
1302
|
+
var r = this;
|
|
1303
|
+
this._localStreams || (this._localStreams = []),
|
|
1304
|
+
this._localStreams.includes(t) || this._localStreams.push(t),
|
|
1305
|
+
t.getAudioTracks().forEach(function (e) {
|
|
1306
|
+
return o.call(r, e, t)
|
|
1307
|
+
}),
|
|
1308
|
+
t.getVideoTracks().forEach(function (e) {
|
|
1309
|
+
return o.call(r, e, t)
|
|
1310
|
+
})
|
|
1311
|
+
}, e.RTCPeerConnection.prototype.addTrack = function (e) {
|
|
1312
|
+
for (var t = this, r = arguments.length, n = Array(1 < r ? r - 1 : 0), i = 1; i < r; i++)
|
|
1313
|
+
n[i - 1] = arguments[i];
|
|
1314
|
+
return n && n.forEach(function (e) {
|
|
1315
|
+
t._localStreams ? t._localStreams.includes(e) || t._localStreams.push(e) : t._localStreams = [e]
|
|
1316
|
+
}),
|
|
1317
|
+
o.apply(this, arguments)
|
|
1318
|
+
}), "removeStream" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.removeStream = function (e) {
|
|
1319
|
+
var t = this;
|
|
1320
|
+
this._localStreams || (this._localStreams = []);
|
|
1321
|
+
var r,
|
|
1322
|
+
n = this._localStreams.indexOf(e);
|
|
1323
|
+
-1 !== n && (this._localStreams.splice(n, 1), r = e.getTracks(), this.getSenders().forEach(function (e) {
|
|
1324
|
+
r.includes(e.track) && t.removeTrack(e)
|
|
1325
|
+
}))
|
|
1326
|
+
}))
|
|
1327
|
+
},
|
|
1328
|
+
r.shimRemoteStreamsAPI = function (e) {
|
|
1329
|
+
var t;
|
|
1330
|
+
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCPeerConnection && ("getRemoteStreams" in e.RTCPeerConnection.prototype || (e.RTCPeerConnection.prototype.getRemoteStreams = function () {
|
|
1331
|
+
return this._remoteStreams || []
|
|
1332
|
+
}), "onaddstream" in e.RTCPeerConnection.prototype || (Object.defineProperty(e.RTCPeerConnection.prototype, "onaddstream", {
|
|
1333
|
+
get: function () {
|
|
1334
|
+
return this._onaddstream
|
|
1335
|
+
},
|
|
1336
|
+
set: function (e) {
|
|
1337
|
+
var r = this;
|
|
1338
|
+
this._onaddstream && (this.removeEventListener("addstream", this._onaddstream), this.removeEventListener("track", this._onaddstreampoly)),
|
|
1339
|
+
this.addEventListener("addstream", this._onaddstream = e),
|
|
1340
|
+
this.addEventListener("track", this._onaddstreampoly = function (e) {
|
|
1341
|
+
e.streams.forEach(function (e) {
|
|
1342
|
+
var t;
|
|
1343
|
+
r._remoteStreams || (r._remoteStreams = []),
|
|
1344
|
+
r._remoteStreams.includes(e) || (r._remoteStreams.push(e), (t = new Event("addstream")).stream = e, r.dispatchEvent(t))
|
|
1345
|
+
})
|
|
1346
|
+
})
|
|
1347
|
+
}
|
|
1348
|
+
}), t = e.RTCPeerConnection.prototype.setRemoteDescription, e.RTCPeerConnection.prototype.setRemoteDescription = function () {
|
|
1349
|
+
var r = this;
|
|
1350
|
+
return this._onaddstreampoly || this.addEventListener("track", this._onaddstreampoly = function (e) {
|
|
1351
|
+
e.streams.forEach(function (e) {
|
|
1352
|
+
var t;
|
|
1353
|
+
r._remoteStreams || (r._remoteStreams = []),
|
|
1354
|
+
0 <= r._remoteStreams.indexOf(e) || (r._remoteStreams.push(e), (t = new Event("addstream")).stream = e, r.dispatchEvent(t))
|
|
1355
|
+
})
|
|
1356
|
+
}),
|
|
1357
|
+
t.apply(r, arguments)
|
|
1358
|
+
}))
|
|
1359
|
+
},
|
|
1360
|
+
r.shimCallbacksAPI = function (e) {
|
|
1361
|
+
var t,
|
|
1362
|
+
n,
|
|
1363
|
+
i,
|
|
1364
|
+
o,
|
|
1365
|
+
a,
|
|
1366
|
+
s;
|
|
1367
|
+
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCPeerConnection && (t = e.RTCPeerConnection.prototype, n = t.createOffer, i = t.createAnswer, o = t.setLocalDescription, a = t.setRemoteDescription, s = t.addIceCandidate, t.createOffer = function (e, t) {
|
|
1368
|
+
var r = n.apply(this, [2 <= arguments.length ? arguments[2] : e]);
|
|
1369
|
+
return t ? (r.then(e, t), Promise.resolve()) : r
|
|
1370
|
+
}, t.createAnswer = function (e, t) {
|
|
1371
|
+
var r = i.apply(this, [2 <= arguments.length ? arguments[2] : e]);
|
|
1372
|
+
return t ? (r.then(e, t), Promise.resolve()) : r
|
|
1373
|
+
}, e = function (e, t, r) {
|
|
1374
|
+
e = o.apply(this, [e]);
|
|
1375
|
+
return r ? (e.then(t, r), Promise.resolve()) : e
|
|
1376
|
+
}, t.setLocalDescription = e, e = function (e, t, r) {
|
|
1377
|
+
e = a.apply(this, [e]);
|
|
1378
|
+
return r ? (e.then(t, r), Promise.resolve()) : e
|
|
1379
|
+
}, t.setRemoteDescription = e, e = function (e, t, r) {
|
|
1380
|
+
e = s.apply(this, [e]);
|
|
1381
|
+
return r ? (e.then(t, r), Promise.resolve()) : e
|
|
1382
|
+
}, t.addIceCandidate = e)
|
|
1383
|
+
},
|
|
1384
|
+
r.shimGetUserMedia = function (e) {
|
|
1385
|
+
var n = e && e.navigator; {
|
|
1386
|
+
var t;
|
|
1387
|
+
n.mediaDevices && n.mediaDevices.getUserMedia && (e = n.mediaDevices, t = e.getUserMedia.bind(e), n.mediaDevices.getUserMedia = function (e) {
|
|
1388
|
+
return t(i(e))
|
|
1389
|
+
})
|
|
1390
|
+
}
|
|
1391
|
+
!n.getUserMedia && n.mediaDevices && n.mediaDevices.getUserMedia && (n.getUserMedia = function (e, t, r) {
|
|
1392
|
+
n.mediaDevices.getUserMedia(e).then(t, r)
|
|
1393
|
+
}
|
|
1394
|
+
.bind(n))
|
|
1395
|
+
},
|
|
1396
|
+
r.shimConstraints = i,
|
|
1397
|
+
r.shimRTCIceServerUrls = function (e) {
|
|
1398
|
+
var o;
|
|
1399
|
+
e.RTCPeerConnection && (o = e.RTCPeerConnection, e.RTCPeerConnection = function (e, t) {
|
|
1400
|
+
if (e && e.iceServers) {
|
|
1401
|
+
for (var r = [], n = 0; n < e.iceServers.length; n++) {
|
|
1402
|
+
var i = e.iceServers[n];
|
|
1403
|
+
!i.hasOwnProperty("urls") && i.hasOwnProperty("url") ? (a.deprecated("RTCIceServer.url", "RTCIceServer.urls"), (i = JSON.parse(JSON.stringify(i))).urls = i.url, delete i.url, r.push(i)) : r.push(e.iceServers[n])
|
|
1404
|
+
}
|
|
1405
|
+
e.iceServers = r
|
|
1406
|
+
}
|
|
1407
|
+
return new o(e, t)
|
|
1408
|
+
}, e.RTCPeerConnection.prototype = o.prototype, "generateCertificate" in o && Object.defineProperty(e.RTCPeerConnection, "generateCertificate", {
|
|
1409
|
+
get: function () {
|
|
1410
|
+
return o.generateCertificate
|
|
1411
|
+
}
|
|
1412
|
+
}))
|
|
1413
|
+
},
|
|
1414
|
+
r.shimTrackEventTransceiver = function (e) {
|
|
1415
|
+
"object" === (void 0 === e ? "undefined" : c(e)) && e.RTCTrackEvent && "receiver" in e.RTCTrackEvent.prototype && !("transceiver" in e.RTCTrackEvent.prototype) && Object.defineProperty(e.RTCTrackEvent.prototype, "transceiver", {
|
|
1416
|
+
get: function () {
|
|
1417
|
+
return {
|
|
1418
|
+
receiver: this.receiver
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
})
|
|
1422
|
+
},
|
|
1423
|
+
r.shimCreateOfferLegacy = function (e) {
|
|
1424
|
+
var r = e.RTCPeerConnection.prototype.createOffer;
|
|
1425
|
+
e.RTCPeerConnection.prototype.createOffer = function (e) {
|
|
1426
|
+
var t;
|
|
1427
|
+
return e && (void 0 !== e.offerToReceiveAudio && (e.offerToReceiveAudio = !!e.offerToReceiveAudio), t = this.getTransceivers().find(function (e) {
|
|
1428
|
+
return "audio" === e.receiver.track.kind
|
|
1429
|
+
}), !1 === e.offerToReceiveAudio && t ? "sendrecv" === t.direction ? t.setDirection ? t.setDirection("sendonly") : t.direction = "sendonly" : "recvonly" === t.direction && (t.setDirection ? t.setDirection("inactive") : t.direction = "inactive") : !0 !== e.offerToReceiveAudio || t || this.addTransceiver("audio", {
|
|
1430
|
+
direction: "recvonly"
|
|
1431
|
+
}), void 0 !== e.offerToReceiveVideo && (e.offerToReceiveVideo = !!e.offerToReceiveVideo), t = this.getTransceivers().find(function (e) {
|
|
1432
|
+
return "video" === e.receiver.track.kind
|
|
1433
|
+
}), !1 === e.offerToReceiveVideo && t ? "sendrecv" === t.direction ? t.setDirection ? t.setDirection("sendonly") : t.direction = "sendonly" : "recvonly" === t.direction && (t.setDirection ? t.setDirection("inactive") : t.direction = "inactive") : !0 !== e.offerToReceiveVideo || t || this.addTransceiver("video", {
|
|
1434
|
+
direction: "recvonly"
|
|
1435
|
+
})),
|
|
1436
|
+
r.apply(this, arguments)
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
r.shimAudioContext = function (e) {
|
|
1440
|
+
"object" !== (void 0 === e ? "undefined" : c(e)) || e.AudioContext || (e.AudioContext = e.webkitAudioContext)
|
|
1441
|
+
};
|
|
1442
|
+
var a = function (e) { {
|
|
1443
|
+
if (e && e.__esModule)
|
|
1444
|
+
return e;
|
|
1445
|
+
var t = {};
|
|
1446
|
+
if (null != e)
|
|
1447
|
+
for (var r in e)
|
|
1448
|
+
Object.prototype.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
1449
|
+
return t.default = e,
|
|
1450
|
+
t
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
(e("../utils"));
|
|
1454
|
+
function i(e) {
|
|
1455
|
+
return e && void 0 !== e.video ? Object.assign({}, e, {
|
|
1456
|
+
video: a.compactObject(e.video)
|
|
1457
|
+
}) : e
|
|
1458
|
+
}
|
|
1459
|
+
}, {
|
|
1460
|
+
"../utils": 11
|
|
1461
|
+
}
|
|
1462
|
+
],
|
|
1463
|
+
11: [function (e, t, r) {
|
|
1464
|
+
"use strict";
|
|
1465
|
+
Object.defineProperty(r, "__esModule", {
|
|
1466
|
+
value: !0
|
|
1467
|
+
});
|
|
1468
|
+
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1469
|
+
return typeof e
|
|
1470
|
+
}
|
|
1471
|
+
: function (e) {
|
|
1472
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1473
|
+
};
|
|
1474
|
+
function a(e, t, r) {
|
|
1475
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1476
|
+
value: r,
|
|
1477
|
+
enumerable: !0,
|
|
1478
|
+
configurable: !0,
|
|
1479
|
+
writable: !0
|
|
1480
|
+
}) : e[t] = r,
|
|
1481
|
+
e
|
|
1482
|
+
}
|
|
1483
|
+
r.extractVersion = s,
|
|
1484
|
+
r.wrapPeerConnectionEvent = function (e, n, i) {
|
|
1485
|
+
var o,
|
|
1486
|
+
a;
|
|
1487
|
+
e.RTCPeerConnection && (e = e.RTCPeerConnection.prototype, o = e.addEventListener, e.addEventListener = function (e, t) {
|
|
1488
|
+
if (e !== n)
|
|
1489
|
+
return o.apply(this, arguments);
|
|
1490
|
+
function r(e) {
|
|
1491
|
+
(e = i(e)) && (t.handleEvent ? t.handleEvent(e) : t(e))
|
|
1492
|
+
}
|
|
1493
|
+
return this._eventMap = this._eventMap || {},
|
|
1494
|
+
this._eventMap[n] || (this._eventMap[n] = new Map),
|
|
1495
|
+
this._eventMap[n].set(t, r),
|
|
1496
|
+
o.apply(this, [e, r])
|
|
1497
|
+
}, a = e.removeEventListener, e.removeEventListener = function (e, t) {
|
|
1498
|
+
if (e !== n || !this._eventMap || !this._eventMap[n])
|
|
1499
|
+
return a.apply(this, arguments);
|
|
1500
|
+
if (!this._eventMap[n].has(t))
|
|
1501
|
+
return a.apply(this, arguments);
|
|
1502
|
+
var r = this._eventMap[n].get(t);
|
|
1503
|
+
return this._eventMap[n].delete(t),
|
|
1504
|
+
0 === this._eventMap[n].size && delete this._eventMap[n],
|
|
1505
|
+
0 === Object.keys(this._eventMap).length && delete this._eventMap,
|
|
1506
|
+
a.apply(this, [e, r])
|
|
1507
|
+
}, Object.defineProperty(e, "on" + n, {
|
|
1508
|
+
get: function () {
|
|
1509
|
+
return this["_on" + n]
|
|
1510
|
+
},
|
|
1511
|
+
set: function (e) {
|
|
1512
|
+
this["_on" + n] && (this.removeEventListener(n, this["_on" + n]), delete this["_on" + n]),
|
|
1513
|
+
e && this.addEventListener(n, this["_on" + n] = e)
|
|
1514
|
+
},
|
|
1515
|
+
enumerable: !0,
|
|
1516
|
+
configurable: !0
|
|
1517
|
+
}))
|
|
1518
|
+
},
|
|
1519
|
+
r.disableLog = function (e) {
|
|
1520
|
+
return "boolean" == typeof e ? (i = e) ? "adapter.js logging disabled" : "adapter.js logging enabled" : new Error("Argument type: " + (void 0 === e ? "undefined" : n(e)) + ". Please use a boolean.")
|
|
1521
|
+
},
|
|
1522
|
+
r.disableWarnings = function (e) {
|
|
1523
|
+
return "boolean" == typeof e ? (o = !e, "adapter.js deprecation warnings " + (e ? "disabled" : "enabled")) : new Error("Argument type: " + (void 0 === e ? "undefined" : n(e)) + ". Please use a boolean.")
|
|
1524
|
+
},
|
|
1525
|
+
r.log = function () {
|
|
1526
|
+
"object" === ("undefined" == typeof window ? "undefined" : n(window)) && (i || "undefined" != typeof console && "function" == typeof console.log && console.log.apply(console, arguments))
|
|
1527
|
+
},
|
|
1528
|
+
r.deprecated = function (e, t) {
|
|
1529
|
+
o && console.warn(e + " is deprecated, please use " + t + " instead.")
|
|
1530
|
+
},
|
|
1531
|
+
r.detectBrowser = function (e) {
|
|
1532
|
+
var t = {
|
|
1533
|
+
browser: null,
|
|
1534
|
+
version: null
|
|
1535
|
+
};
|
|
1536
|
+
if (void 0 === e || !e.navigator)
|
|
1537
|
+
return t.browser = "Not a browser.", t;
|
|
1538
|
+
var r = e.navigator;
|
|
1539
|
+
if (r.mozGetUserMedia)
|
|
1540
|
+
t.browser = "firefox", t.version = s(r.userAgent, /Firefox\/(\d+)\./, 1);
|
|
1541
|
+
else if (r.webkitGetUserMedia || !1 === e.isSecureContext && e.webkitRTCPeerConnection && !e.RTCIceGatherer)
|
|
1542
|
+
t.browser = "chrome", t.version = s(r.userAgent, /Chrom(e|ium)\/(\d+)\./, 2);
|
|
1543
|
+
else {
|
|
1544
|
+
if (!e.RTCPeerConnection || !r.userAgent.match(/AppleWebKit\/(\d+)\./))
|
|
1545
|
+
return t.browser = "Not a supported browser.", t;
|
|
1546
|
+
t.browser = "safari",
|
|
1547
|
+
t.version = s(r.userAgent, /AppleWebKit\/(\d+)\./, 1),
|
|
1548
|
+
t.supportsUnifiedPlan = e.RTCRtpTransceiver && "currentDirection" in e.RTCRtpTransceiver.prototype
|
|
1549
|
+
}
|
|
1550
|
+
return t
|
|
1551
|
+
},
|
|
1552
|
+
r.compactObject = function i(o) {
|
|
1553
|
+
if (!c(o))
|
|
1554
|
+
return o;
|
|
1555
|
+
return Object.keys(o).reduce(function (e, t) {
|
|
1556
|
+
var r = c(o[t]),
|
|
1557
|
+
n = r ? i(o[t]) : o[t],
|
|
1558
|
+
r = r && !Object.keys(n).length;
|
|
1559
|
+
return void 0 === n || r ? e : Object.assign(e, a({}, t, n))
|
|
1560
|
+
}, {})
|
|
1561
|
+
},
|
|
1562
|
+
r.walkStats = p,
|
|
1563
|
+
r.filterStats = function (r, t, e) {
|
|
1564
|
+
var n = e ? "outbound-rtp" : "inbound-rtp",
|
|
1565
|
+
i = new Map;
|
|
1566
|
+
if (null === t)
|
|
1567
|
+
return i;
|
|
1568
|
+
var o = [];
|
|
1569
|
+
return r.forEach(function (e) {
|
|
1570
|
+
"track" === e.type && e.trackIdentifier === t.id && o.push(e)
|
|
1571
|
+
}),
|
|
1572
|
+
o.forEach(function (t) {
|
|
1573
|
+
r.forEach(function (e) {
|
|
1574
|
+
e.type === n && e.trackId === t.id && p(r, e, i)
|
|
1575
|
+
})
|
|
1576
|
+
}),
|
|
1577
|
+
i
|
|
1578
|
+
};
|
|
1579
|
+
var i = !0,
|
|
1580
|
+
o = !0;
|
|
1581
|
+
function s(e, t, r) {
|
|
1582
|
+
t = e.match(t);
|
|
1583
|
+
return t && t.length >= r && parseInt(t[r], 10)
|
|
1584
|
+
}
|
|
1585
|
+
function c(e) {
|
|
1586
|
+
return "[object Object]" === Object.prototype.toString.call(e)
|
|
1587
|
+
}
|
|
1588
|
+
function p(t, r, n) {
|
|
1589
|
+
r && !n.has(r.id) && (n.set(r.id, r), Object.keys(r).forEach(function (e) {
|
|
1590
|
+
e.endsWith("Id") ? p(t, t.get(r[e]), n) : e.endsWith("Ids") && r[e].forEach(function (e) {
|
|
1591
|
+
p(t, t.get(e), n)
|
|
1592
|
+
})
|
|
1593
|
+
}))
|
|
1594
|
+
}
|
|
1595
|
+
}, {}
|
|
1596
|
+
],
|
|
1597
|
+
12: [function (e, t, r) {
|
|
1598
|
+
"use strict";
|
|
1599
|
+
var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
|
|
1600
|
+
return typeof e
|
|
1601
|
+
}
|
|
1602
|
+
: function (e) {
|
|
1603
|
+
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
|
|
1604
|
+
},
|
|
1605
|
+
p = {
|
|
1606
|
+
generateIdentifier: function () {
|
|
1607
|
+
return Math.random().toString(36).substr(2, 10)
|
|
1608
|
+
}
|
|
1609
|
+
};
|
|
1610
|
+
p.localCName = p.generateIdentifier(),
|
|
1611
|
+
p.splitLines = function (e) {
|
|
1612
|
+
return e.trim().split("\n").map(function (e) {
|
|
1613
|
+
return e.trim()
|
|
1614
|
+
})
|
|
1615
|
+
},
|
|
1616
|
+
p.splitSections = function (e) {
|
|
1617
|
+
return e.split("\nm=").map(function (e, t) {
|
|
1618
|
+
return (0 < t ? "m=" + e : e).trim() + "\r\n"
|
|
1619
|
+
})
|
|
1620
|
+
},
|
|
1621
|
+
p.getDescription = function (e) {
|
|
1622
|
+
e = p.splitSections(e);
|
|
1623
|
+
return e && e[0]
|
|
1624
|
+
},
|
|
1625
|
+
p.getMediaSections = function (e) {
|
|
1626
|
+
e = p.splitSections(e);
|
|
1627
|
+
return e.shift(),
|
|
1628
|
+
e
|
|
1629
|
+
},
|
|
1630
|
+
p.matchPrefix = function (e, t) {
|
|
1631
|
+
return p.splitLines(e).filter(function (e) {
|
|
1632
|
+
return 0 === e.indexOf(t)
|
|
1633
|
+
})
|
|
1634
|
+
},
|
|
1635
|
+
p.parseCandidate = function (e) {
|
|
1636
|
+
for (var t = void 0, r = {
|
|
1637
|
+
foundation: (t = (0 === e.indexOf("a=candidate:") ? e.substring(12) : e.substring(10)).split(" "))[0],
|
|
1638
|
+
component: {
|
|
1639
|
+
1: "rtp",
|
|
1640
|
+
2: "rtcp"
|
|
1641
|
+
}
|
|
1642
|
+
[t[1]] || t[1],
|
|
1643
|
+
protocol: t[2].toLowerCase(),
|
|
1644
|
+
priority: parseInt(t[3], 10),
|
|
1645
|
+
ip: t[4],
|
|
1646
|
+
address: t[4],
|
|
1647
|
+
port: parseInt(t[5], 10),
|
|
1648
|
+
type: t[7]
|
|
1649
|
+
}, n = 8; n < t.length; n += 2)
|
|
1650
|
+
switch (t[n]) {
|
|
1651
|
+
case "raddr":
|
|
1652
|
+
r.relatedAddress = t[n + 1];
|
|
1653
|
+
break;
|
|
1654
|
+
case "rport":
|
|
1655
|
+
r.relatedPort = parseInt(t[n + 1], 10);
|
|
1656
|
+
break;
|
|
1657
|
+
case "tcptype":
|
|
1658
|
+
r.tcpType = t[n + 1];
|
|
1659
|
+
break;
|
|
1660
|
+
case "ufrag":
|
|
1661
|
+
r.ufrag = t[n + 1],
|
|
1662
|
+
r.usernameFragment = t[n + 1];
|
|
1663
|
+
break;
|
|
1664
|
+
default:
|
|
1665
|
+
void 0 === r[t[n]] && (r[t[n]] = t[n + 1])
|
|
1666
|
+
}
|
|
1667
|
+
return r
|
|
1668
|
+
},
|
|
1669
|
+
p.writeCandidate = function (e) {
|
|
1670
|
+
var t = [];
|
|
1671
|
+
t.push(e.foundation);
|
|
1672
|
+
var r = e.component;
|
|
1673
|
+
"rtp" === r ? t.push(1) : "rtcp" === r ? t.push(2) : t.push(r),
|
|
1674
|
+
t.push(e.protocol.toUpperCase()),
|
|
1675
|
+
t.push(e.priority),
|
|
1676
|
+
t.push(e.address || e.ip),
|
|
1677
|
+
t.push(e.port);
|
|
1678
|
+
r = e.type;
|
|
1679
|
+
return t.push("typ"),
|
|
1680
|
+
t.push(r),
|
|
1681
|
+
"host" !== r && e.relatedAddress && e.relatedPort && (t.push("raddr"), t.push(e.relatedAddress), t.push("rport"), t.push(e.relatedPort)),
|
|
1682
|
+
e.tcpType && "tcp" === e.protocol.toLowerCase() && (t.push("tcptype"), t.push(e.tcpType)),
|
|
1683
|
+
(e.usernameFragment || e.ufrag) && (t.push("ufrag"), t.push(e.usernameFragment || e.ufrag)),
|
|
1684
|
+
"candidate:" + t.join(" ")
|
|
1685
|
+
},
|
|
1686
|
+
p.parseIceOptions = function (e) {
|
|
1687
|
+
return e.substr(14).split(" ")
|
|
1688
|
+
},
|
|
1689
|
+
p.parseRtpMap = function (e) {
|
|
1690
|
+
var t = e.substr(9).split(" "),
|
|
1691
|
+
e = {
|
|
1692
|
+
payloadType: parseInt(t.shift(), 10)
|
|
1693
|
+
},
|
|
1694
|
+
t = t[0].split("/");
|
|
1695
|
+
return e.name = t[0],
|
|
1696
|
+
e.clockRate = parseInt(t[1], 10),
|
|
1697
|
+
e.channels = 3 === t.length ? parseInt(t[2], 10) : 1,
|
|
1698
|
+
e.numChannels = e.channels,
|
|
1699
|
+
e
|
|
1700
|
+
},
|
|
1701
|
+
p.writeRtpMap = function (e) {
|
|
1702
|
+
var t = e.payloadType;
|
|
1703
|
+
void 0 !== e.preferredPayloadType && (t = e.preferredPayloadType);
|
|
1704
|
+
var r = e.channels || e.numChannels || 1;
|
|
1705
|
+
return "a=rtpmap:" + t + " " + e.name + "/" + e.clockRate + (1 !== r ? "/" + r : "") + "\r\n"
|
|
1706
|
+
},
|
|
1707
|
+
p.parseExtmap = function (e) {
|
|
1708
|
+
e = e.substr(9).split(" ");
|
|
1709
|
+
return {
|
|
1710
|
+
id: parseInt(e[0], 10),
|
|
1711
|
+
direction: 0 < e[0].indexOf("/") ? e[0].split("/")[1] : "sendrecv",
|
|
1712
|
+
uri: e[1]
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1715
|
+
p.writeExtmap = function (e) {
|
|
1716
|
+
return "a=extmap:" + (e.id || e.preferredId) + (e.direction && "sendrecv" !== e.direction ? "/" + e.direction : "") + " " + e.uri + "\r\n"
|
|
1717
|
+
},
|
|
1718
|
+
p.parseFmtp = function (e) {
|
|
1719
|
+
for (var t = {}, r = void 0, n = e.substr(e.indexOf(" ") + 1).split(";"), i = 0; i < n.length; i++)
|
|
1720
|
+
t[(r = n[i].trim().split("="))[0].trim()] = r[1];
|
|
1721
|
+
return t
|
|
1722
|
+
},
|
|
1723
|
+
p.writeFmtp = function (t) {
|
|
1724
|
+
var r,
|
|
1725
|
+
e = "",
|
|
1726
|
+
n = t.payloadType;
|
|
1727
|
+
return void 0 !== t.preferredPayloadType && (n = t.preferredPayloadType),
|
|
1728
|
+
t.parameters && Object.keys(t.parameters).length && (r = [], Object.keys(t.parameters).forEach(function (e) {
|
|
1729
|
+
void 0 !== t.parameters[e] ? r.push(e + "=" + t.parameters[e]) : r.push(e)
|
|
1730
|
+
}), e += "a=fmtp:" + n + " " + r.join(";") + "\r\n"),
|
|
1731
|
+
e
|
|
1732
|
+
},
|
|
1733
|
+
p.parseRtcpFb = function (e) {
|
|
1734
|
+
e = e.substr(e.indexOf(" ") + 1).split(" ");
|
|
1735
|
+
return {
|
|
1736
|
+
type: e.shift(),
|
|
1737
|
+
parameter: e.join(" ")
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
p.writeRtcpFb = function (e) {
|
|
1741
|
+
var t = "",
|
|
1742
|
+
r = e.payloadType;
|
|
1743
|
+
return void 0 !== e.preferredPayloadType && (r = e.preferredPayloadType),
|
|
1744
|
+
e.rtcpFeedback && e.rtcpFeedback.length && e.rtcpFeedback.forEach(function (e) {
|
|
1745
|
+
t += "a=rtcp-fb:" + r + " " + e.type + (e.parameter && e.parameter.length ? " " + e.parameter : "") + "\r\n"
|
|
1746
|
+
}),
|
|
1747
|
+
t
|
|
1748
|
+
},
|
|
1749
|
+
p.parseSsrcMedia = function (e) {
|
|
1750
|
+
var t = e.indexOf(" "),
|
|
1751
|
+
r = {
|
|
1752
|
+
ssrc: parseInt(e.substr(7, t - 7), 10)
|
|
1753
|
+
},
|
|
1754
|
+
n = e.indexOf(":", t);
|
|
1755
|
+
return -1 < n ? (r.attribute = e.substr(t + 1, n - t - 1), r.value = e.substr(n + 1)) : r.attribute = e.substr(t + 1),
|
|
1756
|
+
r
|
|
1757
|
+
},
|
|
1758
|
+
p.parseSsrcGroup = function (e) {
|
|
1759
|
+
e = e.substr(13).split(" ");
|
|
1760
|
+
return {
|
|
1761
|
+
semantics: e.shift(),
|
|
1762
|
+
ssrcs: e.map(function (e) {
|
|
1763
|
+
return parseInt(e, 10)
|
|
1764
|
+
})
|
|
1765
|
+
}
|
|
1766
|
+
},
|
|
1767
|
+
p.getMid = function (e) {
|
|
1768
|
+
e = p.matchPrefix(e, "a=mid:")[0];
|
|
1769
|
+
if (e)
|
|
1770
|
+
return e.substr(6)
|
|
1771
|
+
},
|
|
1772
|
+
p.parseFingerprint = function (e) {
|
|
1773
|
+
e = e.substr(14).split(" ");
|
|
1774
|
+
return {
|
|
1775
|
+
algorithm: e[0].toLowerCase(),
|
|
1776
|
+
value: e[1].toUpperCase()
|
|
1777
|
+
}
|
|
1778
|
+
},
|
|
1779
|
+
p.getDtlsParameters = function (e, t) {
|
|
1780
|
+
return {
|
|
1781
|
+
role: "auto",
|
|
1782
|
+
fingerprints: p.matchPrefix(e + t, "a=fingerprint:").map(p.parseFingerprint)
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
p.writeDtlsParameters = function (e, t) {
|
|
1786
|
+
var r = "a=setup:" + t + "\r\n";
|
|
1787
|
+
return e.fingerprints.forEach(function (e) {
|
|
1788
|
+
r += "a=fingerprint:" + e.algorithm + " " + e.value + "\r\n"
|
|
1789
|
+
}),
|
|
1790
|
+
r
|
|
1791
|
+
},
|
|
1792
|
+
p.parseCryptoLine = function (e) {
|
|
1793
|
+
e = e.substr(9).split(" ");
|
|
1794
|
+
return {
|
|
1795
|
+
tag: parseInt(e[0], 10),
|
|
1796
|
+
cryptoSuite: e[1],
|
|
1797
|
+
keyParams: e[2],
|
|
1798
|
+
sessionParams: e.slice(3)
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
p.writeCryptoLine = function (e) {
|
|
1802
|
+
return "a=crypto:" + e.tag + " " + e.cryptoSuite + " " + ("object" === n(e.keyParams) ? p.writeCryptoKeyParams(e.keyParams) : e.keyParams) + (e.sessionParams ? " " + e.sessionParams.join(" ") : "") + "\r\n"
|
|
1803
|
+
},
|
|
1804
|
+
p.parseCryptoKeyParams = function (e) {
|
|
1805
|
+
if (0 !== e.indexOf("inline:"))
|
|
1806
|
+
return null;
|
|
1807
|
+
e = e.substr(7).split("|");
|
|
1808
|
+
return {
|
|
1809
|
+
keyMethod: "inline",
|
|
1810
|
+
keySalt: e[0],
|
|
1811
|
+
lifeTime: e[1],
|
|
1812
|
+
mkiValue: e[2] ? e[2].split(":")[0] : void 0,
|
|
1813
|
+
mkiLength: e[2] ? e[2].split(":")[1] : void 0
|
|
1814
|
+
}
|
|
1815
|
+
},
|
|
1816
|
+
p.writeCryptoKeyParams = function (e) {
|
|
1817
|
+
return e.keyMethod + ":" + e.keySalt + (e.lifeTime ? "|" + e.lifeTime : "") + (e.mkiValue && e.mkiLength ? "|" + e.mkiValue + ":" + e.mkiLength : "")
|
|
1818
|
+
},
|
|
1819
|
+
p.getCryptoParameters = function (e, t) {
|
|
1820
|
+
return p.matchPrefix(e + t, "a=crypto:").map(p.parseCryptoLine)
|
|
1821
|
+
},
|
|
1822
|
+
p.getIceParameters = function (e, t) {
|
|
1823
|
+
var r = p.matchPrefix(e + t, "a=ice-ufrag:")[0],
|
|
1824
|
+
t = p.matchPrefix(e + t, "a=ice-pwd:")[0];
|
|
1825
|
+
return r && t ? {
|
|
1826
|
+
usernameFragment: r.substr(12),
|
|
1827
|
+
password: t.substr(10)
|
|
1828
|
+
}
|
|
1829
|
+
: null
|
|
1830
|
+
},
|
|
1831
|
+
p.writeIceParameters = function (e) {
|
|
1832
|
+
var t = "a=ice-ufrag:" + e.usernameFragment + "\r\na=ice-pwd:" + e.password + "\r\n";
|
|
1833
|
+
return e.iceLite && (t += "a=ice-lite\r\n"),
|
|
1834
|
+
t
|
|
1835
|
+
},
|
|
1836
|
+
p.parseRtpParameters = function (e) {
|
|
1837
|
+
for (var t = {
|
|
1838
|
+
codecs: [],
|
|
1839
|
+
headerExtensions: [],
|
|
1840
|
+
fecMechanisms: [],
|
|
1841
|
+
rtcp: []
|
|
1842
|
+
}, r = p.splitLines(e)[0].split(" "), n = 3; n < r.length; n++) {
|
|
1843
|
+
var i = r[n],
|
|
1844
|
+
o = p.matchPrefix(e, "a=rtpmap:" + i + " ")[0];
|
|
1845
|
+
if (o) {
|
|
1846
|
+
var a = p.parseRtpMap(o),
|
|
1847
|
+
o = p.matchPrefix(e, "a=fmtp:" + i + " ");
|
|
1848
|
+
switch (a.parameters = o.length ? p.parseFmtp(o[0]) : {}, a.rtcpFeedback = p.matchPrefix(e, "a=rtcp-fb:" + i + " ").map(p.parseRtcpFb), t.codecs.push(a), a.name.toUpperCase()) {
|
|
1849
|
+
case "RED":
|
|
1850
|
+
case "ULPFEC":
|
|
1851
|
+
t.fecMechanisms.push(a.name.toUpperCase())
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
return p.matchPrefix(e, "a=extmap:").forEach(function (e) {
|
|
1856
|
+
t.headerExtensions.push(p.parseExtmap(e))
|
|
1857
|
+
}),
|
|
1858
|
+
t
|
|
1859
|
+
},
|
|
1860
|
+
p.writeRtpDescription = function (e, t) {
|
|
1861
|
+
var r = "";
|
|
1862
|
+
r += "m=" + e + " ",
|
|
1863
|
+
r += 0 < t.codecs.length ? "9" : "0",
|
|
1864
|
+
r += " UDP/TLS/RTP/SAVPF ",
|
|
1865
|
+
r += t.codecs.map(function (e) {
|
|
1866
|
+
return void 0 !== e.preferredPayloadType ? e.preferredPayloadType : e.payloadType
|
|
1867
|
+
}).join(" ") + "\r\n",
|
|
1868
|
+
r += "c=IN IP4 0.0.0.0\r\n",
|
|
1869
|
+
r += "a=rtcp:9 IN IP4 0.0.0.0\r\n",
|
|
1870
|
+
t.codecs.forEach(function (e) {
|
|
1871
|
+
r += p.writeRtpMap(e),
|
|
1872
|
+
r += p.writeFmtp(e),
|
|
1873
|
+
r += p.writeRtcpFb(e)
|
|
1874
|
+
});
|
|
1875
|
+
var n = 0;
|
|
1876
|
+
return t.codecs.forEach(function (e) {
|
|
1877
|
+
e.maxptime > n && (n = e.maxptime)
|
|
1878
|
+
}),
|
|
1879
|
+
0 < n && (r += "a=maxptime:" + n + "\r\n"),
|
|
1880
|
+
t.headerExtensions && t.headerExtensions.forEach(function (e) {
|
|
1881
|
+
r += p.writeExtmap(e)
|
|
1882
|
+
}),
|
|
1883
|
+
r
|
|
1884
|
+
},
|
|
1885
|
+
p.parseRtpEncodingParameters = function (e) {
|
|
1886
|
+
var t = [],
|
|
1887
|
+
r = p.parseRtpParameters(e),
|
|
1888
|
+
n = -1 !== r.fecMechanisms.indexOf("RED"),
|
|
1889
|
+
i = -1 !== r.fecMechanisms.indexOf("ULPFEC"),
|
|
1890
|
+
o = p.matchPrefix(e, "a=ssrc:").map(function (e) {
|
|
1891
|
+
return p.parseSsrcMedia(e)
|
|
1892
|
+
}).filter(function (e) {
|
|
1893
|
+
return "cname" === e.attribute
|
|
1894
|
+
}),
|
|
1895
|
+
a = 0 < o.length && o[0].ssrc,
|
|
1896
|
+
s = void 0,
|
|
1897
|
+
o = p.matchPrefix(e, "a=ssrc-group:FID").map(function (e) {
|
|
1898
|
+
return e.substr(17).split(" ").map(function (e) {
|
|
1899
|
+
return parseInt(e, 10)
|
|
1900
|
+
})
|
|
1901
|
+
});
|
|
1902
|
+
0 < o.length && 1 < o[0].length && o[0][0] === a && (s = o[0][1]),
|
|
1903
|
+
r.codecs.forEach(function (e) {
|
|
1904
|
+
"RTX" === e.name.toUpperCase() && e.parameters.apt && (e = {
|
|
1905
|
+
ssrc: a,
|
|
1906
|
+
codecPayloadType: parseInt(e.parameters.apt, 10)
|
|
1907
|
+
}, a && s && (e.rtx = {
|
|
1908
|
+
ssrc: s
|
|
1909
|
+
}), t.push(e), n && ((e = JSON.parse(JSON.stringify(e))).fec = {
|
|
1910
|
+
ssrc: a,
|
|
1911
|
+
mechanism: i ? "red+ulpfec" : "red"
|
|
1912
|
+
}, t.push(e)))
|
|
1913
|
+
}),
|
|
1914
|
+
0 === t.length && a && t.push({
|
|
1915
|
+
ssrc: a
|
|
1916
|
+
});
|
|
1917
|
+
var c = p.matchPrefix(e, "b=");
|
|
1918
|
+
return c.length && (c = 0 === c[0].indexOf("b=TIAS:") ? parseInt(c[0].substr(7), 10) : 0 === c[0].indexOf("b=AS:") ? 1e3 * parseInt(c[0].substr(5), 10) * .95 - 16e3 : void 0, t.forEach(function (e) {
|
|
1919
|
+
e.maxBitrate = c
|
|
1920
|
+
})),
|
|
1921
|
+
t
|
|
1922
|
+
},
|
|
1923
|
+
p.parseRtcpParameters = function (e) {
|
|
1924
|
+
var t = {},
|
|
1925
|
+
r = p.matchPrefix(e, "a=ssrc:").map(function (e) {
|
|
1926
|
+
return p.parseSsrcMedia(e)
|
|
1927
|
+
}).filter(function (e) {
|
|
1928
|
+
return "cname" === e.attribute
|
|
1929
|
+
})[0];
|
|
1930
|
+
r && (t.cname = r.value, t.ssrc = r.ssrc);
|
|
1931
|
+
r = p.matchPrefix(e, "a=rtcp-rsize");
|
|
1932
|
+
t.reducedSize = 0 < r.length,
|
|
1933
|
+
t.compound = 0 === r.length;
|
|
1934
|
+
e = p.matchPrefix(e, "a=rtcp-mux");
|
|
1935
|
+
return t.mux = 0 < e.length,
|
|
1936
|
+
t
|
|
1937
|
+
},
|
|
1938
|
+
p.writeRtcpParameters = function (e) {
|
|
1939
|
+
var t = "";
|
|
1940
|
+
return e.reducedSize && (t += "a=rtcp-rsize\r\n"),
|
|
1941
|
+
e.mux && (t += "a=rtcp-mux\r\n"),
|
|
1942
|
+
void 0 !== e.ssrc && e.cname && (t += "a=ssrc:" + e.ssrc + " cname:" + e.cname + "\r\n"),
|
|
1943
|
+
t
|
|
1944
|
+
},
|
|
1945
|
+
p.parseMsid = function (e) {
|
|
1946
|
+
var t = void 0,
|
|
1947
|
+
r = p.matchPrefix(e, "a=msid:");
|
|
1948
|
+
if (1 === r.length)
|
|
1949
|
+
return {
|
|
1950
|
+
stream: (t = r[0].substr(7).split(" "))[0],
|
|
1951
|
+
track: t[1]
|
|
1952
|
+
};
|
|
1953
|
+
e = p.matchPrefix(e, "a=ssrc:").map(function (e) {
|
|
1954
|
+
return p.parseSsrcMedia(e)
|
|
1955
|
+
}).filter(function (e) {
|
|
1956
|
+
return "msid" === e.attribute
|
|
1957
|
+
});
|
|
1958
|
+
return 0 < e.length ? {
|
|
1959
|
+
stream: (t = e[0].value.split(" "))[0],
|
|
1960
|
+
track: t[1]
|
|
1961
|
+
}
|
|
1962
|
+
: void 0
|
|
1963
|
+
},
|
|
1964
|
+
p.parseSctpDescription = function (e) {
|
|
1965
|
+
var t = p.parseMLine(e),
|
|
1966
|
+
r = p.matchPrefix(e, "a=max-message-size:"),
|
|
1967
|
+
n = void 0;
|
|
1968
|
+
0 < r.length && (n = parseInt(r[0].substr(19), 10)),
|
|
1969
|
+
isNaN(n) && (n = 65536);
|
|
1970
|
+
r = p.matchPrefix(e, "a=sctp-port:");
|
|
1971
|
+
if (0 < r.length)
|
|
1972
|
+
return {
|
|
1973
|
+
port: parseInt(r[0].substr(12), 10),
|
|
1974
|
+
protocol: t.fmt,
|
|
1975
|
+
maxMessageSize: n
|
|
1976
|
+
};
|
|
1977
|
+
e = p.matchPrefix(e, "a=sctpmap:");
|
|
1978
|
+
if (0 < e.length) {
|
|
1979
|
+
e = e[0].substr(10).split(" ");
|
|
1980
|
+
return {
|
|
1981
|
+
port: parseInt(e[0], 10),
|
|
1982
|
+
protocol: e[1],
|
|
1983
|
+
maxMessageSize: n
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
p.writeSctpDescription = function (e, t) {
|
|
1988
|
+
var r = [],
|
|
1989
|
+
r = "DTLS/SCTP" !== e.protocol ? ["m=" + e.kind + " 9 " + e.protocol + " " + t.protocol + "\r\n", "c=IN IP4 0.0.0.0\r\n", "a=sctp-port:" + t.port + "\r\n"] : ["m=" + e.kind + " 9 " + e.protocol + " " + t.port + "\r\n", "c=IN IP4 0.0.0.0\r\n", "a=sctpmap:" + t.port + " " + t.protocol + " 65535\r\n"];
|
|
1990
|
+
return void 0 !== t.maxMessageSize && r.push("a=max-message-size:" + t.maxMessageSize + "\r\n"),
|
|
1991
|
+
r.join("")
|
|
1992
|
+
},
|
|
1993
|
+
p.generateSessionId = function () {
|
|
1994
|
+
return Math.random().toString().substr(2, 21)
|
|
1995
|
+
},
|
|
1996
|
+
p.writeSessionBoilerplate = function (e, t, r) {
|
|
1997
|
+
t = void 0 !== t ? t : 2;
|
|
1998
|
+
return "v=0\r\no=" + (r || "thisisadapterortc") + " " + (e || p.generateSessionId()) + " " + t + " IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"
|
|
1999
|
+
},
|
|
2000
|
+
p.getDirection = function (e, t) {
|
|
2001
|
+
for (var r = p.splitLines(e), n = 0; n < r.length; n++)
|
|
2002
|
+
switch (r[n]) {
|
|
2003
|
+
case "a=sendrecv":
|
|
2004
|
+
case "a=sendonly":
|
|
2005
|
+
case "a=recvonly":
|
|
2006
|
+
case "a=inactive":
|
|
2007
|
+
return r[n].substr(2)
|
|
2008
|
+
}
|
|
2009
|
+
return t ? p.getDirection(t) : "sendrecv"
|
|
2010
|
+
},
|
|
2011
|
+
p.getKind = function (e) {
|
|
2012
|
+
return p.splitLines(e)[0].split(" ")[0].substr(2)
|
|
2013
|
+
},
|
|
2014
|
+
p.isRejected = function (e) {
|
|
2015
|
+
return "0" === e.split(" ", 2)[1]
|
|
2016
|
+
},
|
|
2017
|
+
p.parseMLine = function (e) {
|
|
2018
|
+
e = p.splitLines(e)[0].substr(2).split(" ");
|
|
2019
|
+
return {
|
|
2020
|
+
kind: e[0],
|
|
2021
|
+
port: parseInt(e[1], 10),
|
|
2022
|
+
protocol: e[2],
|
|
2023
|
+
fmt: e.slice(3).join(" ")
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2026
|
+
p.parseOLine = function (e) {
|
|
2027
|
+
e = p.matchPrefix(e, "o=")[0].substr(2).split(" ");
|
|
2028
|
+
return {
|
|
2029
|
+
username: e[0],
|
|
2030
|
+
sessionId: e[1],
|
|
2031
|
+
sessionVersion: parseInt(e[2], 10),
|
|
2032
|
+
netType: e[3],
|
|
2033
|
+
addressType: e[4],
|
|
2034
|
+
address: e[5]
|
|
2035
|
+
}
|
|
2036
|
+
},
|
|
2037
|
+
p.isValidSDP = function (e) {
|
|
2038
|
+
if ("string" != typeof e || 0 === e.length)
|
|
2039
|
+
return !1;
|
|
2040
|
+
for (var t = p.splitLines(e), r = 0; r < t.length; r++)
|
|
2041
|
+
if (t[r].length < 2 || "=" !== t[r].charAt(1))
|
|
2042
|
+
return !1;
|
|
2043
|
+
return !0
|
|
2044
|
+
},
|
|
2045
|
+
"object" === (void 0 === t ? "undefined" : n(t)) && (t.exports = p)
|
|
2046
|
+
}, {}
|
|
2047
|
+
]
|
|
2048
|
+
}, {}, [1])(1)
|
|
2049
|
+
});
|