Skip to first unread message

Annie Yoo

unread,
Oct 21, 2014, 9:27:53 AM10/21/14
to
Hello, everyone.
I am building application with AI2, and I've got a problem with video player component.
I called video player to start when screen initialized and also called 2 kinds of players to start, because I wanted to put sounds that aren't in video which I want to start. 
I don't see any problems at my code, because it is very simple. There is no errors or blocks at this screen. 
When I initialize my screen, I see a black screen. The video starts when I click the black screen and click the play button. 
Is this normal? If so, there is no other way to play the video automatically? 
Thanks for your help!
[edited] PS. I am using mp4. video file.

Annie
videoplayernotstarting.png

Enis

unread,
Oct 21, 2014, 1:28:18 PM10/21/14
to mitappinv...@googlegroups.com
Annie... I don't think you'll be able to play multiple things at once...

Taifun

unread,
Oct 21, 2014, 4:36:10 PM10/21/14
to mitappinv...@googlegroups.com
does it work, if you start only the videoplayer?
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

Annie Yoo

unread,
Oct 22, 2014, 3:08:32 AM10/22/14
to
Hi, Enis and Taifun.

I've disabled the blocks which calls the player to start, but videoplayer still doesn't work.  The screen shows black screen and I can only play the video by touching it and pushing the play button.
Is there a way to play videoplayer automatically, not playing it by pushing it?

Annie

Nigel Yu

unread,
Oct 22, 2014, 4:49:39 AM10/22/14
to mitappinv...@googlegroups.com
Cannot play the sound for in HelloPurr

Enis

unread,
Oct 22, 2014, 2:18:40 PM10/22/14
to
@ Nigel... Please don't hijack a thread.  Your issue has nothing to do with the topic about the videoplayer.  Make sure you've downloaded the audio file from the site and have added it to your project as an asset.  If you have other issues, please create a new post.

@ Annie:

Try putting that code outside of the initialize block.  I would create a timer, enable it in the initialize block, and in the timer block, start your video.

Annie Yoo

unread,
Oct 22, 2014, 7:24:04 PM10/22/14
to
Thank you Enis. It did a trick.
My app now shows the video automatically. Thank you!
And thank you for Taifun for another advice..even though it did not work.
Thanks again for everyone.
We can now close the topic :)

Annie

Enis

unread,
Oct 22, 2014, 11:34:27 PM10/22/14
to mitappinv...@googlegroups.com
Glad it's working Annie!

In general, the initialize block is the place to set the scene, so to speak.  The action takes place elsewhere!  Use the Initialize block for setting different settings, positions, opening files, populating lists and that sort of thing.

Annie Yoo

unread,
Oct 23, 2014, 12:40:05 AM10/23/14
to mitappinv...@googlegroups.com
Thanks Enis.
I will keep that in mind :)

Annie
Reply all
Reply to author
Forward
0 new messages