Hi there!
I’m trying to embed a twitch player into my mobile app - but the parent is in the way.
Whenever I try to embed an Interactive Frame, I get the NoParent error. I’m using a web viewer and load the following HTML:
<!DOCTYPE html>
<html>
<head>
<script src="https://player.twitch.tv/js/embed/v1.js"></script>
<title>Twitch Embed Testing</title>
</head>
<body>
<div id="player"></div>
<script type="text/javascript">
var options = {
width: 854,
height: 480,
channel: "thqllium["],
parent: ["localhost"]
};
var player = new Twitch.Player("player", options);
player.setVolume(0.5);
</script>
</body>
</html>
I’ve not only tried “localhost” as a parent, but the data:// URI and 127.0.0.1, but nothing has worked yet.
Does anyone have a solution for this?
Thanks in advance!