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

load video into video component

New Here ,
Aug 28, 2017 Aug 28, 2017

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

Views

387

Translate

Translate

Report

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.

Votes

Translate

Translate
LEGEND ,
Aug 28, 2017 Aug 28, 2017

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.

Votes

Translate

Translate

Report

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

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

screenshot.png

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank Clay

Votes

Translate

Translate

Report

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