George S.
Posts: 0
Joined: Tue Aug 13, 2013 8:20 pm

Video doesnt display correct URL when src updated dynamically.

Dynamic update of Video HTML properties using local storage variable does not change the src property during execution even when the src is changed on the pre-load task of the prior page. Trying to grab a URL from a server and view it in a video after a series of other tasks complete on prior pages. Because we dont know the URL of the video until execution time, it must be dynamic but only the static link URL shows as the video. For background, yes I am filling in all 3 video formats and updating src1, src2, src3 and type1 type2 and type3 HTML attributes on a video object named video. perhaps the attribute names are different? Nothing in the console log or error log. Just shows the static video.

George S.
Posts: 0
Joined: Tue Aug 13, 2013 8:20 pm

Video doesnt display correct URL when src updated dynamically.

Hi Katya,

After reading the link, I'm still a little lost. Are you suggesting that I code the video call using an HTML block instead of using a page with a video UI object on it? Is there any reason why changing the attributes of the video object using a click event would not work? I've tried using the page pre-load and a button with a click event and then refreshing the video page---still doesn't change what gets played. It's always the original video.

George S.
Posts: 0
Joined: Tue Aug 13, 2013 8:20 pm

Video doesnt display correct URL when src updated dynamically.

Hi Katya, Thank you for this. I was able to make the video page on the server and reference it with the open URL event. It seems to play very nicely and is a much better solution.

Return to “Issues”