Playing a Mp4 automatically

Yeah, but I'm trying to play automatically the video with the audio; in this way, only the audio is play

Have you tried with the VideoPlayer component? or with the option @TIMAI2 pointed to you?

I'm trying to play a mp4, not an html

take a look slower....to the example, please

1 Like

The Sound component can only play short audio tracks (< 5 sec).

Duration?

2 seconds, but can it be longer?

can it be without buttons?

I have tried the aia of the topic and I have placed the block in Initialize instead of the button.Click and it works... (nice bear :stuck_out_tongue_closed_eyes:)

Why don't you use audio formats (mp3, ogg, m4a, wav, aac, ...)?

But I want to play a video

Show your (relevant) blocks (and post the aia).


This is my main program; all the advices until now, haven't work

In Clock.Timer it would be Clock.TimerEnabled = false.

Anyway, with VideoPlayer you need to push the Play button.
doesn't it work for you?

Maybe the video format....can you share it?

This should work (to play the video automatically):

grafik

grafik

1 Like

yes, I didn't test it, but indeed, it starts automatically.

Thank you so much, it works. I was so stressed :sob: :sob: :sob:

1 Like

Next time please post your blocks immediately so we don't need 23 posts to resolve the issue. Two posts would have been enough.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.