Giter VIP home page Giter VIP logo

reactmusic's Introduction

reactmusic's People

Contributors

aakashns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reactmusic's Issues

E/ExoPlayerImplInternal: Internal runtime error. java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1 not working in android device

in ios device working well but coming to android its getting this error


E/ExoPlayerImplInternal: Internal runtime error.
    java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
        at com.google.android.exoplayer2.source.TrackGroupArray.get(TrackGroupArray.java:65)
        at com.google.android.exoplayer2.trackselection.DefaultTrackSelector.selectTracks(DefaultTrackSelector.java:1264)
        at com.google.android.exoplayer2.trackselection.MappingTrackSelector.selectTracks(MappingTrackSelector.java:394)
        at com.google.android.exoplayer2.MediaPeriodHolder.selectTracks(MediaPeriodHolder.java:160)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.reselectTracksInternal(ExoPlayerImplInternal.java:1001)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:327)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:164)
        at android.os.HandlerThread.run(HandlerThread.java:65)

ReactMusic + react-native-slider code issue in seekbar.js @line 42/43

Hello Aakash,

THank you for putting together a well thought out react-native project. I know this is slightly old since the last issue update, but if this is still actively maintained. I do have an issue with the react-native-slider and <slider tag in the seekbar.js code segment. Specifically the error message copied from the react-native log window that comes up during "react-native run-android" command which did load the code into the android emulator, but fails due to the following message:
To reload the app press "r"
To open developer menu press "d"

[Tue Aug 18 2020 23:02:03.493] BUNDLE ./index.android.js

[Tue Aug 18 2020 23:02:11.342] LOG Running "ReactMusic" with {"rootTag":1}
[Tue Aug 18 2020 23:02:11.345] ERROR Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check your code at SeekBar.js:43.
in SeekBar (at Player.js:104)
in RCTView (at View.js:34)
in View (at Player.js:99)
in Player (at App.js:27)
in App (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)
[Tue Aug 18 2020 23:02:11.346] ERROR Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check the render method of SeekBar.

This error is loca

After doing some investigation, it appears to have something with the neweer version of the react-native-slider vers 0.11 compared to your version you used as 0.7.+ and in conjunction to the different version fo react-native I am using (current). Please find the package.json contents below for reference between the one you have and the one I have:
"name": "ReactMusic",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "16.13.1",
"react-native": "0.63.2",
"react-native-slider": "^0.11.0",
"react-native-video": "^5.1.0-alpha7"
},
"devDependencies": {
"@babel/core": "7.11.1",
"@babel/runtime": "7.11.2",
"@react-native-community/eslint-config": "1.1.0",
"babel-jest": "25.5.1",
"eslint": "6.8.0",
"jest": "25.5.4",
"metro-react-native-babel-preset": "0.59.0",
"react-test-renderer": "16.13.1"
},

Any advice on fixing this issue? I suspect I may have a similar elsewhere like the react-native-video if this is related to the versions between react-native and the added packages. Thank you again in advance for taking a look at the issue in advance.

Android its not playing(not working).

android version i tap the play button given by uri(working media file in server) it not playing & no sound.

plz help me how can i solve my issue ?

React native video

I can run the code, using your tutorial, but the lib react native video doesn't work for me when i using .mp3 local file, can you help me?

Error seekBar

image

Hi, I am using expo. But, to run my file well I am following every single steps and also I copying the codes one at a time means creating file and copying after I understand properly. But, this error is making me confused. Please help!

TypeError: require(...).tmpDir is not a function

ReactMusic/node_modules/node-haste/lib/Cache/index.js:22
var tmpDir = require('os').tmpDir();

^

TypeError: require(...).tmpDir is not a function
at Object. (/home/robo/reactNative/ReactMusic/node_modules/node-haste/lib/Cache/index.js:22:28)
at Module._compile (internal/modules/cjs/loader.js:1075:30)
at Module._extensions..js (internal/modules/cjs/loader.js:1096:10)
at Object.require.extensions. [as .js] (/home/robo/reactNative/ReactMusic/node_modules/babel-register/lib/node.js:152:7)
at Module.load (internal/modules/cjs/loader.js:940:32)
at Function.Module._load (internal/modules/cjs/loader.js:781:14)
at Module.require (internal/modules/cjs/loader.js:964:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/home/robo/reactNative/ReactMusic/node_modules/node-haste/lib/index.js:15:13)
at Module._compile (internal/modules/cjs/loader.js:1075:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node node_modules/react-native/local-cli/cli.js start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/robo/.npm/_logs/2020-12-30T06_05_26_867Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.