Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 7.0.0+ : Long local video file stuck after first few frames #141

Closed
dhaval-patel opened this issue Aug 5, 2018 · 5 comments · Fixed by #298
Closed

Android 7.0.0+ : Long local video file stuck after first few frames #141

dhaval-patel opened this issue Aug 5, 2018 · 5 comments · Fixed by #298
Labels

Comments

@dhaval-patel
Copy link

Hello,

I have some mp4 stored locally which I am using in video tag. If video file length is small (few seconds), then it is working just fine but if length is long then it stuck after first few frames.

Weird part is, It's working fine on 7.0.0 but not on 7.0.0+. (I have tested on 7.1.1 and 8.0. It freezes after few seconds).

Without this plugin installed, everything works just fine.

Ionic Info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0
Gulp CLI              : CLI version 3.9.1 Local version 3.9.1

local packages:

@ionic/app-scripts : 3.1.11
Cordova Platforms  : android 7.1.1 ios 4.5.5
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2
ios-sim           : 5.0.4
Node              : v6.9.1
npm               : 3.10.8
OS                : macOS High Sierra
Xcode             : Xcode 9.4.1 Build version 9F2000

Environment Variables:

ANDROID_HOME : /usr/local/opt/android-sdk

Misc:

backend : pro

Help is needed urgently, thanks.

@ghenry22
Copy link
Contributor

@dhaval-patel can you try the latest version of the plugin and see if it works now? I believe this was related to content-length headers not being set by the web server.

Are you seeing the problem on ios as well or only on Android?

@dhaval-patel
Copy link
Author

@ghenry22 i tried with latest version v2.2.0 and still not working on android.

on iOS, it is working fine from v2.1.3.

@ronaldborla
Copy link

any updates for this? has this been resolved?

@jcesarmobile
Copy link
Member

Can you try with this changes? #295

jcesarmobile added a commit to jcesarmobile/cordova-plugin-ionic-webview that referenced this issue Feb 4, 2019
Properly handle requests with Range header and return appropriate headers so audio and video tags
work correcly and you can go forward or backward ond them

fix ionic-team#248, fix ionic-team#205, fix ionic-team#141
jcesarmobile added a commit that referenced this issue Feb 4, 2019
)

Properly handle requests with Range header and return appropriate headers so audio and video tags
work correcly and you can go forward or backward ond them

fix #248, fix #205, fix #141
Ionitron added a commit that referenced this issue Feb 4, 2019
## [3.1.2](v3.1.1...v3.1.2) (2019-02-04)

### Bug Fixes

* **Android:** Handle Range Requests for proper media file handling ([#298](#298)) ([6f18248](6f18248)), closes [#248](#248) [#205](#205) [#141](#141)
@Ionitron
Copy link
Collaborator

Ionitron commented Feb 4, 2019

🎉 This issue has been resolved in version 3.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants