@krx3d/tizentube2 1.15.950 → 1.15.960
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/dist/service.js +2 -2
- package/dist/userScript.js +1 -1
- package/package.json +1 -1
package/dist/service.js
CHANGED
|
@@ -9177,8 +9177,8 @@ var URL = require$$8;
|
|
|
9177
9177
|
var xml2js = xml2js$1;
|
|
9178
9178
|
var cors$1 = libExports$1;
|
|
9179
9179
|
var gate = gate$1;
|
|
9180
|
-
var DEVICE_DESC_TEMPLATE =
|
|
9181
|
-
var APP_DESC_TEMPLATE =
|
|
9180
|
+
var DEVICE_DESC_TEMPLATE = "<?xml version=\"1.0\"?>\n<root xmlns=\"urn:schemas-upnp-org:device-1-0\">\n <specVersion>\n <major>1</major>\n <minor>0</minor>\n </specVersion>\n <URLBase><%=URLBase%></URLBase>\n <device>\n <deviceType>urn:dial-multiscreen-org:device:dial:1</deviceType>\n <friendlyName><%=friendlyName%></friendlyName>\n <manufacturer><%=manufacturer%></manufacturer>\n <modelName><%=modelName%></modelName>\n <UDN>uuid:<%=uuid%></UDN>\n <iconList>\n <icon>\n <mimetype>image/png</mimetype>\n <width>144</width>\n <height>144</height>\n <depth>32</depth>\n <url>/img/icon.png</url>\n </icon>\n </iconList>\n <serviceList>\n <service>\n <serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType>\n <serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId>\n <controlURL>/ssdp/notfound</controlURL>\n <eventSubURL>/ssdp/notfound</eventSubURL>\n <SCPDURL>/ssdp/notfound</SCPDURL>\n </service>\n </serviceList>\n </device>\n</root>\n";
|
|
9181
|
+
var APP_DESC_TEMPLATE = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<%\nvar ns = \"\";\nfor(var i in namespaces){\n ns = ns + ' xmlns:'+i+'=\"'+namespaces[i]+'\"';\n}\n%>\n<service xmlns=\"urn:dial-multiscreen-org:schemas:dial\" <%-ns%> dialVer=\"1.7\">\n <name><%=name%></name>\n <options allowStop=\"<%=allowStop%>\"/>\n <state><%=state%></state>\n <% if(typeof rel != \"undefined\" && typeof href != \"undefined\" && href){ %>\n <link rel=\"<%=rel%>\" href=\"<%=href%>\" />\n <% } %>\n <% if(typeof additionalData != \"undefined\"){ %>\n <additionalData>\n <% for(var i in additionalData){ %>\n <<%=i%>><%=additionalData[i]%></<%=i%>>\n <% } %>\n </additionalData>\n <% } %>\n</service>\n";
|
|
9182
9182
|
var DEVICE_DESC_RENDERER = ejs.compile(DEVICE_DESC_TEMPLATE);
|
|
9183
9183
|
var APP_DESC_RENDERER = ejs.compile(APP_DESC_TEMPLATE);
|
|
9184
9184
|
var SERVER = os.type() + "/" + os.release() + " UPnP/1.1 famium/0.0.1";
|