Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

load video into video component

New Here ,
Aug 28, 2017 Aug 28, 2017

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

663
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 28, 2017 Aug 28, 2017

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.

Translate
LEGEND ,
Aug 28, 2017 Aug 28, 2017

I assume you didn't put that code on the same frame that the component first appears on the stage.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2017 Aug 28, 2017

What do you mean?

My code is on the first frame, and the component in int same frame three layer below

screenshot.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2017 Aug 28, 2017

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 28, 2017 Aug 28, 2017

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 28, 2017 Aug 28, 2017

If you want a seek bar for your video, just check the "controls" box in the component parameters window.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 29, 2017 Aug 29, 2017

Yes, I know, but I need a seekbar mine, and specially I need to know when the video ends

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2017 Aug 29, 2017

Well then, have fun making your own seek bar from scratch, if you think you're up to it.

<video> - HTML | MDN

HTMLMediaElement - Web APIs | MDN

Media events - Web developer guides | MDN

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 30, 2017 Aug 30, 2017
LATEST

Thank Clay

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines