Skip to content

Commit 928bfd6

Browse files
author
Jeremy White
committed
Added support for playing media
1 parent 197922a commit 928bfd6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/connectsdk.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,22 @@ var connectsdk = (function () {
570570
}
571571
}
572572
});
573+
} else if (commandType === 'playMedia')
574+
{
575+
// todo: need to handle all of these params
576+
mediaElement.src = message.payload.mediaCommand.mediaURL;
577+
578+
this._send({
579+
type: 'p2p',
580+
to: from,
581+
payload: {
582+
contentType: 'connectsdk.mediaCommandResponse',
583+
mediaCommandResponse: {
584+
type: commandType,
585+
requestId:requestId
586+
}
587+
}
588+
});
573589
}
574590
} else
575591
{

0 commit comments

Comments
 (0)