Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:36:13+00:00 2026-06-16T03:36:13+00:00

I would like to stop the user from accessing their own filesystem ie. camera

  • 0

I would like to stop the user from accessing their own filesystem ie. camera roll and videos on a mobile device. Forcing them to capture live media. Is this possible? If so how would I implement this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:36:15+00:00Added an answer on June 16, 2026 at 3:36 am

    On a HTML5 capable device, you can use (if supported) the userMedia API.

    Here is an excellent tutorial to get you started.

    Basically, you can do:

    <input type="file" accept="image/*;capture=camera"> <!-- Submit a new photo -->
    <input type="file" accept="video/*;capture=camcorder"> <!-- Submit a new video -->
    <input type="file" accept="audio/*;capture=microphone"> <!-- Submit a new audio track using the microphone -->
    

    Like I said, this will only work if supported. Currently, even devices under iOS6 are partially supporting the userMedia API.

    Provided your device supports the API, but not the accept="image/*;capture=camera" ... and so on, you could program your own buttons to do the same thing.

    <input type="button" id="newStream" value="Click me!">
    <script>
        // Following code adapted from the tutorial, not tested
        document.getElementById('newStream').addEventListener('click', function(event){
            // Not showing vendor prefixes or code that works cross-browser.
            navigator.getUserMedia({video: true}, function(stream){
                // Do something with stream or window.URL.createObjectURL(stream);
                alert('Success!');
            }, function(){ alert('Failed!'); });
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a search page where I would like to stop the user entering
I would like to know how to stop the right bar button from being
I would like to stop people from constantly syncing/updating items in the DB as
I have a wx.ListBox that I would like the user to select from as
Would like to parse IPv4 address from exit-addresses . Format of the file: ExitNode
Vista puts out a new security preventing Session 0 from accessing hardware like the
I would like to display the user selected help file when pressing F1. This
I would like to build a carousel for selecting items from a list. It
i have a windows 8 phone application, i would like to stop the app
I would like to know if there is anyway to stop the clear button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.