Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5592] Android: Videoplayer restart the video if the app is put to background.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-03-09T21:04:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
Labelsn/a
Reportershumne
AssigneeShak Hossain
Created2018-02-12T09:00:23.000+0000
Updated2018-03-13T08:48:25.000+0000

Description

Android: With the given example in the Documentation. If we start the Video in the Video player and put the app in the background. and then again open the app the Video is starting from the initial time. This is unexpected.

Comments

  1. Sharif AbuDarda 2018-02-12

    Hello [~shumne], Thanks for sharing with us. Can you please update your environment and test again. It would be better if you can attach reproducible test code. Also, provide detail affected environment. Thanks.
  2. shumne 2018-02-13

    Hi Please find the test code below. var win = Titanium.UI.createWindow({ title : 'Test', backgroundColor : '#fff', exitOnClose : true }); var contentURL = "/www.exapmle.com/video.mp4"; var activeMovie = Titanium.Media.createVideoPlayer({ height:"400dp", width:Ti.UI.SIZE, url : contentURL, backgroundColor : 'blue', mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT, scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT, // fullscreen : true, autoplay : true }); win.add(activeMovie); win.open(); Once you run the app the video will start at that time put the app in background for some second and launch it again. Affected Environment: Ti SDK 6.3.0.GA Appc Studio 4.10 CLI 6.3.0 Android Marshmello 6.0.1 Please let me know if you need more details.
  3. shumne 2018-02-13

    It was expected to me that the video should start where I left it and not from the initial playback time.
  4. Sharif AbuDarda 2018-02-13

    Hello, Is this only happening for Android Marshmello 6.0? I tested the issue with Android 8.0 with SDK 7.0.1.GA, and I see the video resumes from last play time. But I see that it's takes 4-5 seconds to playback. Can you test on some higher Android version? Thanks.
  5. Mostafizur Rahman 2018-02-20

    [~shumne], I just wanted to follow up with you about this issue.Did you manage to test some higher Android version? Please let us know if you need more help with this issue.
  6. Mostafizur Rahman 2018-02-26

    Hello [~shumne],
Just passing a followup here.Are you able to get that sorted out?  Please let us know if you need more help with this issue. Regards
 Axway Appcelerator Support
  7. Mostafizur Rahman 2018-03-08

    [~shumne],
I just wanted to follow up here. Did you manage to follow the instructions provided earlier? Let us know if you still experience any issue. We would be happy to assist you. Best Regards!
  8. shumne 2018-03-13

    Hi, Yes, it is working on Android 7 and 8 not sure why it is taking a lot of time on Marshmello!

JSON Source