Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Unable to dynamically set JW player on postback


Hi, I have to following code on click of a button. I can not determine why the viedo isn't embedded? Could you assist

Dim scriptText As String
Dim root As String
Dim TheEnd As String

'<script src = "//content.jwplatform.com/players/e1hZBimJ-BL4ZIm7N.js" ></script>
'<%-- <script src= "//content.jwplatform.com/players/e1hZBimJ-BL4ZIm7N.js" ></script> - -%>

root = "<script type=""text/javascript"" src=""//cdn.jwplayer.com/players/"""

TheEnd = "e1hZBimJ-BL4ZIm7N.js"" ></script>"

scriptText = root + TheEnd


ClientScript.RegisterClientScriptBlock(Me.GetType(),
"CounterScript", scriptText, False)

1 Community Answers

Heidi

JW Player Support Agent  
0 rated :

Hello,

I see some extra quotes in your above code that might be typos. I am not sure what you are trying to do, since this code snippet is in VBscript, which I am unfamiliar with. Do you have a page link where I may take a look at this issue?

Thanks, Heidi

This question has received the maximum number of answers.