Search completed in 1.21 seconds.
17 results for "setparameter":
Your results are loading. Please wait...
RTCRtpSender.setParameters() - Web APIs
The setParameters() method of the RTCRtpSender interface applies changes the configuration of sender's track, which is the MediaStreamTrack for which the RTCRtpSender is responsible. In other words, setParameters() updates the configuration of the RTP transmission as well as the encoding configuration for a specific media track on the WebRTC connection. Syntax var promise = rtcRtpSender.setParameters(parameters) Parameters parameters An object conforming with the RTCRtpSendParameters dictionary, specifying options for the RTCRtpSender; these include potential codecs that could be use for encoding the sender's track. The available options are: degradationPreference Specifies the preferred way the WebRTC layer should handle optimizing bandwidth against quality in constrained-bandwidth ...
...ings An array of RTCRtpEncodingParameters objects, each specifying the parameters for a single codec that could be used to encode the track's media. priority A string from the RTCPriorityType enumerated type which indicates the encoding's priority. The default value is low. transactionId A string containing a unique ID for the last set of parameters applied; this value is used to ensure that setParameters() can only be called to alter changes made by a specific previous call to getParameters(). Return value A Promise that resolves when the RTCRtpSender.track property is updated with the given parameters. Exceptions If an error occurs, the returned promise is rejected with the appropriate exception from the list below. InvalidModificationError One of the following problems was detected...
...allowed; or one or more of the specified encodings' maxFramerate values is less than 0.0. In addition, if a WebRTC error occurs while configuring or accessing the media, an RTCError is thrown with its errorDetail set to hardware-encoder-error. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCRtpSender.setParameters()' in that specification. Candidate Recommendation Initial definition. ...
nsIXSLTProcessor
This will make the processor use the default-value for all parameters as specified in th...
...t(in nsIDOMNode source); nsIDOMDocumentFragment transformToFragment(in nsIDOMNode source, in nsIDOMDocument output); Methods clearParameters() Removes all set parameters from this nsIXSLTProcessor. This will make the processor use the default-value for all parameters as specified in the stylesheet. void clearParameters(); Parameters None. getParameter() Gets a parameter if previously set by setParameter(). Returns null otherwise. nsIVariant getParameter( in DOMString namespaceURI, in DOMString localName ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. Return value An nsIVariant containing the value of the parameter. importStylesheet() Imports the specified stylesheet into this XSLTProcessor for transformations. void importS...
...his will make the processor use the default-value for the parameter as specified in the stylesheet. void removeParameter( in DOMString namespaceURI, in DOMString localName ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. reset() Remove all parameters and stylesheets from this nsIXSLTProcessor. void reset(); Parameters None. setParameter() Sets a parameter to be used in subsequent transformations with this nsIXSLTProcessor. If the parameter doesn't exist in the stylesheet the parameter will be ignored. void setParameter( in DOMString namespaceURI, in DOMString localName, in nsIVariant value ); Parameters namespaceURI The namespaceURI of the XSLT parameter. localName The local name of the XSLT parameter. value The new valu...
Setting Parameters - XSLT: Extensible Stylesheet Language Transformations
he .xsl file from JavaScript may be even more useful. For example, JavaScript and XSLT could be used to sort XML data and then display it. The sorting would have to alternate between ascending and descending sorting. XSLT provides the xsl:param element, which is a child of the xsl:stylesheet element. XSLTProcessor provides three JavaScript methods to interact with these parameters: XSLTProcessor.setParameter(), XSLTProcessor.getParameter() and XSLTProcessor.removeParameter(). They all take as the first argument the namespace URI of the xsl:param (Usually the param will fall in the default namespace, so passing in null will suffice.) The local name of the xsl:param is the second argument. setParameter requires a third argument - namely the value to which the parameter will be set. Figure 7 : Paramete...
...amespace, so passing in null will suffice.) The local name of the xsl:param is the second argument. setParameter requires a third argument - namely the value to which the parameter will be set. ...
... xsl:param is the second argument. setParameter requires a third argument - namely the value to which the parameter will be set. ...
Index - Web APIs
Web › API › Index
ns the MediaStreamTrack associated with the current RTCRtpReceiver instance. 3492 RTCRtpSendParameters API, Audio, Codec, Dictionary, Encoding, Media, RTCRtpSendParameters, RTCRtpSender, RTP, Reference, Settings, Video, WebRTC, WebRTC API, parameters, sender The WebRTC API's RTCRtpSendParameters dictionary is used to specify the parameters for an RTCRtpSender when calling its setParameters() method. 3493 RTCRtpSendParameters.encodings API, Codec, Configuration, Media, RTCRtpSendParameters, RTCRtpSender, RTP, Reference, Settings, WebRTC, WebRTC API, encodings, parameters, rtc, sender The RTCRtpSendParameters dictionary's encodings property is an RTCRtpEncodingParameters object providing configuration settings for the encoder being used for the RTCRtpSender's tr...
...ender, returning a Promise which is fulfilled when the results are available. 3498 RTCRtpSender.replaceTrack() Audio, Media, Method, RTCRtpSender, RTP, Reference, Video, WebRTC, WebRTC API, replace, replaceTrack, track The RTCRtpSender method replaceTrack() replaces the track currently being used as the sender's source with a new MediaStreamTrack. 3499 RTCRtpSender.setParameters() API, Audio, Codec, Encoding, Method, RTCRtpSender, Reference, Video, WebRTC, WebRTC API, parameters, sender, setParameters The setParameters() method of the RTCRtpSender interface applies changes the configuration of sender's track, which is the MediaStreamTrack for which the RTCRtpSender is responsible. 3500 RTCRtpSender.track API, Audio, DTMF, Property, RTCRtpSender,...
RTCRtpSendParameters - Web APIs
Properties In addition to the properties below, RTCRtpSendParameters inherits the properties from the RTCRtpParameters interface. degradationPreference Specifies the preferred way the WebRTC layer should handle optimizing bandwidth against quality in constrained-bandwidth situations; the value comes from the RTCDegradationPreference enumerated string type, and the default is balanced. ...
...ings An array of RTCRtpEncodingParameters objects, each specifying the parameters for a single codec that could be used to encode the track's media. priority A string from the RTCPriorityType enumerated type which indicates the encoding's priority. The default value is low. transactionId A string containing a unique ID for the last set of parameters applied; this value is used to ensure that setParameters() can only be called to alter changes made by a specific previous call to getParameters(). Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCRtpSendParameters' in that specification. Candidate Recommendation Initial definition. ...
Advanced Example - XSLT: Extensible Stylesheet Language Transformations
only on the first sort and sets the xslloaded variable to true once it has finished loading the file. Using the XSLTProcessor.getParameter() method, the code can figure whether to sort in ascending or descending order. It defaults to ascending if the parameter is empty (the first time the sorting happens, as there is no value for it in the XSLT file). The sorting value is set using XSLTProcessor.setParameter(). The XSLT file has a parameter called myOrder that JavaScript sets to change the sorting method. The xsl:sort element's order attribute can access the value of the parameter using $myOrder. However, the value needs to be an XPATH expression and not a string, so {$myOrder} is used. Using {} evaluates the content as an XPath expression. Once the transformation is complete, the result is appende...
...ant to process via XSLT - true makes it do a deep clone var myNode = document.getElementById("example"); var clonedNode = xmlRef.importNode(myNode, true); // after cloning, we append xmlRef.appendChild(clonedNode); // set the sorting parameter in the XSL file var sortVal = xsltProcessor.getParameter(null, "myOrder"); if (sortVal == "" || sortVal == "descending") xsltProcessor.setParameter(null, "myOrder", "ascending"); else xsltProcessor.setParameter(null, "myOrder", "descending"); // initiate the transformation var fragment = xsltProcessor.transformToFragment(xmlRef, document); // clear the contents document.getElementById("example").innerHTML = ""; myDOM = fragment; // add the new content from the transformation document.getElementById("example").appendChi...
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
et imported using the importStylesheet method and generates a DocumentFragment. owner specifies what DOM document the DocumentFragment should belong to, making it appendable to that DOM document. Document transformToDocument(Node source) Transforms the Node source by applying the stylesheet imported using the importStylesheet method and returns a standalone DOM document. void setParameter(String namespaceURI, String localName, Variant value) Sets a parameter in the imported XSLT stylesheet. Variant getParameter(String namespaceURI, String localName) Gets the value of a parameter in the imported XSLT stylesheet. void removeParameter(String namespaceURI, String localName) Removes all set parameters from the imported XSLT stylesheet and makes them default t...
ConstantSourceNode.offset - Web APIs
tSourceNode interface returns a AudioParam object indicating the numeric a-rate value which is always returned by the source when asked for the next sample. While the AudioParam named offset is read-only, the value property within is not. So you can change the value of offset by setting the value of ConstantSourceNode.offset.value: myConstantSourceNode.offset.value = newValue; Syntax let offsetParameter = ConstantAudioNode.offset; let offset = ConstantSourceNode.offset.value; ConstantSourceNode.offset.value = newValue; Value An AudioParam object indicating the a-rate value returned for every sample by this node. The default value is 1.0. To access the offset parameter's current value, access the parameter's value property, as shown in the syntax box above. Example This example shows how to...
DOMConfiguration - Web APIs
alization", "comments", "datatype-normalization", "element-content-whitespace", "entities", "error-handler", "infoset", "namespaces", "namespace-declarations", "normalize-characters","schema-location", "schema-type", "split-cdata-sections", "validate", "validate-if-schema", "well-formed" Properties DOMConfiguration.parameterNames Read only Is a DOMStringList Methods DOMConfiguration.canSetParameter() Returns a Boolean DOMConfiguration.getParameter() Returns a DOMUserData DOMConfiguration.setParameter() Sets a parameter Specification http://www.w3.org/TR/DOM-Level-3-Cor...MConfiguration ...
RTCRtpEncodingParameters.scaleResolutionDownBy - Web APIs
ize of the video by a factor of 2 both horizontally and vertically, resulting in a video 25% the original size. A value less than 1.0 would cause the video to get larger rather than smaller, which is not the intent of this property. Therefore, specifying a value less than 1.0 is not permitted and will cause a RangeError exception to be thrown by RTCPeerConnection.addTransceiver() or RTCRtpSender.setParameters(). Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCRtpEncodingParameters.scaleResolutionDownBy' in that specification. Candidate Recommendation Initial definition. ...
RTCRtpEncodingParameters - Web APIs
ding. ptime An unsigned long integer value indicating the preferred duration of a media packet in milliseconds. This is typically only relevant for audio encodings. The user agent will try to match this as well as it can, but there is no guarantee. rid A DOMString which, if set, specifies an RTP stream ID (RID) to be sent using the RID header extension. This parameter cannot be modified using setParameters(). Its value can only be set when the transceiver is first created. scaleResolutionDownBy Only used for senders whose track's kind is video, this is a double-precision floating-point value specifying a factor by which to scale down the video during encoding. The default value, 1.0, means that the sent video's size will be the same as the original. A value of 2.0 scales the video frames down by...
RTCRtpSendParameters.encodings - Web APIs
ding. ptime An unsigned long integer value indicating the preferred duration of a media packet in milliseconds. This is typically only relevant for audio encodings. The user agent will try to match this as well as it can, but there is no guarantee. rid A DOMString which, if set, specifies an RTP stream ID (RID) to be sent using the RID header extension. This parameter cannot be modified using setParameters(). Its value can only be set when the transceiver is first created. scaleResolutionDownBy Only used for senders whose track's kind is video, this is a double-precision floating-point value specifying a factor by which to scale down the video during encoding. The default value, 1.0, means that the sent video's size will be the same as the original. A value of 2.0 scales the video frames down by...
RTCRtpSender.getParameters() - Web APIs
r the encoding and transmission of media on the sender's track. Syntax var rtpSendParameters = rtpSender.getParameters() Parameters None. Return value An RTCRtpSendParameters object indicating the current configuration of the sender. Examples This example gets the sender's current transaction ID; the transaction ID uniquely identifies the current set of parameters, to ensure that calls to setParameters() are always handled in the correct order, avoiding inadvertently overwriting parameters with older parameters. function getSenderTransactionID(sender) { let parameters = sender.getParameters(); return parameters.transactionId; } Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'getParameters()' in t...
RTCRtpSender - Web APIs
Use the transport property instead. Methods RTCRtpSender.getParameters() Returns a RTCRtpParameters object describing the current configuration for the encoding and transmission of media on the track. RTCRtpSender.getStats() Returns a Promise which is fulfilled with a RTCStatsReport which provides statistics data for all outbound streams being sent using this RTCRtpSender. RTCRtpSender.setParameters() Applies changes to parameters which configure how the track is encoded and transmitted to the remote peer. RTCRtpSender.setStreams() Sets the MediaStream(s) associated with the track being transmitted by this sender. RTCRtpSender.replaceTrack() Attempts to replace the track currently being sent by the RTCRtpSender with another track, without performing renegotiation. This method can be us...
XSLTProcessor - Web APIs
en importing using the XSLTProcessor.importStylesheet() function. The resultant object depends on the output method of the stylesheet: Output method Result type html HTMLDocument xml XMLDocument text XMLDocument with a single root element <transformiix:result> with the text as a child [Throws] void XSLTProcessor.setParameter(String namespaceURI, String localName, any value) Sets a parameter in the XSLT stylesheet that was imported. (Sets the value of an <xsl:param>.) A null value for namespaceURI is treated the same as an empty string. [Throws] any XSLTProcessor.getParameter(String namespaceURI, String localName) Gets the value of a parameter from the XSLT stylesheet. A null value for namespaceURI is treated the s...
Index - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Index
only on the first sort and sets the xslloaded variable to true once it has finished loading the file. Using the XSLTProcessor.getParameter() method, the code can figure whether to sort in ascending or descending order. It defaults to ascending if the parameter is empty (the first time the sorting happens, as there is no value for it in the XSLT file). The sorting value is set using XSLTProcessor.setParameter(). 7 Basic Example XSLT The basic example will load an XML file and apply a XSL transformation on it. These are the same files used in the Generating HTML example in the XSLT in Netscape Gecko article. The XML file describes an article and the XSL file formats the information for display. 8 Interface List NeedsContent, Reference See XSLTProcessor in the W...
Using the Mozilla JavaScript interface to XSL Transformations - XSLT: Extensible Stylesheet Language Transformations
you use lower case node-names in patterns and expressions, and treat the nodes as if they are in the null namespace, however this is not very well tested so it might not work in all situations. It is also possible that this will change in a future release. Transforming XHTML should work as expected though. Setting parameters You can control parameters for the stylesheet using the XSLTProcessor.setParameter(), XSLTProcessor.getParameter(), and XSLTProcessor.removeParameter() methods. These all take a namespace URI and a local name as the first two parameters, with XSLTProcessor.setParameter() taking a third - the value of the parameter to be set. See The XSLT/JavaScript Interface in Gecko for an example. Resetting The XSLTProcessor object also implements a XSLTProcessor.reset() method, which can b...