[jira] [Commented] (CB-12824) cordova-plugin-media - Pausing and playing streaming audio plays incorrect audio.

2017-05-19 Thread Justin de Leon (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16016995#comment-16016995
 ] 

Justin de Leon commented on CB-12824:
-

Cordova version: 6.3.1
iOS platform: 4.2.1
cordova-plugin-media version: 2.4.0

> cordova-plugin-media - Pausing and playing streaming audio plays incorrect 
> audio.
> -
>
> Key: CB-12824
> URL: https://issues.apache.org/jira/browse/CB-12824
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: 6.3.1
>Reporter: Justin de Leon
>Priority: Blocker
>  Labels: cordova-plugin-media
>
> Let's say I have two instances of Medias - a & b.
> (Media object instances are created on press of play)
> I pressed play on track a. Track a plays. I press pause on track a.
> I pressed play on track b. Track b plays. I press pause on track b.
> When I press play on track a again, track b resumes. I checked the media 
> object of track A, and its duration and position is the one from track b.
> I did not have this issue when using the cordova-media-plugin version 1.0.1. 
> I suppose that the bug appeared after adding support for background 
> threading. Note that this only happens for streamed audio.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-12824) cordova-plugin-media - Pausing and playing streaming audio plays incorrect audio.

2017-05-19 Thread Justin de Leon (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-12824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16016993#comment-16016993
 ] 

Justin de Leon commented on CB-12824:
-

[~kerrishotts] Here's the link to a repo with a demo app:

https://github.com/jusdeleon/cordova-plugin-media-demo

Local files does not have any problem with play and pause. You can verify this 
by running the app as is.

To replicate the issue reported above:

1. Uncomment lines 25-37 in www/index.html
2. Uncomment lines 8-9 in www/js/index.js

After this, you can see that playing any of the tracks plays the last item from 
the 'src' array on www/js/index.js.

It seems that on "new" of a Media (that has an external source as the URL), all 
other Media instances are overwritten - thus, the bug.

> cordova-plugin-media - Pausing and playing streaming audio plays incorrect 
> audio.
> -
>
> Key: CB-12824
> URL: https://issues.apache.org/jira/browse/CB-12824
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: 6.3.1
>Reporter: Justin de Leon
>Priority: Blocker
>  Labels: cordova-plugin-media
>
> Let's say I have two instances of Medias - a & b.
> (Media object instances are created on press of play)
> I pressed play on track a. Track a plays. I press pause on track a.
> I pressed play on track b. Track b plays. I press pause on track b.
> When I press play on track a again, track b resumes. I checked the media 
> object of track A, and its duration and position is the one from track b.
> I did not have this issue when using the cordova-media-plugin version 1.0.1. 
> I suppose that the bug appeared after adding support for background 
> threading. Note that this only happens for streamed audio.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12824) cordova-plugin-media - Pausing and playing streaming audio plays incorrect audio.

2017-05-16 Thread Justin de Leon (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin de Leon updated CB-12824:

Description: 
Let's say I have two instances of Medias - a & b.

(Media object instances are created on press of play)

I pressed play on track a. Track a plays. I press pause on track a.
I pressed play on track b. Track b plays. I press pause on track b.

When I press play on track a again, track b resumes. I checked the media object 
of track A, and its duration and position is the one from track b.

I did not have this issue when using the cordova-media-plugin version 1.0.1. I 
suppose that the bug appeared after adding support for background threading. 
Note that this only happens for streamed audio.

  was:
Let's say I have two instances of Medias - a & b.

(Media object instances are created on press of play)

I pressed play on track a. Track a plays. I press pause on track a.
I pressed play on track b. Track b plays. I press pause on track b.

When I press play on track a again, track b resumes. I check the media object 
of track A, and its duration and position is the one from track b.

I did not have this issue when using the cordova-media-plugin version 1.0.1. I 
suppose after adding support for background threading, this happens.


> cordova-plugin-media - Pausing and playing streaming audio plays incorrect 
> audio.
> -
>
> Key: CB-12824
> URL: https://issues.apache.org/jira/browse/CB-12824
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: 6.3.1
>Reporter: Justin de Leon
>Priority: Blocker
>  Labels: cordova-plugin-media
>
> Let's say I have two instances of Medias - a & b.
> (Media object instances are created on press of play)
> I pressed play on track a. Track a plays. I press pause on track a.
> I pressed play on track b. Track b plays. I press pause on track b.
> When I press play on track a again, track b resumes. I checked the media 
> object of track A, and its duration and position is the one from track b.
> I did not have this issue when using the cordova-media-plugin version 1.0.1. 
> I suppose that the bug appeared after adding support for background 
> threading. Note that this only happens for streamed audio.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-12824) cordova-plugin-media - Pausing and playing streaming audio plays incorrect audio.

2017-05-16 Thread Justin de Leon (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin de Leon updated CB-12824:

Description: 
Let's say I have two instances of Medias - a & b.

(Media object instances are created on press of play)

I pressed play on track a. Track a plays. I press pause on track a.
I pressed play on track b. Track b plays. I press pause on track b.

When I press play on track a again, track b resumes. I check the media object 
of track A, and its duration and position is the one from track b.

I did not have this issue when using the cordova-media-plugin version 1.0.1. I 
suppose after adding support for background threading, this happens.

  was:
Let's say I have to instances of Medias - a & b.

(Media object instances are created on press of play)

I pressed play on track a. Track a plays. I press pause on track a.
I pressed play on track b. Track b plays. I press pause on track b.

When I press play on track a again, track b resumes. I check the media object 
of track A, and its duration and position is the one from track b.

I did not have this issue when using the cordova-media-plugin version 1.0.1. I 
suppose after adding support for background threading, this happens.


> cordova-plugin-media - Pausing and playing streaming audio plays incorrect 
> audio.
> -
>
> Key: CB-12824
> URL: https://issues.apache.org/jira/browse/CB-12824
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: 6.3.1
>Reporter: Justin de Leon
>Priority: Blocker
>  Labels: cordova-plugin-media
>
> Let's say I have two instances of Medias - a & b.
> (Media object instances are created on press of play)
> I pressed play on track a. Track a plays. I press pause on track a.
> I pressed play on track b. Track b plays. I press pause on track b.
> When I press play on track a again, track b resumes. I check the media object 
> of track A, and its duration and position is the one from track b.
> I did not have this issue when using the cordova-media-plugin version 1.0.1. 
> I suppose after adding support for background threading, this happens.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-12824) cordova-plugin-media - Pausing and playing streaming audio plays incorrect audio.

2017-05-16 Thread Justin de Leon (JIRA)
Justin de Leon created CB-12824:
---

 Summary: cordova-plugin-media - Pausing and playing streaming 
audio plays incorrect audio.
 Key: CB-12824
 URL: https://issues.apache.org/jira/browse/CB-12824
 Project: Apache Cordova
  Issue Type: Bug
  Components: cordova-ios
Affects Versions: 6.3.1
Reporter: Justin de Leon
Priority: Blocker


Let's say I have to instances of Medias - a & b.

(Media object instances are created on press of play)

I pressed play on track a. Track a plays. I press pause on track a.
I pressed play on track b. Track b plays. I press pause on track b.

When I press play on track a again, track b resumes. I check the media object 
of track A, and its duration and position is the one from track b.

I did not have this issue when using the cordova-media-plugin version 1.0.1. I 
suppose after adding support for background threading, this happens.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org