Skip to first unread message

Dan Galley

unread,
Jul 22, 2014, 6:33:26 PM7/22/14
to mitappinv...@googlegroups.com
Hi

I've only very recently started to use AI2, and so far its been a steep learning curve! But I'm having some success.

Within my app I'd like to display a live feed from the rear camera alongside a button to choose to record or not. I can use the camcorder to call the camcorder app, but I want to display live video and record from within my own app.

I basically have a set of buttons and status labels to one side of the screen and would like to have a live camera feed on the other approx 200 px square.

Is there a way of achieving this?

Many thanks

Taifun

unread,
Jul 27, 2014, 3:28:34 PM7/27/14
to mitappinv...@googlegroups.com
Within my app I'd like to display a live feed from the rear camera alongside a button to choose to record or not
unfortunately not possible

to star an issue means, to click onto the star in the upper left corner of the issue to vote for it and to get an email in case there are news

Taifun

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

Dan Galley

unread,
Jul 27, 2014, 3:41:32 PM7/27/14
to mitappinv...@googlegroups.com
That's a shame.

Ok, different scenario. I've tried to display a short video in place of the live feed (sub 10 seconds) which in turns pulls another looped video in its place once the first has ended.

This is activated by a button which calls the first video file.

What I can't seem to get is once the first video is called I set a timer to run for the duration of the first video then call the second video which in turn loops back to itself until another button is pressed.

When that button is pressed it stops the second video, and plays the first and stops.

Everytime I press the "on" button nothing happens.

Any ideas on how to achieve this?

If I combine the two videos, is there a way for only looping a certain part of it, then calling the first few seconds when a button is pressed?

Taifun

unread,
Jul 27, 2014, 3:46:46 PM7/27/14
to mitappinv...@googlegroups.com
once the first video is called I set a timer to run for the duration of the first video then call the second video which in turn loops back to itself until another button is pressed.

use the Completed event to start the other video, see also http://ai2.appinventor.mit.edu/reference/components/media.html#VideoPlayer
Taifun

Completed()
Indicates that the video has reached the end

Dan Galley

unread,
Jul 27, 2014, 4:13:42 PM7/27/14
to mitappinv...@googlegroups.com
Thanks. That works well

Now how do I get the video to start without prompting for a play button input from videoplayer?

At t&e moment it waits for me to touch the video and select play before it errrr..... Plays!

Reply all
Reply to author
Forward
0 new messages