Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 1.3 Beta
-
Fix Version/s: None
-
Component/s: Containers
-
Labels:None
-
Environment:Android Container in BB10 runtime, BB OS 10.1.0.203
Description
After the BB10 upgrade, the video system is different. Originally, when launching the Camcorder, the UI was the full camera UI with flash, zoom, and capture controls. Now it is a simple screen that you touch to start recording. Further, the VideoHandler callback is throwing an exception after the video is captured:
06-05 10:32:11.610: E/AndroidRuntime(54108376): Caused by: java.lang.NullPointerException
06-05 10:32:11.610: E/AndroidRuntime(54108376): at org.icemobile.client.android.video.VideoHandler.gotVideo(VideoHandler.java:114)
06-05 10:32:11.610: E/AndroidRuntime(54108376): at org.icemobile.client.android.ICEmobileContainer.onActivityResult(ICEmobileContainer.java:309)
06-05 10:32:11.610: E/AndroidRuntime(54108376): at android.app.Activity.dispatchActivityResult(Activity.java:3948)
06-05 10:32:11.610: E/AndroidRuntime(54108376): at android.app.ActivityThread.deliverResults(ActivityThread.java:2532)
I fixed a problem earlier in the same area when the camera system couldn't deliver a bitmap thumbnail for a video clip when the video was taken in portrait mode. The code is here.
//Need to move file as MediaStore.Video.EXTRA_OUTPUT does not work;
Uri uri = data.getData();
String[] projection = { MediaStore.Video.Media.DATA, MediaStore.Video.Media.SIZE };
Cursor cursor = container.managedQuery(uri, projection, null, null, null);
114) int column_index_data = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA);
int column_index_size = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.SIZE);
cursor.moveToFirst();
So the cursor returned by the container query is null. Perhaps the new video system stores the clip in a different location.
06-05 10:32:11.610: E/AndroidRuntime(54108376): Caused by: java.lang.NullPointerException
06-05 10:32:11.610: E/AndroidRuntime(54108376): at org.icemobile.client.android.video.VideoHandler.gotVideo(VideoHandler.java:114)
06-05 10:32:11.610: E/AndroidRuntime(54108376): at org.icemobile.client.android.ICEmobileContainer.onActivityResult(ICEmobileContainer.java:309)
06-05 10:32:11.610: E/AndroidRuntime(54108376): at android.app.Activity.dispatchActivityResult(Activity.java:3948)
06-05 10:32:11.610: E/AndroidRuntime(54108376): at android.app.ActivityThread.deliverResults(ActivityThread.java:2532)
I fixed a problem earlier in the same area when the camera system couldn't deliver a bitmap thumbnail for a video clip when the video was taken in portrait mode. The code is here.
//Need to move file as MediaStore.Video.EXTRA_OUTPUT does not work;
Uri uri = data.getData();
String[] projection = { MediaStore.Video.Media.DATA, MediaStore.Video.Media.SIZE };
Cursor cursor = container.managedQuery(uri, projection, null, null, null);
114) int column_index_data = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA);
int column_index_size = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.SIZE);
cursor.moveToFirst();
So the cursor returned by the container query is null. Perhaps the new video system stores the clip in a different location.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #36030 | Thu Jun 06 17:37:29 MDT 2013 | greg.dick | Mobi-770 If the cursor finds no video files (Android 10.1 runtime) then treat the URI as a raw filename |
Files Changed | ||||
MODIFY
/icemobile/trunk/icemobile/client/android/integration/video/src/org/icemobile/client/android/video/VideoHandler.java
|