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

ASF GitHub Bot commented on CB-9452:
------------------------------------

GitHub user johncblandii opened a pull request:

    https://github.com/apache/cordova-plugin-media/pull/63

    CB-9452: Treat RTSP streams as remote URLs

    Cordova Media plugin fails to play when attempting to play an RTSP stream. 
The stream is treated as a local resource so in AudioPlayer.java:305.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/johncblandii/cordova-plugin-media 
rtsp_streaming

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-media/pull/63.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #63
    
----
commit 0bfa72636e707655fe94783289aa0da533c18216
Author: John C. Bland II <[email protected]>
Date:   2015-08-05T04:55:27Z

    CB-9452: Treat RTSP streams as remote URLs

----


> RTSP Streams are considered local resources on playback
> -------------------------------------------------------
>
>                 Key: CB-9452
>                 URL: https://issues.apache.org/jira/browse/CB-9452
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: John C. Bland II
>            Priority: Blocker
>
> Cordova Media plugin fails to play when attempting to play an RTSP stream. 
> The stream is treated as a local resource so in AudioPlayer.java:305.
> Fix: 
> {code}
>     public boolean isStreaming(String file) {
>         if (file.contains("http://";) || file.contains("https://";) || 
> file.contains("rtsp://")) {
>             return true;
>         }
>         else {
>             return false;
>         }
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to