Play video FLVPlayback from specific time HELP

Explorer ,
Jan 12, 2021 Jan 12, 2021

Copy link to clipboard

Copied

I have problem. It is no big but I need to do it:)

I want to play video from specific time but this is not work for me.

ERROR
1119: Access of possibly undefined property startTime through a reference with static type fl.video:FLVPlayback.

 

import fl.video.*;
import fl.video.VideoEvent;
import flash.events.*;

add();
 
function add():void{
	
	myVideo.autoPlay=false;
	myVideo.source="video/1.mp4";
	myVideo.skinAutoHide=true;
	myVideo.startTime = 60;

	myVideo.play();
	myVideo.addEventListener(Event.COMPLETE, completePlay);
}


function completePlay(e:Event):void {
	myVideo.stop();
	myVideo.autoRewind = true;
	myVideo.removeEventListener(Event.COMPLETE, completePlay);
}


 

TOPICS
ActionScript

Views

92

Likes

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
Adobe Community Professional ,
Jan 12, 2021 Jan 12, 2021

Copy link to clipboard

Copied

you need to use an event and listener to ensure enough video is loaded to"move the playhead to the start point you want.  and you need to use a valid flvplayback property or method to move to that point (eg, the playheadTime property or the various seek methods).  startTime isn't valid.

Likes

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
Explorer ,
Jan 12, 2021 Jan 12, 2021

Copy link to clipboard

Copied

IT means cut Video where you want to play 🙂 But thanks

Likes

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
Adobe Community Professional ,
Jan 12, 2021 Jan 12, 2021

Copy link to clipboard

Copied

LATEST

to what in my message are you replying?

Likes

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