
jwplayer 7.7 offline
how can i use jwplayer 7.7 without internet connection as i will be playing offline videos
how can i use jwplayer 7.7 without internet connection as i will be playing offline videos
I just tested this in JW Player 7.8.7 and it worked. You need to define the base: ’’ parameter as defined at https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/ to prevent the player from trying to load cloud-hosted dependencies. Please note that some player dependencies require cloud-hosting, like ads and sharing, so these functions will not work without an internet connection.
Here’s the code I used. I launched MAMP on my Mac, disconnected the wi-fi, and opened this HTML page in Chrome:
<html> <head> <script src="jwplayer-7.8.7/jwplayer.js"></script> <script type="text/javascript">jwplayer.key="paste_your_self-hosted_key_here"; </script> </head> <body> <div id="myElement">Loading the player ...</div><br> <script type="text/javascript">
jwplayer("myElement").setup({ base: 'jwplayer-7.8.7/', file: "bunny.mp4", });
</script> </body> </html>