kurento-client-elements
Advanced tools
Comparing version 6.2.0 to 6.3.0
@@ -31,2 +31,3 @@ /* Autogenerated with Kurento Idl */ | ||
var SDES = require('./SDES'); | ||
var VideoInfo = require('./VideoInfo'); | ||
@@ -39,1 +40,2 @@ | ||
exports.SDES = SDES; | ||
exports.VideoInfo = VideoInfo; |
@@ -27,3 +27,3 @@ /* Autogenerated with Kurento Idl */ | ||
* | ||
* @type {(WEBM|MP4|WEBM_VIDEO_ONLY|WEBM_AUDIO_ONLY|MP4_VIDEO_ONLY|MP4_AUDIO_ONLY)} | ||
* @type {(WEBM|MP4|WEBM_VIDEO_ONLY|WEBM_AUDIO_ONLY|MP4_VIDEO_ONLY|MP4_AUDIO_ONLY|KURENTO_SPLIT_RECORDER)} | ||
*/ | ||
@@ -44,4 +44,4 @@ | ||
if(!value.match('WEBM|MP4|WEBM_VIDEO_ONLY|WEBM_AUDIO_ONLY|MP4_VIDEO_ONLY|MP4_AUDIO_ONLY')) | ||
throw SyntaxError(key+' param is not one of [WEBM|MP4|WEBM_VIDEO_ONLY|WEBM_AUDIO_ONLY|MP4_VIDEO_ONLY|MP4_AUDIO_ONLY] ('+value+')'); | ||
if(!value.match('WEBM|MP4|WEBM_VIDEO_ONLY|WEBM_AUDIO_ONLY|MP4_VIDEO_ONLY|MP4_AUDIO_ONLY|KURENTO_SPLIT_RECORDER')) | ||
throw SyntaxError(key+' param is not one of [WEBM|MP4|WEBM_VIDEO_ONLY|WEBM_AUDIO_ONLY|MP4_VIDEO_ONLY|MP4_AUDIO_ONLY|KURENTO_SPLIT_RECORDER] ('+value+')'); | ||
}; | ||
@@ -48,0 +48,0 @@ |
@@ -77,1 +77,13 @@ /* Autogenerated with Kurento Idl */ | ||
*/ | ||
/** | ||
* Emitted when encryption is used and any stream reached the soft key usage | ||
* limit and will expire soon. | ||
* | ||
* @event module:elements#OnKeySoftLimit | ||
* | ||
* @type {module:elements#event:Media} | ||
* | ||
* @property {external:MediaType} mediaType | ||
* The media stream | ||
*/ |
@@ -27,3 +27,3 @@ /* Autogenerated with Kurento Idl */ | ||
Object.defineProperty(exports, 'name', {value: 'elements'}); | ||
Object.defineProperty(exports, 'version', {value: '6.2.0'}); | ||
Object.defineProperty(exports, 'version', {value: '6.3.0'}); | ||
@@ -30,0 +30,0 @@ |
@@ -63,2 +63,89 @@ /* Autogenerated with Kurento Idl */ | ||
// | ||
// Public properties | ||
// | ||
/** | ||
* Get or set the actual position of the video in ms. Only for seekable videos | ||
* | ||
* @alias module:elements.PlayerEndpoint#getPosition | ||
* | ||
* @param {module:elements.PlayerEndpoint~getPositionCallback} [callback] | ||
* | ||
* @return {external:Promise} | ||
*/ | ||
PlayerEndpoint.prototype.getPosition = function(callback){ | ||
var transaction = (arguments[0] instanceof Transaction) | ||
? Array.prototype.shift.apply(arguments) | ||
: undefined; | ||
if(!arguments.length) callback = undefined; | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'getPosition', callback), this) | ||
}; | ||
/** | ||
* @callback module:elements.PlayerEndpoint~getPositionCallback | ||
* @param {external:Error} error | ||
* @param {external:int64} result | ||
*/ | ||
/** | ||
* Get or set the actual position of the video in ms. Only for seekable videos | ||
* | ||
* @alias module:elements.PlayerEndpoint#setPosition | ||
* | ||
* @param {external:int64} position | ||
* @param {module:elements.PlayerEndpoint~setPositionCallback} [callback] | ||
* | ||
* @return {external:Promise} | ||
*/ | ||
PlayerEndpoint.prototype.setPosition = function(position, callback){ | ||
var transaction = (arguments[0] instanceof Transaction) | ||
? Array.prototype.shift.apply(arguments) | ||
: undefined; | ||
checkType('int64', 'position', position, {required: true}); | ||
var params = { | ||
position: position | ||
}; | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'setPosition', params, callback), this) | ||
}; | ||
/** | ||
* @callback module:elements.PlayerEndpoint~setPositionCallback | ||
* @param {external:Error} error | ||
*/ | ||
/** | ||
* Returns info about the playing file | ||
* | ||
* @alias module:elements.PlayerEndpoint#getVideoInfo | ||
* | ||
* @param {module:elements.PlayerEndpoint~getVideoInfoCallback} [callback] | ||
* | ||
* @return {external:Promise} | ||
*/ | ||
PlayerEndpoint.prototype.getVideoInfo = function(callback){ | ||
var transaction = (arguments[0] instanceof Transaction) | ||
? Array.prototype.shift.apply(arguments) | ||
: undefined; | ||
if(!arguments.length) callback = undefined; | ||
callback = (callback || noop).bind(this) | ||
return disguise(this._invoke(transaction, 'getVideoInfo', callback), this) | ||
}; | ||
/** | ||
* @callback module:elements.PlayerEndpoint~getVideoInfoCallback | ||
* @param {external:Error} error | ||
* @param {module:elements/complexTypes.VideoInfo} result | ||
*/ | ||
// | ||
// Public methods | ||
@@ -65,0 +152,0 @@ // |
@@ -40,2 +40,4 @@ /* Autogenerated with Kurento Idl */ | ||
* @constructor module:elements.RtpEndpoint | ||
* | ||
* @fires {@link module:elements#event:OnKeySoftLimit OnKeySoftLimit} | ||
*/ | ||
@@ -57,2 +59,5 @@ function RtpEndpoint(){ | ||
* belongs | ||
* | ||
* @property {external:Boolean} [useIpv6] | ||
* Use IPv6 instead of IPv4 | ||
*/ | ||
@@ -65,3 +70,5 @@ RtpEndpoint.constructorParams = { | ||
required: true | ||
} | ||
}, | ||
useIpv6: { | ||
type: 'boolean' } | ||
}; | ||
@@ -74,3 +81,3 @@ | ||
*/ | ||
RtpEndpoint.events = BaseRtpEndpoint.events; | ||
RtpEndpoint.events = BaseRtpEndpoint.events.concat(['OnKeySoftLimit']); | ||
@@ -77,0 +84,0 @@ |
{ | ||
"name": "kurento-client-elements", | ||
"version": "6.2.0", | ||
"version": "6.3.0", | ||
"description": "Elements implementations for kurento media server", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
{ | ||
"name": "elements", | ||
"version": "6.2.0", | ||
"version": "6.3.0", | ||
"kurentoVersion": "^6.1.0", | ||
@@ -18,3 +18,3 @@ "imports": [ | ||
"mavenArtifactId": "kms-api-elements", | ||
"mavenVersion": "6.2.0" | ||
"mavenVersion": "6.3.0" | ||
} | ||
@@ -27,3 +27,3 @@ }, | ||
"mavenArtifactId": "kurento-client", | ||
"mavenVersion": "6.2.0" | ||
"mavenVersion": "6.3.0" | ||
}, | ||
@@ -34,3 +34,3 @@ "js": { | ||
"npmGit": "Kurento/kurento-client-elements-js", | ||
"npmVersion": "6.2.0" | ||
"npmVersion": "6.3.0" | ||
} | ||
@@ -327,2 +327,15 @@ }, | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "videoInfo", | ||
"doc": "Returns info about the playing file", | ||
"type": "VideoInfo", | ||
"readOnly": true | ||
}, | ||
{ | ||
"name": "position", | ||
"doc": "Get or set the actual position of the video in ms. Only for seekable videos", | ||
"type": "int64" | ||
} | ||
], | ||
"methods": [ | ||
@@ -425,6 +438,16 @@ { | ||
"defaultValue": {} | ||
}, | ||
{ | ||
"name": "useIpv6", | ||
"doc": "Use IPv6 instead of IPv4", | ||
"type": "boolean", | ||
"optional": true, | ||
"defaultValue": false | ||
} | ||
], | ||
"doc": "Builder for the :rom:cls:`RtpEndpoint`" | ||
} | ||
}, | ||
"events": [ | ||
"OnKeySoftLimit" | ||
] | ||
}, | ||
@@ -558,2 +581,29 @@ { | ||
{ | ||
"typeFormat": "REGISTER", | ||
"properties": [ | ||
{ | ||
"name": "isSeekable", | ||
"doc": "Seek is possible in video source", | ||
"type": "boolean" | ||
}, | ||
{ | ||
"name": "seekableInit", | ||
"doc": "First video position to do seek in ms", | ||
"type": "int64" | ||
}, | ||
{ | ||
"name": "seekableEnd", | ||
"doc": "Last video position to do seek in ms", | ||
"type": "int64" | ||
}, | ||
{ | ||
"name": "duration", | ||
"doc": "Video duration in ms", | ||
"type": "int64" | ||
} | ||
], | ||
"name": "VideoInfo", | ||
"doc": "" | ||
}, | ||
{ | ||
"typeFormat": "ENUM", | ||
@@ -566,3 +616,4 @@ "values": [ | ||
"MP4_VIDEO_ONLY", | ||
"MP4_AUDIO_ONLY" | ||
"MP4_AUDIO_ONLY", | ||
"KURENTO_SPLIT_RECORDER" | ||
], | ||
@@ -669,2 +720,14 @@ "name": "MediaProfileSpecType", | ||
{ | ||
"properties": [ | ||
{ | ||
"name": "mediaType", | ||
"doc": "The media stream", | ||
"type": "MediaType" | ||
} | ||
], | ||
"extends": "Media", | ||
"name": "OnKeySoftLimit", | ||
"doc": "Emitted when encryption is used and any stream reached the soft key usage limit and will expire soon." | ||
}, | ||
{ | ||
"properties": [], | ||
@@ -671,0 +734,0 @@ "extends": "Media", |
132262
28
2917