Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13746] Android: Controls does not show on start of Ti.Media.VideoPlayer when playing MP3.

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2013-09-11T00:21:07.000+0000
Affected Version/sRelease 2.1.4, Release 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, controls, mp3, videoplayer
ReporterMeenakshi Pathak
AssigneeBiju pm
Created2013-05-02T12:05:53.000+0000
Updated2017-03-22T20:55:33.000+0000

Description

The default behavior of TI.Media.VideoPlayer on Android shows no control on start. Users have to click the video to bring up the control. Here is a test case:
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,
    mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
    scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT
});

videoPlayer.url = 'clipcanvas_14348_H264_640x360.mp3';
vidWin.add(videoPlayer);
vidWin.open();
Note: This behavior is noticed only when playing MP3 files.

Comments

  1. Biju pm 2013-08-01

    PR :- https://github.com/appcelerator/titanium_mobile/pull/4522
  2. Hieu Pham 2013-09-11

    I'm not so sure if this is a "bug". There's nothing in the documentation and based on current implementation, the behavior is by design.
  3. Nurul Islam 2014-08-12

    I am having this problem right now. In my case, controls (seek bar) does not show and a black screen appear on start of Ti.Media.VideoPlayer. I want to get rid of that black screen.
  4. Lee Morris 2017-03-22

    Closing ticket as invalid with reference to the above comments.

JSON Source