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

ReadMe issues with Android Setup #1

Closed
Benmidi opened this issue Jun 8, 2016 · 5 comments
Closed

ReadMe issues with Android Setup #1

Benmidi opened this issue Jun 8, 2016 · 5 comments

Comments

@Benmidi
Copy link

Benmidi commented Jun 8, 2016

The path to project is set to your User, here's a dynamic/relative path:
include ':react-native-media-kit' project(':react-native-media-kit').projectDir = new File('../node_modules/react-native-media-kit/android')

Also, in MainActivity, you need to import the package:
import com.yoai.reactnative.media.MediaKitPackage;

I'm having trouble getting videos to play on Android... but I'm still trying to figure that out.

@ldn0x7dc
Copy link
Owner

ldn0x7dc commented Jun 8, 2016

@Benmidi Thanks!
The path issue is a big stupid mistake I've made. I'll update the README asap.
And I'll add the import line.

@ldn0x7dc
Copy link
Owner

ldn0x7dc commented Jun 8, 2016

@Benmidi
So what's your trouble playing videos on Android? I'm willing to help~

@Benmidi
Copy link
Author

Benmidi commented Jun 8, 2016

Thanks. I've hit two issues.

The player/controls etc. show up but it never gets past the loader, here's the url I'm using: http://www.refinery29.com/file/705/glitter-lips-edit.mp4

Also, I haven't figured out how to load local videos on iOS?
(the remote url above does work on iOS however)

Thanks for the help!

@ldn0x7dc
Copy link
Owner

ldn0x7dc commented Jun 9, 2016

@Benmidi

  1. I've reproduced the problem using an android 4.1.1 Genymotion emulator. The Android player should have encountered some decode error like E/ACodec: [OMX.google.h264.decoder] ERROR(0x80001001) in the background and we are not handling it yet. The error could be like this one since we use ExoPlayer. I'll dig into it later.
  2. Local videos are not supported yet but we put this function as a top priority in next releases.

Could you please post your android device here?Is it an emulator or a physical device?In my case, the Genymotion emulator does bad in playing videos but a physical device does well.

@ldn0x7dc ldn0x7dc closed this as completed Jul 5, 2016
@keyurparalkar
Copy link

I am unable to install the package it get stuck at npm

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

3 participants