You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "aroma peng (JIRA)" <ji...@apache.org> on 2012/10/15 04:41:03 UTC

[jira] [Created] (CB-1659) FAIL TO Change Media SRC

aroma peng created CB-1659:
------------------------------

             Summary: FAIL TO Change Media SRC 
                 Key: CB-1659
                 URL: https://issues.apache.org/jira/browse/CB-1659
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 2.1.0
         Environment: win7
eclipse
android 2.3



            Reporter: aroma peng
            Assignee: Joe Bowser


 in AudioPlayer.java
    readyPlayer function
    case stopped
    the code:

if (this.audioFile.compareTo(file) == 0) {
                        //reset the audio file
                        player.seekTo(0);
                        player.pause();
                        return true;
                    } 

when i change media src from a to b ,then  change back the media src to b  
from a ,
  the variable audioFile is a , and the new file is a ,  according to the
code ,  so it not load a file again ,and keep play file b. then get a error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1659) FAIL TO Change Media SRC

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-1659.
----------------------------

    Resolution: Cannot Reproduce

Since I'm not sure what you're asking, and since there's no example code, I'm going to close this as can't reproduce.  If you wish to provide an example, please feel free to re-open this issue.
                
> FAIL TO Change Media SRC 
> -------------------------
>
>                 Key: CB-1659
>                 URL: https://issues.apache.org/jira/browse/CB-1659
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: win7
> eclipse
> android 3.0
>            Reporter: aroma peng
>            Assignee: Joe Bowser
>
>  in AudioPlayer.java
>     readyPlayer function
>     case stopped
>     the code:
> if (this.audioFile.compareTo(file) == 0) {
>                         //reset the audio file
>                         player.seekTo(0);
>                         player.pause();
>                         return true;
>                     } 
> when i change media src from a to b ,then  change back the media src to b  
> from a ,
>   the variable audioFile is a , and the new file is a ,  according to the
> code ,  so it not load a file again ,and keep play file b. then get a error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1659) FAIL TO Change Media SRC

Posted by "Joe Bowser (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13484514#comment-13484514 ] 

Joe Bowser commented on CB-1659:
--------------------------------

Can you provide some sample code for this issue? 
                
> FAIL TO Change Media SRC 
> -------------------------
>
>                 Key: CB-1659
>                 URL: https://issues.apache.org/jira/browse/CB-1659
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: win7
> eclipse
> android 3.0
>            Reporter: aroma peng
>            Assignee: Joe Bowser
>
>  in AudioPlayer.java
>     readyPlayer function
>     case stopped
>     the code:
> if (this.audioFile.compareTo(file) == 0) {
>                         //reset the audio file
>                         player.seekTo(0);
>                         player.pause();
>                         return true;
>                     } 
> when i change media src from a to b ,then  change back the media src to b  
> from a ,
>   the variable audioFile is a , and the new file is a ,  according to the
> code ,  so it not load a file again ,and keep play file b. then get a error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1659) FAIL TO Change Media SRC

Posted by "aroma peng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

aroma peng updated CB-1659:
---------------------------

    Environment: 
win7
eclipse
android 3.0



  was:
win7
eclipse
android 2.3




    
> FAIL TO Change Media SRC 
> -------------------------
>
>                 Key: CB-1659
>                 URL: https://issues.apache.org/jira/browse/CB-1659
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.1.0
>         Environment: win7
> eclipse
> android 3.0
>            Reporter: aroma peng
>            Assignee: Joe Bowser
>
>  in AudioPlayer.java
>     readyPlayer function
>     case stopped
>     the code:
> if (this.audioFile.compareTo(file) == 0) {
>                         //reset the audio file
>                         player.seekTo(0);
>                         player.pause();
>                         return true;
>                     } 
> when i change media src from a to b ,then  change back the media src to b  
> from a ,
>   the variable audioFile is a , and the new file is a ,  according to the
> code ,  so it not load a file again ,and keep play file b. then get a error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira