Copy link to clipboard
Copied
Hi to all,
I try to use the video component, I need assign the path from code... I tryed to use the Snippet Code:
$("#video_mc").src ="videos/video.mp4";
It isn't work... I don't understand
I swear the Socratic method is more headache than it's worth anymore. Let me rephrase that imperatively:
DO NOT put your code on the same frame the component first appears. Put it on the next frame.
Copy link to clipboard
Copied
I assume you didn't put that code on the same frame that the component first appears on the stage.
Copy link to clipboard
Copied
What do you mean?
My code is on the first frame, and the component in int same frame three layer below
Copy link to clipboard
Copied
I swear the Socratic method is more headache than it's worth anymore. Let me rephrase that imperatively:
DO NOT put your code on the same frame the component first appears. Put it on the next frame.
Copy link to clipboard
Copied
That's icredible!!
You're my Angel!!!
Can I make a second quetion?
I need to know the totalFrame and the currentFrame (forgive the incorrect expressions), these are usefull for create a seekbar of video, what is the correct syntax?
this.totFrms = $("#video_mc")[0].totalFrames();
this.cuFrm = $("#video_mc")[0].currentFrames();
doesn't work...
Copy link to clipboard
Copied
If you want a seek bar for your video, just check the "controls" box in the component parameters window.
Copy link to clipboard
Copied
Yes, I know, but I need a seekbar mine, and specially I need to know when the video ends
Copy link to clipboard
Copied
Well then, have fun making your own seek bar from scratch, if you think you're up to it.
Copy link to clipboard
Copied
Thank Clay