Embedding KA Programs
Why am I making this post?
I am making this post to improve the reliability of a collab that me @ojpstudios and Aqil @alifaqil is making. He made a program called KhanTube and we both decided to make an HTML version for more features and better updates. But, sadly, when we try to embed Aqil's video player through iframe (using your script) it doesn't work. I am pretty sure you are allowed to embed KA programs into your site. I know a hack for iframe but I don't want to get in trouble. xD
Anyway, this isn't just for me but so many other people. For example: Darryl-Yeo's website is a showcase of his projects and contains his blog. His projects used to look really good when the old editor was there but after new updates came, when embedded, ugly scrollbars appear and the project is half cut off.
What is needed to be fixed?
- Fix the margins of the canvas
- Hide the overflow (scrollbars basically)
- Make the canvas have responsive design, make it scalable based on the size of the frame.
More Questions
1. I tried to add the video player through the <canvas> tag but the dragging of the progress bar doesn't work. Later I found that it is a built in function by you guys. It would be nice if you can tell me how to add it or have a script to add those extra stuff you added to KA. Another example is that arcs doesn't seem to work. When I embedded Legolas Greenleaf's masterpiece lakeside cottage through canvas, it didn't come through right. The arcs are in the PJS docs, but his project's arcs doesn't work.
2. Are we allowed to use DOM to create an iframe with a KA site and append it to a div? :P
Conclusion
Thank you, hopefully this can be fixed!
Please sign in to leave a comment.