angularjs - brightcove video display value from Angular Scope -


We have an app designed using AngularJS and we have a bright quad video, we have parameter value from scope variable But I am not able to see the video when I am trying to specify the value from the scope

   & Lt; Param name = "playerKey" value = "{{app.Key}}" /> ........ ........ ....... ........ ........ & lt; / Object & gt; & Lt; Script type = "text / javascript" & gt; Brightcove.createExperiences (); & Lt; / Script & gt;   

I thought the values ​​would be loaded with scope var but it is not happening.

So I also have this issue and in the end it has got a solution. The problem I was experiencing was that the object was being added before the introduction of angular values, thus there is a string of variables rather than values.

In HTML, I put in a div.

And in my controller:

  & lt; Object id = "xxxxxx" class = "Brightcow experience" & gt; \ & Lt; Param name = "bgcolor" value = "# 000000" & gt; \ & Lt; Param name = "@ video player" value = '+ $ scope.videoId +' & gt; \ & Lt; Ultimate name = "secure connection" value = "true" /> \ & Lt; Param name = "secure HTML connection" value = "true" & gt; \ & Lt; Param name = "force html" value = "true" & gt; \ & Lt; / Object & gt; & Lt; Script type = "text / javascript" & gt; Brightcove.createExperiences (); & Lt; / Script & gt; ');   

Because my $ scope.videoId was worth it when it was added to the page, it worked, I hope it helps.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -