You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Lorin Beer (JIRA)" <ji...@apache.org> on 2012/07/12 20:31:36 UTC

[jira] [Created] (CB-1048) Media.play reloads media source on every call

Lorin Beer created CB-1048:
------------------------------

             Summary: Media.play reloads media source on every call
                 Key: CB-1048
                 URL: https://issues.apache.org/jira/browse/CB-1048
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.8.1
            Reporter: Lorin Beer
            Assignee: Joe Bowser
            Priority: Minor


calls to media.play always reloads the source audio, regardless of whether the source actually has changed or not.

Suggested fix is to modify the android implementation to test the incoming source string against the current source, and only load the media if a different media file is requested.
0
This would eliminate the delay associated with streaming media after the first play through, for as long as the media object is not reset or gc'd

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-1048) Media.play reloads media source on every call

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

Joe Bowser reassigned CB-1048:
------------------------------

    Assignee: Lorin Beer  (was: Joe Bowser)
    
> Media.play reloads media source on every call
> ---------------------------------------------
>
>                 Key: CB-1048
>                 URL: https://issues.apache.org/jira/browse/CB-1048
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.8.1
>            Reporter: Lorin Beer
>            Assignee: Lorin Beer
>            Priority: Minor
>              Labels: patch
>
> calls to media.play always reloads the source audio, regardless of whether the source actually has changed or not.
> Suggested fix is to modify the android implementation to test the incoming source string against the current source, and only load the media if a different media file is requested.
> 0
> This would eliminate the delay associated with streaming media after the first play through, for as long as the media object is not reset or gc'd

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-1048) Media.play reloads media source on every call

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

Simon MacDonald reassigned CB-1048:
-----------------------------------

    Assignee: Simon MacDonald  (was: Lorin Beer)
    
> Media.play reloads media source on every call
> ---------------------------------------------
>
>                 Key: CB-1048
>                 URL: https://issues.apache.org/jira/browse/CB-1048
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.8.1
>            Reporter: Lorin Beer
>            Assignee: Simon MacDonald
>            Priority: Minor
>              Labels: patch
>
> calls to media.play always reloads the source audio, regardless of whether the source actually has changed or not.
> Suggested fix is to modify the android implementation to test the incoming source string against the current source, and only load the media if a different media file is requested.
> 0
> This would eliminate the delay associated with streaming media after the first play through, for as long as the media object is not reset or gc'd

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-1048) Media.play reloads media source on every call

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

Lorin Beer commented on CB-1048:
--------------------------------

fix implemented along with issue: https://issues.apache.org/jira/browse/CB-403


here is the pull request:
https://github.com/apache/incubator-cordova-android/pull/30
here is my fork:
https://github.com/doggerelverse/incubator-cordova-android
                
> Media.play reloads media source on every call
> ---------------------------------------------
>
>                 Key: CB-1048
>                 URL: https://issues.apache.org/jira/browse/CB-1048
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.8.1
>            Reporter: Lorin Beer
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: patch
>
> calls to media.play always reloads the source audio, regardless of whether the source actually has changed or not.
> Suggested fix is to modify the android implementation to test the incoming source string against the current source, and only load the media if a different media file is requested.
> 0
> This would eliminate the delay associated with streaming media after the first play through, for as long as the media object is not reset or gc'd

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira