Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6170391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:01:41+00:00 2026-05-23T23:01:41+00:00

I’m developing an app for iPad (using Titanium Appcelerator) that is designed to record

  • 0

I’m developing an app for iPad (using Titanium Appcelerator) that is designed to record and plays back multiple video files. At this point, I can record videos endlessly but when I to play them back, the app will crash, seemingly at random. For example: play video A, then video B, then C, then go back to A and the app crashes back to the home screen while in the middle of playback. Re-start the app and do the exact same thing, and it will be fine, and let me play another couple of videos, then crash when I go back to the list of videos. The crash logs often start with this:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x4650974c
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x33adbca4 0x33ad9000 + 11428
1   MediaPlayer                     0x354469d6 0x353d9000 + 448982
2   Foundation                      0x333dd7c6 0x3334d000 + 591814
3   CoreFoundation                  0x3712ea40 0x370b9000 + 481856
4   CoreFoundation                  0x37130ec4 0x370b9000 + 491204
5   CoreFoundation                  0x3713183e 0x370b9000 + 493630
6   CoreFoundation                  0x370c1ebc 0x370b9000 + 36540
7   CoreFoundation                  0x370c1dc4 0x370b9000 + 36292
8   GraphicsServices                0x36ffc418 0x36ff8000 + 17432
9   GraphicsServices                0x36ffc4c4 0x36ff8000 + 17604
10  UIKit                           0x35009d62 0x34fdb000 + 191842
11  UIKit                           0x35007800 0x34fdb000 + 182272
12  VideoRiver                      0x000042bc 0x1000 + 12988
13  VideoRiver                      0x00003b60 0x1000 + 11104
  • iOS SDK 4.3,
  • XCode 3.2.6,
  • Titanium SDK 1.7.1,
  • iPad 2, 32GB 3G,
  • iPad iOS 4.3.3
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:01:42+00:00Added an answer on May 23, 2026 at 11:01 pm

    I believe I’ve found a workaround. So far, no crashes under the same circumstances outlined in my question. The difference is that rather than creating a separate window for the video, I am putting the video player on a view, then hiding and showing it as needed. Here’s some code for Titanium Appcelerator that works:

    function Playback() {
    
        var self = this;
        this.activeMovie = null;
        this.baseView = null;
    
        this.create = function () {
    
            self.activeMovie = Ti.Media.createVideoPlayer({
                top: 0,
                left: 0,
                width: Ti.Platform.displayCaps.platformWidth,
                height: Ti.Platform.displayCaps.platformHeight,
                backgroundColor: '#111',
                movieControlStyle: Ti.Media.VIDEO_CONTROL_EMBEDDED,
                scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FIT
            });
    
            self.baseView = Ti.UI.createView({
                top: 0,
                left: 0,
                width: Ti.Platform.displayCaps.platformWidth,
                height: Ti.Platform.displayCaps.platformHeight
            });
    
            self.baseView.hide();
    
            self.doneBtn = Ti.UI.createButton({
                title: 'Done',
                color: '#fff',
                backgroundColor: 'blue',
                backgroundImage: 'none',
                bottom: '15%',
                width: 120,
                height: 40,
                font: {fontSize: 16,fontWeight: 'bold',fontFamily: 'Helvetica Neue'},
                borderRadius:5,
                borderWidth:1,
                borderColor:'#a6a6a6'
            });
    
            self.doneBtn.addEventListener('click', function () {
                self.hide();
            });
    
            self.activeMovie.addEventListener('playbackState', function (e) {
                //*** Hide the video window when done.  Comment out if you don't want to do this.
                if (e.playbackState == 0) {
                    self.hide();
                }
            });
    
            self.baseView.add(self.activeMovie);
            self.baseView.add(self.doneBtn);
    
        };
    
        Playback.prototype.getView = function () {
            return self.baseView;
        };
    
        Playback.prototype.show = function (filename) {
            self.activeMovie.url = Titanium.Filesystem.applicationDataDirectory + '/' + filename;
            self.baseView.show();
            self.activeMovie.play();
        };
    
        Playback.prototype.hide = function () {
            self.baseView.hide();
            self.activeMovie.stop();
        };
    
        this.create();
    }
    

    To use this, do the following:

    var player = new Playback();
    Titanium.UI.currentWindow.add(player.getView());
    player.show("mymovie.mov");
    

    Enjoy!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.