Skip to content

movielala/video-player-js-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Video Player JavaScript API

JavaScript API for MovieLaLa Video Player

For YouTube IFrame API Users

We have a drop in replacement for users who already have an existing YouTube IFrame API implementation. All you have to do is replace the URL of IFrame API.

Find your original YouTube IFrame API loading code:

<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
</script>

Replace the original URL with ours:

<script>
var tag = document.createElement('script');
tag.src = "https://assets-embed.movielala.com/iframe_api"; //Changed
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
</script>

Viewing Your Website with MovieLaLa Video Player

If you want to see what your page will look like after you make the change above, you can install Tempermonkey and the following script on your Chrome to preview changes:

About

JavaScript API for MovieLaLa Video Player

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published