Skip to content

Commit

Permalink
chore: fix examples (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
incompl authored Sep 10, 2018
1 parent 246f840 commit fc5bf22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions examples/basic-ad-plugin/cue-text-tracks-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<meta charset="utf-8">
<title>Example Ad Plugin</title>
<!-- Load local video.js -->
<link rel="stylesheet" href="../node_modules/video.js/dist/video-js.css">
<script src="../node_modules/video.js/dist/video.js"></script>
<link rel="stylesheet" href="../../node_modules/video.js/dist/video-js.css">
<script src="../../node_modules/video.js/dist/video.js"></script>
<!-- Load local ads plugin. -->
<link rel="stylesheet" href="../dist/videojs-contrib-ads.css">
<script src="../dist/videojs-contrib-ads.js"></script>
<link rel="stylesheet" href="../../dist/videojs-contrib-ads.css">
<script src="../../dist/videojs-contrib-ads.js"></script>
<!-- Load example ads integraiton. -->
<script src="example-plugin.js"></script>
<link rel="stylesheet" href="app.css">
Expand Down Expand Up @@ -56,7 +56,7 @@ <h2>Cue Text Tracks</h2>

var player = this;
var adContainer = videojs('exampleAdContainer');
var adServerUrl = "lib/inventory.json";
var adServerUrl = "inventory.json";
var originalSrc = player.currentSrc();
var state = {};
var playedCues = {};
Expand Down
3 changes: 2 additions & 1 deletion examples/module-import/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ To build this example:
* http://videojs.github.io/videojs-contrib-ads/developer/getting-started.html
* cd to this directory
* npm install webpack -g
* webpack ./entry.js bundle.js
* npm install webpack-command -g
* webpack ./entry.js --output=bundle.js
*/

Expand Down
2 changes: 1 addition & 1 deletion examples/module-import/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>
<h1>Module Import Example</h1>
<p>Check your console. <code>player.ads</code> should have been logged out if the example was a success.</p>
<p>To run this example, follow the instructions in <code>entry.js</code>, then check your console. <code>player.ads</code> should have been logged out if the example was a success.</p>
<video id="player">
Video element is not supported by this browser.
</video>
Expand Down

0 comments on commit fc5bf22

Please sign in to comment.