Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3036] After video player receives "complete" event it can no longer (re)play the video

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-01-01T21:39:35.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsipad, iphone, tab, tabGroup, tabbar, tabbarhidden, videoplayer
ReporterDmitry K
AssigneeShak Hossain
Created2012-07-18T23:49:48.000+0000
Updated2016-03-08T07:48:04.000+0000

Description

I have an app with tabs and navigation bar, which display a video window. this video window embeds videoplayer and some buttons which I am displaying on top of video). after videoplayer receives "complete" event it gets corrupted and can no longer replay the same video using embedded video control. only audio can be heard but the videoplayer is black i am opening into this window with: tabGroup.activeTab.open(...) the window contains the following 2 elements: win.add(moviePlayer); win.add(bottomBarContainer); the navigation bar is visible but the tabbar is hidden in this window the entire time

Comments

  1. Davide Cassenti 2012-07-31

    Hello, Can you please post a sample code to test? Thank you
  2. Davide Cassenti 2012-08-31

    Need more info to replicate
  3. Mostafizur Rahman 2013-12-12

    Hello, I tested this issue with the test code below. I can’t reproduce this issue in Ti SDK 3.2.0.v20131209192649. It is most likely fixed. Please install the latest SDK and test your app. If you continue to get error, please send us a test case with steps to reproduce.

    Testing Environment:

    Ti CLI 3.2.0-cr3 Titanium SDK: 3.2.0.v20131209192649 IOS Simulator 7.0

    Test Code

    app.js
        var tabGroup = Titanium.UI.createTabGroup();
       
       var win1 = Titanium.UI.createWindow({
       	title : 'Tab 1',
       	backgroundColor : '#fff'
       });
       
       var tab1 = Titanium.UI.createTab({
       	icon : 'KS_nav_views.png',
       	title : 'Tab 1',
       	window : win1
       });
       
       var Press = Ti.UI.createButton({
       	title : 'Press',
       	color : 'white'
       
       });
       
       win1.add(Press);
       
       var win = Titanium.UI.createWindow({
       	title : 'Tab 1',
       	backgroundColor : '#fff'
       });
       
       Press.addEventListener('click', function() {
       	tabGroup.activeTab.open(win);
       
       });
       
       var videoPlayer = Titanium.Media.createVideoPlayer({
       	top : 50,
       	url : '/etc/Mat.mp4',
       	autoplay : true,
       	height : 300,
       	width : 300,
       	mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
       	scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT
       });
       
       videoPlayer.addEventListener('complete', function() {
       	Ti.API.info('complete');
       });
       
       win.add(videoPlayer);
       
       var close = Ti.UI.createButton({
       	title : 'close',
       	top : '10',
       
       });
       
       close.addEventListener('click', function() {
       	tabGroup.activeTab.close(win);
       
       });
       
       tabGroup.addTab(tab1);
       tabGroup.open();
       
       
       

    Steps to Test

    Create a new project

    Update app.js file

    And run this project with testing environment

    Click on Press Button, it’s open new window with video player

    Click one replay button after end of video

    Then you will see video start play again

    Thanks
  4. Ritu Agrawal 2014-01-01

    We cannot reproduce this issue with 3.2.0 GA release.
  5. Shak Hossain 2014-01-03

    Closing since the issue can't be reproduced in 3.2GA and a functional sample has been posted.

JSON Source