Hi @kipash
… cheeeeeeeeeeers for the input. I’ll check out all you’ve suggested ![]()
by user 908977119781060648
Hi @kipash
… cheeeeeeeeeeers for the input. I’ll check out all you’ve suggested ![]()
by user 908977119781060648
Nope… sadly, nothing seems to get the video to start playing from its beginning.
I seem to be down several rabbit holes now, so I think I’ll have to leave it for a while and clear my head… just for now anyway ![]()
Thanks for all the help, both of you ![]()
by user 908977119781060648
mmmh I just tried the same thing with this snippet of code (just added it to the main.ts)
import { AudioSource, GameObject, VideoPlayer, onStart } from "@needle-tools/engine";
onStart(() => {
var video = GameObject.findObjectOfType(VideoPlayer);
AudioSource.registerWaitForAllowAudio(() => {
video?.play();
});
})
that works for me here. If it still doesnt work for you could you send your scene as a bugreport?
Cheeeeeeeeers Marcel, I’ll take a look asap
![]()
by user 908977119781060648
Hi again Marcel… apols but I think I’m probably adding your snippet to the wrong part of the script that I’m using.
If possible, when you have a spare moment could you show me where how you would add it to this? (play.ts - attached)
Many thanks, in advance ![]()
by user 908977119781060648
Hi Frannie, so you can do this without writing code too btw:
You could also put your videoplayer on an extra gameobject and use activation tracks ![]()
Cheers once again, Marcel… I’ll have a look at giving those recommendations a try right now ![]()
Will feedback here asap…
by user 908977119781060648
Apols for lack of feedback re: this.
I’m still endeavouring to get it running at this end but have had to divert attention to other work just for now ![]()
Back on it again soon!
by user 908977119781060648
YESSSSSSSSSSS!!!
Got it all working perfectly using a combination of the solutions you both so kindly suggested.
Happy days!
![]()
Cheeeeeeeeeeeeeeeers, Marcel & Kipash, for your time and expertise! It’s always hugely appreciated!
by user 908977119781060648
Anytime ![]()