[TIMOB-27424] Android: Video player splashing black screen just before playing video
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2019-10-21T18:10:19.000+0000 |
Affected Version/s | Release 8.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | ACF, android-8, videoplayer |
Reporter | Jebun Naher |
Assignee | Unknown |
Created | 2019-09-27T12:27:05.000+0000 |
Updated | 2019-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
File | Date | Size |
---|---|---|
black_screen _issue.mp4 | 2019-09-27T12:19:33.000+0000 | 1871264 |
test.mp4 | 2019-09-27T12:11:36.000+0000 | 4642228 |
No comments