Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get vast advertising tag to fire #3

Open
rnorthro14 opened this issue Mar 3, 2016 · 2 comments
Open

Cannot get vast advertising tag to fire #3

rnorthro14 opened this issue Mar 3, 2016 · 2 comments

Comments

@rnorthro14
Copy link

Inside an angular app with a yeoman scaffold. I set the advertising.tag value implicitly to the uri then a variable - same non result. I am able to change the other values like height and width, just not advertising. Below are some pertinent code blocks. Any thoughts, or advice would be helpful:

Scripts sourced Inside index.html file:
<script src="http://content.jwplatform.com/libraries/2glEqesD.js"></script> <!-- build:js(.) scripts/vendor.js --> <!-- bower:js --> <script src="bower_components/angular/angular.js"></script> <script src="bower_components/angular-animate/angular-animate.js"></script> <script src="bower_components/angular-cookies/angular-cookies.js"></script> <script src="bower_components/angular-resource/angular-resource.js"></script> <script src="bower_components/angular-route/angular-route.js"></script> <script src="bower_components/angular-sanitize/angular-sanitize.js"></script> <script src="bower_components/angular-touch/angular-touch.js"></script> <script src="bower_components/angular-bootstrap/ui-bootstrap-tpls.js"></script> <script src="bower_components/ng-jwplayer/jwplayer.js"></script> <!-- endbower -->

JS:
` var height = 270;
var width = 480;
var tag = 'http://vpod4q.qa.lijit.com/www/delivery/vst.php?zoneid=355131&u=sduggan';

  $scope.options = {
    height: height,
    width: width,
    advertising: {
      type: 'vast',
      tag: tag
    }
  }
  $scope.playerSrc = $sce.trustAsResourceUrl('http://video1q.qadfw2.lijit.com/contentVideo.mp4');`

Directive tag in template:
<jwplayer ng-src="{{ playerSrc }}" player-options="options" player-id="myPlayer"> </jwplayer>

@dkarchmer
Copy link
Collaborator

ngJWPlayer just passes the whole object to the low level jwplayer setup function. I don't have any experience with ads but I would suggest confirming you have the proper license for ads. You may require a premium license. If you do have it, try creating a small HTML and JS as shown in examples and confirm that works. In short, i don't think this is related to this directive.

@rnorthro14
Copy link
Author

It works if I "crash" the video player, ie by adding an undefined argument in a log statement. Otherwise, It appears that the video plays before the ad tag has a chance to load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants