Multimedia Collection (mdatacollector)

Introduction

Demonstrate the collection of sound, images, videos and other multimedia data, as well as upload and download the collected data.

Operation effect

Figure: Multimedia Collection Operation Effect

Location

Android Studio

  • Product package: Product package\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\mdatacollector

ADT

  • Product package: Product package\SampleCode\SampleCode_ADT\MDataCollector

Data

Storage location

  • Product package: Product package\SampleData\MDataCollectorData

Deployment Location: mobile device internal storage\SampleData\MDataCollectorData

License

Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.

Library

jar
com.supermap.data.jar, com.supermap.mapping.jar, com.supermap.services.jar, com.supermap.mdatacollector.jar
so
libimb2d.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.)

Key types/members

Control/Class Method
MDataCollector captureImage(), captureVideo(), startCaptureAudio(), stopCaptureAudio(), setLocalFilePath(), setMediaDataset(), downloadMediaFile(), uploadMediaFile(), addNetworkAccessMediaFileListener()

Basic steps

  1. Click Collect button, and then choose corresponding button (Photos, Film and Record button) to perform operation.
  2. Click View to view all collected points. You can click each point to open the corresponding multimedia files.
  3. Click Network to upload and download data. But first, please log to iPortal.