Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16119] Android: Intermittent crash with Video Timing and State

GitHub Issuen/a
TypeBug
Priorityn/a
StatusReopened
ResolutionUnresolved
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid
ReporterJason Bettencourt
AssigneeUnknown
Created2013-08-28T20:04:59.000+0000
Updated2018-02-28T20:03:44.000+0000

Description

This is in reference to a crash bug when viewing a video in android. It seems to be caused by a timing issue that used to be handled with a state-checking piece of logic that has been commented out in the following file between lines 650-658. https://github.com/appcelerator/titanium_mobile/blob/3_1_X/android/modules/media/src/java/android/widget/TiVideoView8.java Was there a specific reason that this logic was commented out because it would fix the specific error we are seeing in the attached crash log?

Attachments

FileDateSize
crashLog.txt2013-08-28T20:04:59.000+00001777

Comments

  1. Mostafizur Rahman 2013-09-18

    Hello Jason Bettencourt, Can you post test code and test case for this issue that we can reproduce?
  2. Mostafizur Rahman 2013-12-29

    [~jlb6134] We tried to reproduce your issue with our sample test case. We were not able to reproduce it with Titanium SDK 3.2.0 GA. Please upgrade to the latest Titanium stack and let us know if you continue to see this problem.

    Test Environment:

    Android SDK: 4.2.2 Titanium SDK: 3.2.0.GA Titanium CLI: 3.2.0

    Test Code:

       var win = Ti.UI.createWindow({
       	title : "Video Player",
       	navBarHidden : false
       });
       
       var videoURL = '/etc/black.mp3';
       
       var Video = Ti.Media.createVideoPlayer({
       	url : videoURL, //This is a URL to a streaming mp4 video file (or http live streaming video file on ios)
       	fullscreen : true,
       	autoplay : true,
       	backgroundColor : '#000',
       	mediaControlStyle : Ti.Media.VIDEO_CONTROL_DEFAULT,
       	scalingMode : Ti.Media.VIDEO_SCALING_ASPECT_FIT
       });
       
       win.add(Video);
       
       win.open();
       

    Step to reproduce

    Create a simple Ti mobile project

    Update app.js file to test code

    Change video URL

    Run on android emulator / device

  3. Ritu Agrawal 2014-01-02

    Moving this ticket to engineering for further evaluation. We have not been able to reproduce the issue but it is an intermittent issue with the timing and the reporter has pointed to the specific lines of Titanium Video View code causing the issue and potential fix.

JSON Source