Help with mobile code

When this code (below) on the web page is viewed by mobile device, and ‘Choose File’ is selected the mobile device video camera feature appears. Is there some code needed instead to have the video camera feature appear with this also in the window (see attached image)

<form action="upload1.php method="post" enctype="multipart/form-data">
    Select image to upload:
    <input type="file" name="fileToUpload" id="fileToUpload" accept="video/*" capture>
    <input type="submit" value="Upload Image" name="submit">

any help will be appreciated. Thanks.

I am unable to edit my initial posting, so I guess I’ll add to this thread with an additional question.

I have figured out that this code will pop up the image (as requested in my initial posting):

<input type="file" accept="video/*" name="fileToUpload" id="fileToUpload">

but I’d like help to get it so that when “Take Video” is selected, the camera is facing the user.

I know the code is capture=“user”, but I’ve tried to figure out where that fits in, to accomplish that, and have been unsuccessful.

Any help will be appreciated.

Haven’t played around with this but maybe this will be of help:

Key facingMode

And then again I don’t know how well different browsers support getUserMedia API.

Thanks for that reply, but I don’t know how to integrate that into what I currently have.
Ant additional help with when someone chooses “Take Video” the user-facing camera appears, will be appreciated.

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