Hello,

 

I'm Jongseok Yang and webkit engineer in SAMSUNG Electronic.

 

I'm trying to implement HTML Media Capture spec. but I'm not sure that.

I think that the operation of the specification is like the below.

Could you give some comment if it's not correct?

 

The "capture" attribute is just optional. Even if there is no "capture" attribute in the File Upload state, the user agenet should invoke some interface that allow to take a picture, record a sound file, recorder video, or select a file from file system.

Ex1)  <input type="file" accept="image/*">

    => It's to allow to take picture, select a file from file system.

    => The file picker will present the interface for the file system by default. The user can select the interface for camera within the file picker

Ex2)  <input type="file" accept="audio/*"> 

    => It's to allow to recorder a sound, select a file from file system.

    => The file picker will present the interface for the file system by default. The user can select the interface for voice recorder within the file picker

Ex3)  <input type="file" accept="video/*"> 

    => It's to allow to recorder a video, select a file from file system.

    => The file picker will present the interface for the file system by default. The user can select the interface for voice recorder within the file picker

Ex4)  <input type="file" accept="image/*" capture="camera">

    => It's to allow to take picture, select a file from file system.

    => The file picker will present the interface for camera by default. The user can select the interface for file system within the file picker

Ex5)  <input type="file" accept="image/*" capture="microphone">

    => It's to allow to take picture, select a file from file system.

    => The capture attirbute is ignored because the value is "microphone" but it is not allowed to record a sound 

    => It's the file picker present the interface for camera by default. The user can select the interface for camera within the file picker

 

I think that the same file picker should be launched in all cases and the file picker includes all intefaces.

I think that it's not easy to implement the file picker.

So, My implementation choice is to launch "Interface selector" instead of the file picker.

"Interface selector" will present the allowed behavior - "take a picture" "record a sound file" "recorder video" "file system"

At that time, the user will select an interface from the "Interface selector" and the selected interface will be lauched.

 

 

Could you leave me some comment to my understaning and implemtation choice?

 

BR,

Jongseok Yang.

 

 

 
Yang, Jong-Seok
Engineer

Mobile R&D Group
Mobile Communication Division
Telecommunication Network Business

SAMSUNG ELECTRONICS CO., LTD.

TEL : 82-31-301-0724
Mobile : 82-10-9530-0724
E-Mail : js45.yang@samsung.com