RocketChat / Rocket.Chat.Cordova

Rocket.Chat Cross-Platform Mobile Application via Cordova (DEPRECATED)
MIT License
104 stars 109 forks source link

Video upload in the chat #124

Open maxlinux2000 opened 7 years ago

maxlinux2000 commented 7 years ago

I found a bug attaching video (mp4) to RC from mobile with RocketChat.cordova.

Step to reproduce:

  1. press the clip and select the camera
  2. record some seconds of video then press stop an confirm the upload.

Result: a. in the preview window I can't see the video b. Pressing OK the mp4 video will be uploaded, but in the chat I can see only a black box and I can't reproduce it.

Now open RC in a browser in a PC (I used Chrome and Firefox) and Chrome from android Result: I can see and reproduce the video just uploaded from the movile app.

my conf: Private RC server version 0.36.0 Rocket.chat.cordova just downloaded (where I can see the real version?)

Idea: as we can see the videos in chrome we should see same video in the app, but I think that cordova-crosswalk-webview plugin, interfere in the process. I think that RC, it need a lot of power because is complex app, and therefore requires a no older than 2 years mobile, and therefore having at least Android 4.4. If we cut off the Android to previous to 4.4, we can use the google webview instead crosswalk.

As a side effect, the size of the app, is reduced from 26MB to around 3-4MB.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

maxlinux2000 commented 7 years ago

video still no working without crosswalk-webview :-1:

flaviogrossi commented 7 years ago

see this one https://github.com/RocketChat/Rocket.Chat/pull/4240

It should solve your problem

maxlinux2000 commented 7 years ago

Tnx Flavio, but I need to know how to apply your patch in the code. The I'm using Ubuntu 16.04