Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var internalIp = require('internal-ip').v4;
var ip = internalIp.sync();
if(ip) console.log(ip);
function initChromecast()
{
var mimeType = 'video/*';
var trackIds = null;
var mediaTracks = null;
var ip = internalIp.sync();
var port = bridge.config.listeningPort;
var sessionID = makeID();
initType = 'BUFFERED';
switch(bridge.selection.streamType)
{
case 'VIDEO':
break;
case 'MUSIC':
if(bridge.config.musicVisualizer) initType = 'LIVE';
else mimeType = 'audio/*';
break;
case 'PICTURE':
mimeType = 'image/*';
break;