Giter Site home page Giter Site logo

Spinner is not getting disappear and pause button not converted to play button after finishing music play in android. about ionic-audio HOT 33 CLOSED

arielfaur avatar arielfaur commented on May 13, 2024
Spinner is not getting disappear and pause button not converted to play button after finishing music play in android.

from ionic-audio.

Comments (33)

mrbankim avatar mrbankim commented on May 13, 2024

Hi Arelfaur,

Issue with Android.
Spinner is not getting disappear and pause button not converted to play button after finishing music play in android device and emulator both. While playing the music pause button also not working.

Can you please give any pointer on this.

I am struggling a lot to resolve this. Can anyone please help me on this?

Thanks.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

Hi,

May be the issue is due to bellow console output. But I am not sure. I have update android to 5.0.0. Still the same issue.

["Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev"]

Bankims-MacBook-Pro:myAudio bankimdebnath$ sudo ionic plugin add cordova-plugin-media
Updated the hooks directory to have execute permissions
Fetching plugin "cordova-plugin-media" via npm
Installing "cordova-plugin-media" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-media' for android
Plugin "cordova-plugin-media" already installed on ios.
Saving plugin to package.json file

Can you please look into this? I am struggling a lot to resolve this. Can anyone help me on this?

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

@mrbankim sorry it took me long to reply. I am really busy these weeks. This type of issue has been reported a few times. In general, this is related to some missing/corrupt files in your project. I see you have permission issues with your project. I don't think you should run ionic with sudo. Maybe some OSX expert can comment on this but I would start with a fresh project, install Media plugin (without sudo) and check if it works.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

But the same is working fine for iPhone.

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

Can you open your device console while the app is running and see if there are any errors logged?

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

No, there is no any error logs. :(

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

Try removing the platform and adding it again. Has worked in the past to solve some inconsistencies.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

several times I have created fresh projects but all the times it is same. since three days I am trying the same in different ways.. :) But for iOS it is working as we expected..

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

I am rereading your logs. It seems you need to update your cordova version. Run cordova -version
On my computer I get: 5.1.1

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

For me: cordova -version
5.4.1
Bankims-MacBook-Pro:myAudio bankimdebnath$

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

See the log .. I have removed and add it again. now getting this err log.

Installing "cordova-plugin-media" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-media' for android

Earlier also I got this then I updated the android versions.

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

What happens if you run cordova platform update android

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

No, nothing happen.. after update i ran this.. see the log below. But if i run "cordova platform update [email protected]" then it i am not getting below error log.

ionic plugin add cordova-plugin-media
Fetching plugin "cordova-plugin-media" via npm
Installing "cordova-plugin-media" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 4.1.1, failed version requirement: >=5.0.0-dev
Skipping 'cordova-plugin-media' for android
Plugin "cordova-plugin-media" already installed on ios.
Saving plugin to package.json file
Bankims-MacBook-Pro:myAudio bankimdebnath$

After run "cordova platform update [email protected]" there is no error log. But still the issue is there. That i tested several times.

ionic plugin add cordova-plugin-media
Updated the hooks directory to have execute permissions
Fetching plugin "cordova-plugin-media" via npm
Installing "cordova-plugin-media" for android
Dependent plugin "cordova-plugin-file" already installed on android.
Plugin "cordova-plugin-media" already installed on ios.
Saving plugin to package.json file
Bankims-MacBook-Pro:myAudio bankimdebnath$

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

How are you using the module? Maybe a code sample from your controller to see if there's anything there.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

I downloaded the code from github and then added cordova-plugin-media, and add the platform thats it.. But for iOS there is no issues except the known issues. :)

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

What do you mean?

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

I just downloaded the code sample from your repository and ran it after adding "cordova-plugin-media" and "bower install ionic-audio".

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

Thanks for your time. Please have a look into this once you will get time. :) Thanks again..

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

Hi @arielfaur

This is really a genuine issue. I have deployed the same in windows system and ran there also same issue (Spinner is not getting disappear and pause button not converted to play button after finishing music play in android). As you told me that may be problem with sudo i used in mac but for windows also I am getting the same issue. Please have a look into this, other wise this module is use less. No one can use this. I been wondering it should be noticed who are tested it on android but no one has posted anything about this issue. :(

from ionic-audio.

joelelangovan1985 avatar joelelangovan1985 commented on May 13, 2024

+1

from ionic-audio.

joelelangovan1985 avatar joelelangovan1985 commented on May 13, 2024

Installed Perfectly on another app, which i created 15 days ago, but now its not working in my new project. Here is my controller
`app.controller("ExampleController", function ($scope) {

$scope.track = {
url: 'http://k003.kiwi6.com/hotlink/cay8j82ed1/Introduction_to_Romans_-_Tamil_message.mp3',
artist: 'Somebody',
title: 'Song name',
art: 'img/album_art.jpg'
}

});
`
and here is my index file :

<ion-content ng-controller="ExampleController"> <ion-audio-track track="track"> <div class="list list-inset"> <div class="item item-thumbnail-left"> <img src="{{track.art}}"> <h2>{{track.title}}</h2> <p>{{track.artist}}</p> <ion-audio-controls> <a class="button button-icon icon" ion-audio-play></a> <ion-spinner icon="ios"></ion-spinner> </ion-audio-controls> </div> <div class="item"> <ion-audio-progress-bar display-time></ion-audio-progress-bar> </div> </div> </ion-audio-track> </ion-content>

When you click on play, song starts playing but the spinner keeps on spinning and the pause button no longer works,
here is my console error which i get :
capture

Thank you very much, i am working on a project which needs this plugin very much, would be great if you could fix this problem.

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

@joelelangovan1985 do you see any errors in the javascript (web) console?

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

@mrbankim I cannot reproduce the problem on any of my devices so there is nothing I can do. It seems you're also the only one having this issue. Maybe you can send me your APK file, or you can upload the project somewhere.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

Hi, Thanks for your reply.

I think @joelelangovan1985 also facing same problem. Anyway I am sending you the apk file. Please have a look on this. Please give your email id so i can send it to you.

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

Send it to [email protected]

Make sure it is compiled in debug mode.

On Thu, Feb 4, 2016 at 7:21 AM, mrbankim [email protected] wrote:

Hi, Thanks for your reply.

I think @joelelangovan1985 https://github.com/joelelangovan1985 also
facing same problem. Anyway I am sending you the apk file. Please have a
look on this. Please give your email id so i can send it to you.


Reply to this email directly or view it on GitHub
#37 (comment)
.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

I sent it to you. Please have a look and let me know.

from ionic-audio.

joelelangovan1985 avatar joelelangovan1985 commented on May 13, 2024

@arielfaur I don't get any errors in my web console. I am sending you the project folder, so you can have a look, its just your example-audio folder with platform added and apk built. I am sending you the apk file.

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

I think I have found the cause. It seems that both of you are using a newer version of cordova-plugin-media that doesn't seem to be compatible with the current cordova-android version.
To fix this do:

cordova plugin rm cordova-plugin-media

cordova plugin add [email protected]

Then build your project as usual. Let me know if this fixes the issue.

from ionic-audio.

joelelangovan1985 avatar joelelangovan1985 commented on May 13, 2024

Thank you so much ! Works Perfectly,

On Thu, Feb 4, 2016 at 7:42 PM, arielfaur [email protected] wrote:

I think I have found the cause. It seems that both of you are using a
newer version of cordova-plugin-media that doesn't seem to be compatible
with the current cordova-android version.
To fix this do:

cordova plugin rm cordova-plugin-media

cordova plugin add [email protected]

Then build your project as usual. Let me know if this fixes the issue.


Reply to this email directly or view it on GitHub
#37 (comment)
.

from ionic-audio.

joelelangovan1985 avatar joelelangovan1985 commented on May 13, 2024

is it possible to play when app is in background , like native audio player, Showing progress of the song in the status bar, is it possible in cordova ? Would be great to get your advice.

from ionic-audio.

arielfaur avatar arielfaur commented on May 13, 2024

It does play in the background if you switch apps. Showing a notification in the status bar is another thing, I haven't looked into this. But it's out of the scope of this plugin at the moment.

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

Hi @arielfaur

Thank you.. It is working.. :)

from ionic-audio.

mrbankim avatar mrbankim commented on May 13, 2024

Grt work.. :)

from ionic-audio.

Related Issues (20)

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.