Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28273] iOS: Unable to see MP4 videos on iPhone 11

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 9.0.0, Release 9.3.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSamir Mohammed
AssigneeUnknown
Created2020-12-04T15:25:03.000+0000
Updated2020-12-07T22:18:08.000+0000

Description

When playing an mp4 video with the following test case on devices (iphone 11) the video is not visible but the sound can be heard. On sims the video is playable.
var win = Ti.UI.createWindow({
    backgroundColor: '#fff'
});

win.add(Ti.UI.createLabel({
    text: '1. Let movie play through, then 2. press Play again', textAlign: 'center',
    color: '#000',
    height: 100, top: 0
}));

var video = Ti.Media.createVideoPlayer({
    url: '/movie.mp4',
    backgroundColor: '#111',
    movieControlMode: Ti.Media.VIDEO_CONTROL_DEFAULT,
    top: 100, bottom: 100,
    autoplay: true
});
win.add(video);

var stop = Ti.UI.createButton({
    title: '3. Press me to try to stop video',
    height: 100, bottom: 0
});
stop.addEventListener('click', function (evt) {
    video.stop();
});
win.add(stop);

win.open();

Attachments

FileDateSize
movie.mp42020-12-04T15:25:01.000+00002549211

Comments

  1. Vijay Singh 2020-12-07

    [~smohammed] I tried on iPhone 11 (14.2), 9.3.0 Xcode 12.2. It is working fine. I can see video as well. I am not sure if it is issue with your environment, may be Xcode beta issue. [~lchoudhary] [~ssekhri] Can you try at your end?
  2. Lokesh Choudhary 2020-12-07

    [~vijaysingh], I don't have iphone 11 but was not able to reproduce it on the iphone 7 (14.2) which I have with 9.3.0 RC & xcode 12.2. I also tried on iphone11 sim.

JSON Source