In an effort to replicate the functionality I achieved in Angular here, I am now attempting to do so within Vue.JS (2.6+).
My goal is to utilize the Twitch API for embedding a Stream, which currently only offers usage through inline HTML:
<script src= "https://player.twitch.tv/js/embed/v1.js"></script>
<div id="<player div ID>"></div>
<script type="text/javascript">
var options = {
width: <width>,
height: <height>,
channel: "<channel ID>",
video: "<video ID>",
collection: "<collection ID>",
};
var player = new Twitch.Player("<player div ID>", options);
player.setVolume(0.5);
</script>
Similar to Angular, the use of Script tags within Vue Components is not permitted.
Therefore, I am curious about the most effective approach in Vue for incorporating this Twitch Embed into my application. (I am open to incorporating it either within the JS or HTML of the component)