[Android-development] QCamera don't capture video in

Dominik Fehr df at metasec.de
Thu Oct 23 14:38:21 CEST 2014


Hi,

According to Yoann Lopes from Digia, QCamera C/C++ implementation for Android on Qt 5.4 Alpha does NOT work. It is planned to fix this issue until the final 5.4 release, but I can also confirm it is still not working on 5.4 Beta.

Currently the only way to use QCamera this way is by using QML and pass the data to the C++ part if your code. Sadly there is another bug preventing the flawless usage of this as well. Check: https://bugreports.qt-project.org/browse/QTBUG-41467

-----Original Message-----
From: android-development-bounces+df=metasec.de at qt-project.org [mailto:android-development-bounces+df=metasec.de at qt-project.org] On Behalf Of android-development-request at qt-project.org
Sent: Donnerstag, 23. Oktober 2014 14:23
To: android-development at qt-project.org
Subject: Android-development Digest, Vol 22, Issue 17

Send Android-development mailing list submissions to
	android-development at qt-project.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.qt-project.org/mailman/listinfo/android-development
or, via email, send a message with subject or body 'help' to
	android-development-request at qt-project.org

You can reach the person managing the list at
	android-development-owner at qt-project.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of Android-development digest..."


Today's Topics:

   1. Re: QCamera don't capture video in android (Petar Koreti?)
   2. ??:  QCamera don't capture video in android (kl222)


----------------------------------------------------------------------

Message: 1
Date: Thu, 23 Oct 2014 13:05:31 +0200
From: Petar Koreti? <petar.koretic at gmail.com>
Subject: Re: [Android-development] QCamera don't capture video in
	android
To: kl222 <kl222 at 126.com>
Cc: android-development at qt-project.org
Message-ID:
	<CAOWmdGOhP69vJx1KVRyODWkZwjUAT3ErQUzhiViVphFLtCBwhQ at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi.

Until somebody more competent replies,  can you check if you have permissions for using camera?

Depending on your use case you may want these:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Regards,
Petar

On Thu, Oct 23, 2014 at 12:56 PM, kl222 <kl222 at 126.com> wrote:

>
>
> *Description*
>
> QCamera don't capture video in android. Run the attached example.
>
> But it can work in windows and linux.
>
> Is it bug or code is wrong? If code is wrong, tall me how to write.
>
> ?         *Environment:*
>
> operating system:android
> qt version:
> qt 5.3.1
> qt 5.3.2
> qt 5.4.0-beta1
>
>
>
>
>
> _______________________________________________
> Android-development mailing list
> Android-development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/android-development
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/android-development/attachments/20141023/55b875e0/attachment-0001.html 

------------------------------

Message: 2
Date: Thu, 23 Oct 2014 20:22:27 +0800
From: "kl222" <kl222 at 126.com>
Subject: [Android-development] ??:  QCamera don't capture video in
	android
To: <android-development at qt-project.org>
Message-ID: <00f401cfeebc$0642b0d0$12c81270$@126.com>
Content-Type: text/plain; charset="utf-8"

Yes. I hava permissions. The camera state is active. only can?t capture video.

 

AndroidManifest.xml:

<?xml version="1.0"?>

<manifest package="com.KangLinStudio.RabbitIm" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">

    <application android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="@string/app_name" android:icon="@drawable/icon">

        <activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="org.qtproject.qt5.android.bindings.QtActivity" android:label="@string/app_name" android:screenOrientation="unspecified" android:launchMode="singleTop">

            <intent-filter>

                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>

            </intent-filter>

            <meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>

            <meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>

            <meta-data android:name="android.app.repository" android:value="default"/>

            <meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>

            <meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>

            <!-- Deploy Qt libs as part of package -->

            <meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>

            <meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>

            <meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>

            <!-- Run with local libs -->

            <meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>

            <meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>

            <meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>

            <meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>

            <meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>

            <!--  Messages maps -->

            <meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>

            <meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>

            <meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>

            <!--  Messages maps -->

 

            <!-- Splash screen -->

            <!--

            <meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/>

            -->

            <!-- Splash screen -->

        </activity>

    </application>

    <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>

    <supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>

 

    <!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.

         Remove the comment if you do not require these default permissions. -->

    <!-- %%INSERT_PERMISSIONS -->

 

    <!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.

         Remove the comment if you do not require these default features. -->

    <!-- %%INSERT_FEATURES -->

 

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <uses-permission android:name="android.permission.CAMERA"/>

    <uses-permission android:name="android.permission.RECORD_AUDIO"/>

    <uses-permission android:name="android.permission.READ_FRAME_BUFFER"/>

    <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>

    <uses-permission android:name="android.permission.WRITE_USER_DICTIONARY"/>

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <uses-permission android:name="android.permission.READ_USER_DICTIONARY"/>

    <uses-permission android:name="android.permission.INTERNET"/>

 

    <uses-feature android:name="android.hardware.camera" android:required="true"/>

    <uses-feature android:name="android.hardware.camera.autofocus" android:required="true"/>

    <uses-feature android:name="android.hardware.microphone" android:required="true"/>

 

</manifest>

 

???: Petar Koreti? [mailto:petar.koretic at gmail.com]
????: 2014?10?23? 19:06
???: kl222
??: android-development at qt-project.org
??: Re: [Android-development] QCamera don't capture video in android

 

Hi.

 

Until somebody more competent replies,  can you check if you have permissions for using camera?

 

Depending on your use case you may want these:

 

<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

 

Regards,

Petar

 

On Thu, Oct 23, 2014 at 12:56 PM, kl222 <kl222 at 126.com <mailto:kl222 at 126.com> > wrote:

 

Description

QCamera don't capture video in android. Run the attached example.

But it can work in windows and linux.

Is it bug or code is wrong? If code is wrong, tall me how to write.

*         Environment: 

operating system:android
qt version:
qt 5.3.1
qt 5.3.2
qt 5.4.0-beta1

 

 


_______________________________________________
Android-development mailing list
Android-development at qt-project.org <mailto:Android-development at qt-project.org> 
http://lists.qt-project.org/mailman/listinfo/android-development

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/android-development/attachments/20141023/9a56b68e/attachment.html 

------------------------------

_______________________________________________
Android-development mailing list
Android-development at qt-project.org
http://lists.qt-project.org/mailman/listinfo/android-development


End of Android-development Digest, Vol 22, Issue 17
***************************************************



More information about the Android-development mailing list