[SOLVED]Properly coding to launch a remote video dynamically

[SOLVED]Properly coding to launch a remote video dynamically
0.0 0

#1

Hi! I can not run remote video if the url is set on runtime, that is the remote video is launching only when the url is set ‘statically’ in Cocos Creator IDE. How can I properly code to run remote video dynamically? I tried to change Example project, but it is not successful. I mean I set another url in script file but the old video works which has old url statically set in CocosCreator IDE.
p.s. next two removed messages are here. I did not write the question correctly, stretching it to three messages.


#4

I found a solution. Firstly, it must be this.videoplayer.remoteURL =" ... " not this.videoplayer.url =" ... ", and this url parameter must be in onLoad. This is how it works for me.