- Why is it so complicated to include an external JS into ionic 2 page.
- I don’t find any node packages suitable for JW PLAYER, Daily motion that is suitable for IONIC 2.
- Can someone guide me on how to achieve the below on an IONIC page
SOURCE # 1
<html >
<body style="margin:0"><script src="https://api.dmcdn.net/all.js"></script>
<div id="player"></div>
<script>
var player = DM.player(document.getElementById("player"), {
video: "xwr14q",
width: "100%",
height: "100%",
params: {
autoplay: true,
mute: true
}
});
</script>
</body>
</html>
SOURCE # 2
- Will the above snippet work on a component page (i.e) .html of IONIC 2
- {{Videoid}} is derived via ajax and assigned in the .TS file.