Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27424] Android: Video player splashing black screen just before playing video

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusResolved
ResolutionNot Our Bug
Resolution Date2019-10-21T18:10:19.000+0000
Affected Version/sRelease 8.2.0
Fix Version/sn/a
ComponentsAndroid
LabelsACF, android-8, videoplayer
ReporterJebun Naher
AssigneeUnknown
Created2019-09-27T12:27:05.000+0000
Updated2019-12-02T23:06:33.000+0000

Description

*Issue Description:* When trying to play video in video player, it shows a black screen just before playing video using Ti SDK 8.2.0 on android 8 and 8.1.0 *Steps to reproduce:* 1. Create an alloy project and replace the code 2. Download "test.mp4" video file from the attachment and place that in app/assets/android/video folder. 2. Build the project and observe it'll show a black screen before playing the video. *Expected:* Shouldn't show any black screen before playing the video. *Actual:* Shows a black screen before playing the video. *Attachment:* See the screencast "black_screen_issue.mp4" *Test Code:* *index.xml:*
<Alloy>  
</Alloy>
*index.js*
var vidWin = Titanium.UI.createWindow({
    title : 'Video View Demo',
    backgroundColor : '#fff'
});

var videoPlayer = Titanium.Media.createVideoPlayer({
    top : 2,
    autoplay : true,
    backgroundColor : 'blue',
    //height : 300,
    //width : 300,
     height: Titanium.UI.SIZE,
     width: Titanium.UI.FILL,
    mediaControlStyle : Titanium.Media.VIDEO_CONTROL_NONE,
    scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT
});

videoPlayer.url = '/video/test.mp4';
vidWin.add(videoPlayer);
vidWin.open();

Attachments

FileDateSize
black_screen _issue.mp42019-09-27T12:19:33.000+00001871264
test.mp42019-09-27T12:11:36.000+00004642228

Comments

No comments

JSON Source