-
1. Re: how to trigger based play a text, video and animated symbol
vivekuma Oct 31, 2014 9:07 PM (in response to aqmikc)Check this out: Dropbox - test.rar
I have added a label in the timeline that denotes the time when video finishes, and have modified the "next" button click handler.
hth,
Vivekuma
-
2. Re: how to trigger based play a text, video and animated symbol
aqmikc Oct 31, 2014 9:11 PM (in response to aqmikc)you are a life saver sir
Thank you
-
3. Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 1, 2014 10:57 AM (in response to vivekuma)hi
would this method work on a video thats 5 min long
its starts at 36 second and ends at 5 minutes 35 seconds
-
4. Re: how to trigger based play a text, video and animated symbol
vivekuma Nov 1, 2014 11:19 AM (in response to aqmikc)Yes, it should work in that case as well.
Let me know if it didn't work.
-
5. Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 1, 2014 11:20 AM (in response to vivekuma)yeah i was trying but it was not working i put the following code
var currentTime = sym.getPosition();
if(currentTime > 3600 && currentTime < 5.350 ) {
sym.$("Bruno")[0].pause();
sym.$("Bruno")[0].currentTime = 0;
sym.play("VideoFinished");
}
else {
sym.getSymbol("slide1").play();
sym.play();
}
-
6. Re: Re: how to trigger based play a text, video and animated symbol
vivekuma Nov 1, 2014 11:25 AM (in response to aqmikc)5.35 should be (5*60 + 35)*1000 = 335000
if(currentTime > 36000 && currentTime < 335000 ) {
-
7. Re: Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 1, 2014 11:28 AM (in response to vivekuma)Oh dam thanks a lot.
worked!!!
-
8. Re: Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 1, 2014 5:50 PM (in response to vivekuma)Hi
I was facing another issue.
As you can see in the test project. There is a video. It has a simple opacity at the end. When i enable controls for the video and pause and play in the browser to see specific parts. but what happens is that the video fades out when the playhead reaches that point and other slides fade in.
What i want to do is when the pause button is pressed in the video, the playhead stops and only when the video has ended or the next button clicked, the next slide appears.
Can you please tell me how to achieve this ?
Thanks
-
9. Re: how to trigger based play a text, video and animated symbol
vivekuma Nov 1, 2014 6:47 PM (in response to aqmikc)Add the below code in stage compositionReady event handler:
sym.$("trance6")[0].onpause = function(){
sym.stop();
};
sym.$("trance6")[0].onplay = function(){
sym.play();
};
hth,
Vivekuma
-
10. Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 2, 2014 2:23 AM (in response to vivekuma)Thank you
-
11. Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 11, 2014 9:47 AM (in response to vivekuma)Hello,
I was almost done but i am facing another issue. As you see i have a intro text then a video then text animated symbol. I preview the presentation and dont press next button for some time then i press the next button. The video plays. While the video is playing or after its been done playing, The amount of time that i waited to press next. The animated symbol progresses accordingly. it does not play from start when the next button is pressed. How do i fix this ?
-
12. Re: how to trigger based play a text, video and animated symbol
vivekuma Nov 11, 2014 10:49 AM (in response to aqmikc)Replace the code for the next button click handler with the below one:
sym.getSymbol("slide").play();
if(!sym.$("trance6")[0].paused) {
sym.$("trance6")[0].pause();
sym.play(8120);
}
else {
sym.play();
}
hth,
Vivekuma
-
13. Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 11, 2014 11:36 AM (in response to vivekuma)Hello Mr Vivek
It solved another issue which i didnt notice but the problem still remains. When the presentation is launched, i wait 5 seconds and then i press next. The video plays but right after the video is done the symbol plays. The problem i am facing is that the symbol skips to 5 second ans starts playing. It does not play from the start.
-
14. Re: how to trigger based play a text, video and animated symbol
aqmikc Nov 11, 2014 11:37 AM (in response to aqmikc)You can check with the drop box file you posted earlier.


