Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17671] Ti.Media.VideoPlayer toImage() returns black screen not the rendered video

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterBert Grantges
AssigneeUnknown
Created2014-09-10T14:16:59.000+0000
Updated2018-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

Comments

  1. Ingo Muschenetz 2014-09-10

    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 :)

  2. Bert Grantges 2014-09-10

    Ti SDK - 3.3.0GA Ti CLI - v3.3.0 iOS Simulator v7.1 Alloy - v1.4.1

JSON Source