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

nativescript-videoplayer not working on Android #72

Closed
conekeo opened this issue May 12, 2017 · 9 comments
Closed

nativescript-videoplayer not working on Android #72

conekeo opened this issue May 12, 2017 · 9 comments

Comments

@conekeo
Copy link

conekeo commented May 12, 2017

Hi,
using "nativescript-videoplayer": "^3.0.3",
I got a weird bug, the plugin is working on IOS emulator, but nothing appear on Android (I'm using android genimotion emulator)

<VideoPlayer
      src="https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
      autoplay="true" 
      height="300"></VideoPlayer>

in the console I see:

JS: Openvideo https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4

any idea, did I missed an android setting?

Chuck

@bradmartin
Copy link
Collaborator

Can you share a screenshot of what you see? Since you have autoplay=true it should start the video. I haven't been involved much with NS 3+ yet and @bnussey has been doing the upgrade to 3.0 for this plugin - maybe he has some insight. Thanks for reporting your issue 😄

@conekeo
Copy link
Author

conekeo commented May 12, 2017

I have no screenshot for Android because the space is blank/empty where I put the directive and I don't hear sound.

@conekeo
Copy link
Author

conekeo commented May 12, 2017

Update: When I try a local video it's working, but not remote file!

WORKING!
 <VideoPlayer
        src="~/videos/big_buck_bunny.mp4"
        autoplay="true" 
        height="250">
      </VideoPlayer>

@bradmartin
Copy link
Collaborator

That should help narrow down the cause, thanks for confirming local videos work.

@rialdi
Copy link

rialdi commented May 15, 2017

Hi @bradmartin

I have the same issue here and i cannot play local videos either.
The plugin is working on iOS device but not working on Android Version 4.4.2

@3rror404
Copy link

Same problem here. Neither local or remote files play on Android. Just an empty space and Open video ... in the console.

{N} : 3.0.3
nativescript-videoplayer : 3.0.7
Android : 6.0.1 

@bradmartin
Copy link
Collaborator

Just cleaned up the demo project - about to push some small changes but everything works on my phone (Android 7.1) geny emulator with 4.4, 5.1, 6.0, and 7+

Might be something locally in your projects, causing an issue. Does anyone have a sample repo to look at?

video demo

@3rror404
Copy link

3rror404 commented Jun 13, 2017

Hi @bradmartin,

here is a demo project using the latest plugin version: https://github.com/3rror404/NVideoPlayerIssue72

Some screenshots of what I see on iOS and Android below. If the empty space is tapped in main-page.xml, the video controls will appear. Tap play and the video will appear. This doesn't work in the modal page.

Edit: It appears that when used in a modal, tapping the empty space displays the controls behind the modal as described here: #52 (comment). But the video is not displayed.

screenshot_20170613-102626
simulator screen shot 13 jun 2017 10 26 33

@debargho24-AI
Copy link

https://github.com/debargho24-AI/ng-ns-video-player -- Check out this link, it may solve the issue.

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

No branches or pull requests

5 participants