[AC-5592] Android: Videoplayer restart the video if the app is put to background.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2018-03-09T21:04:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Titanium SDK & CLI |
Labels | n/a |
Reporter | shumne |
Assignee | Shak Hossain |
Created | 2018-02-12T09:00:23.000+0000 |
Updated | 2018-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.
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.
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.
It was expected to me that the video should start where I left it and not from the initial playback time.
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.
[~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.
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
[~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!
Hi, Yes, it is working on Android 7 and 8 not sure why it is taking a lot of time on Marshmello!