[TIMOB-17671] Ti.Media.VideoPlayer toImage() returns black screen not the rendered video
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Bert Grantges |
Assignee | Unknown |
Created | 2014-09-10T14:16:59.000+0000 |
Updated | 2018-02-28T20:03:32.000+0000 |
Description
When using the toImage() function on a video, you will notice that the video current view of the video is not returned. Instead only a black window. This happens if the video is currently playing OR if the video is paused. In the event that controls are enabled, you will see the controls, but not the video.
Steps to reproduce:
1. Create a new Mobile App Project
2. In the
index.xml
- add the following to the window object
<VideoPlayer id="videoPlayer" url="myVideo.mov" />
3. in the index.js
add the following code:
setTimeout(function(){
$.videoPlayer.pause();
var img = Ti.UI.createImageView({
image: $.videoPlayer.toImage(),
height: Ti.UI.FILL,
width: Ti.UI.SIZE
});
$.index.add(img);
}, 2000);
Notice that the image captured does not show the rendered video, but only a black screen
Expectation
Image should include the rendered video
Hi All, I need a bit more information here:
Platform
Titanium SDK, CLI, Studio, Alloy versions, device/simulator being targeted
This should be a bug :)
Ti SDK - 3.3.0GA Ti CLI - v3.3.0 iOS Simulator v7.1 Alloy - v1.4.1