boda_jsEnv/env_xbb_lastest_bo/env/RTCSessionDescription.js
xuxiaobo-bobo 24cbc7a3fa '0711'
2023-07-11 15:19:33 +08:00

44 lines
1.6 KiB
JavaScript

// RTCSessionDescription对象
RTCSessionDescription = function RTCSessionDescription() {
bodavm.toolsFunc.symbolProperty(this);
if (arg != 'bobo') {
console.log_copy('RTCSessionDescription 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
if (v == window) {
return 'window';
} else {
return v;
}
}));
}
;
};
bodavm.toolsFunc.safeProto(RTCSessionDescription, "RTCSessionDescription");
bodavm.toolsFunc.defineProperty(RTCSessionDescription.prototype, "type", {
configurable: true,
enumerable: true,
get: function type() {
return bodavm.toolsFunc.dispatch(this, RTCSessionDescription.prototype, "RTCSessionDescription", "type_get", arguments);
},
set: function type() {
return bodavm.toolsFunc.dispatch(this, RTCSessionDescription.prototype, "RTCSessionDescription", "type_set", arguments);
}
});
bodavm.toolsFunc.defineProperty(RTCSessionDescription.prototype, "sdp", {
configurable: true,
enumerable: true,
get: function sdp() {
return bodavm.toolsFunc.dispatch(this, RTCSessionDescription.prototype, "RTCSessionDescription", "sdp_get", arguments);
},
set: function sdp() {
return bodavm.toolsFunc.dispatch(this, RTCSessionDescription.prototype, "RTCSessionDescription", "sdp_set", arguments);
}
});
bodavm.toolsFunc.defineProperty(RTCSessionDescription.prototype, "toJSON", {
configurable: true,
enumerable: true,
writable: true,
value: function toJSON() {
return bodavm.toolsFunc.dispatch(this, RTCSessionDescription.prototype, "RTCSessionDescription", "toJSON", arguments);
}
});