Rocket.Chat.iOS icon indicating copy to clipboard operation
Rocket.Chat.iOS copied to clipboard

[BUG][INVESTIGATE] Mp4 video not working in iphone version

Open VinhNguyenDucThuy opened this issue 8 years ago • 16 comments

  • Device (or Simulator) you're running with: All device and simulator
  • I send record video to friend. Video not play in iphone. But it work in android.
  • Link video youtube work well. Video link: https://ica.hdtex.group/file-upload/Pe8QR8u7ACie6ouoo/4Ot4hGScy2kcz6u80Nrw.mp4?rc_uid=s23Hen62SKh9DuT4D&rc_token=LjoYV5AUXt-LPmtd2YCC2oQDLbDTG83bNK3FvaLfkly
  • Steps to reproduce: +Chosse friend to chat +Tap to button + and select record video +Record video and send to friend +Click to video but not working
  • Image in below:

img_0002 img_0003

VinhNguyenDucThuy avatar Oct 12 '18 01:10 VinhNguyenDucThuy

Hello, got the same error. Switiching to GridFS makes mp4 and mov Videos playable. If I switch to FileSystem the file is not played. It is uploaded without problems.

Revisor01 avatar Oct 23 '18 14:10 Revisor01

Closing the issue, looks like an issue not related to the client.

rafaelks avatar Nov 06 '18 22:11 rafaelks

Closing the issue, looks like an issue not related to the client. No. Client android working as well. But cant play in ios client.

VinhNguyenDucThuy avatar Nov 07 '18 01:11 VinhNguyenDucThuy

@VinhNguyenDucThuy Gotcha, OK, let's reopen then... can I have access to your server or some debugging/logging information about this attachments?

rafaelks avatar Nov 07 '18 11:11 rafaelks

I think MobilePlayerViewController not work : guard let videoURL = attachment.fullVideoURL() else { return } let controller = MobilePlayerViewController(contentURL: videoURL)

I try with youtube link -> is working let videoURL = URL.init(string: "https://www.youtube.com/watch?v=EFFfVjItjyo")

URL download video: https://ica.hdtex.group/file-upload/Pe8QR8u7ACie6ouoo/4Ot4hGScy2kcz6u80Nrw.mp4?rc_uid=s23Hen62SKh9DuT4D&rc_token=LjoYV5AUXt-LPmtd2YCC2oQDLbDTG83bNK3FvaLfkly

Info attachments log by debugging Xcode: Attachment { identifier = MuxUnLEDN3jueVgubhIiuabTLitnwN; collapsed = 0; text = (null); descriptionText = ; thumbURL = (null); color = (null); title = C49TeMcBJFkQv5WEZImm.mp4; titleLink = /file-upload/743PQLTqt7zMMhWzJ/C49TeMcBJFkQv5WEZImm.mp4; titleLinkDownload = 1; imageURL = (null); imageType = (null); imageSize = 0; audioURL = (null); audioType = (null); audioSize = 0; videoURL = /file-upload/743PQLTqt7zMMhWzJ/C49TeMcBJFkQv5WEZImm.mp4; videoType = (null); videoSize = 0; fields = List <0x6000010194d0> (

);

}

VinhNguyenDucThuy avatar Nov 08 '18 02:11 VinhNguyenDucThuy

That works for me... what's the iOS version you are running?

img_7553

rafaelks avatar Nov 08 '18 16:11 rafaelks

That works for me... what's the iOS version you are running? Thank you so much. I don't know real version RocketChat ios :). My iPhone is ios10 and ios12. My app has been customized. How to find the real version?

VinhNguyenDucThuy avatar Nov 09 '18 01:11 VinhNguyenDucThuy

@VinhNguyenDucThuy You can find it here: https://support.apple.com/en-us/HT201685.

What was customised in the app? Make sure you have the latest branch.

rafaelks avatar Nov 09 '18 08:11 rafaelks

@VinhNguyenDucThuy Were you able to get the info?

rafaelks avatar Nov 15 '18 14:11 rafaelks

Thank you so much. I will check out the latest branch and check again.

VinhNguyenDucThuy avatar Nov 16 '18 02:11 VinhNguyenDucThuy

@VinhNguyenDucThuy Do you have any feedbacks for this issue?

rafaelks avatar Nov 21 '18 12:11 rafaelks

I don't have any feedbacks. Please close issue :)

On Wed, Nov 21, 2018 at 7:43 PM Rafael Kellermann Streit < [email protected]> wrote:

@VinhNguyenDucThuy https://github.com/VinhNguyenDucThuy Do you have any feedbacks for this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat.iOS/issues/2248#issuecomment-440649583, or mute the thread https://github.com/notifications/unsubscribe-auth/Aaq-fdfHO_zub8-hWl40d-Mkw9tqvnGlks5uxUpmgaJpZM4XYox7 .

-- CONFIDENTIALITY NOTICE: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. The information contained within is confidential and protected from disclosure. Unauthorized viewing or disclosure of this information is neither permitted nor authorized. Thank you.

VinhNguyenDucThuy avatar Nov 21 '18 14:11 VinhNguyenDucThuy

Today, I use the newest version app IOS. But video still not working :). image image

VinhNguyenDucThuy avatar Dec 24 '18 03:12 VinhNguyenDucThuy

@VinhNguyenDucThuy I think this may be related to the URLs of your server... could you provide the URL to connect on the server, and the URL of the CDN? Also, what's the upload method you're using?

rafaelks avatar Dec 24 '18 07:12 rafaelks

I send record video to a friend. Video recode by function in app Roketchat ios :) Video link: https://ica.hdtex.group/file-upload/Pe8QR8u7ACie6ouoo/4Ot4hGScy2kcz6u80Nrw.mp4?rc_uid=s23Hen62SKh9DuT4D&rc_token=LjoYV5AUXt-LPmtd2YCC2oQDLbDTG83bNK3FvaLfkly

VinhNguyenDucThuy avatar Dec 24 '18 08:12 VinhNguyenDucThuy

I too have problems with mp4 videos. Device: iPhone 7 and 8 - iOs 12.1.2 RocketChat iOs 3.3.0 (233) - AppStore Version had the same problem Server Version 0.73.1 - GridFS for uploaded files

When I try to play a video uploaded by someone else the app crashes. I have downloaded the video on desktop and uploaded in another channel. This self-uploaded video plays - but lags with about 2 fps. This happens to other self-uploaded .mp4 videos as well.

I have tried to log the crash in Console. Here are the last 3 Errors when crashing:

  • Springboard(KeyboardArbiter): HW kbd: Failed to set (null) as keyboard focus
  • assertiond: [Rocket.Chat:11372] SyscallError: setpriority(PRIO_DARWIN_ROLE, 11372, 3): No such process
  • symtomsd (SymptomEvaluator):
Can't get most elevated app state from dictionary {
    BKSApplicationStateExtensionKey = 0;
    SBApplicationStateDisplayIDKey = "chat.rocket.ios";
    SBApplicationStateKey = 0;
    SBApplicationStateProcessIDKey = 11372;
    SBApplicationStateRunningReasonsKey =     (
                {
            SBApplicationStateRunningReasonAssertionIdentifierKey = Resume;
            SBApplicationStateRunningReasonAssertionReasonKey = 10000;
        }
    );
}

If I try to open the same video in RocketChat Experimental a Webview loads with nothing but grey background. The same url on desktop Safari downloads the video.

Edit: I have tried to replicate the crash in Simulator. I'm a complete newbie in this but maybe it helps: a breakpoint was set in FLEXKeyboardShortcutManager.m > + (void) load > line 175 ((void(*)(id, SEL, id))objc_msgSend)(slf, swizzledSendEventSelector, event);

Edit: My bug seems to be different to this since my app crashes so I have opened a seperate issue: #2487

farmio avatar Jan 09 '19 21:01 farmio