LuckyLuke8
Lurker
In smartphone, pixel 3a XL with Android 8.0, I discover /dev/video* does not exist. Why doesn’t it exist? Is there another device file that is able to interact with camera hardware?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Nope… I’m using pixel 3a emulator by means Android studio
So it's an app development problem? Could be because an emulator doesn't actually have any "camera hardware"? Just a guess, but I don't know so much about that, I'm not a dev.
I would use physical device, trying to use the emulator(camera)does not make any sense imo,
What's the emulator going to view/recored, how do you check it's using the right camera?
In this case, the application shouldn’t be able to record video( video file). In my case, the application records video. In addition i can play the video recorded by my application…The phone could be recording in a format/size not compatible with android studio, this would be the first thing I would check.
The permissions may not be the same on the emulator as they are on your phone.
https://developer.android.com/guide/topics/media/media-formats
I will have a go myself tonight but my app will play small video files but I can't get it to play a 30min 2.1gb video file(mp3, 1080p)In this case, the application shouldn’t be able to record video( video file). In my case, the application records video. In addition i can play the video recorded by my application…
I will have a go myself tonight but my app will play small video files but I can't get it to play a 30min 2.1gb video file(mp3, 1080p)
Also found some image/video types don't seem to play, guess there away around it.
I will try this tutorial tonight as a starting point and see how I get on.
https://www.geeksforgeeks.org/android-how-to-open-camera-through-intent-and-display-captured-image/