Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Javascript API throws "invalid exception" during RTMP livestream #303

Open
elyasolden opened this issue Aug 21, 2017 · 0 comments
Open

Javascript API throws "invalid exception" during RTMP livestream #303

elyasolden opened this issue Aug 21, 2017 · 0 comments

Comments

@elyasolden
Copy link

I am using Flowplayer Free to play an RTMP livestream:

<div id="player"></div>
<script type="text/javascript" src="http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js"></script>
...

var fp = flowplayer("player", "https://releases.flowplayer.org/swf/flowplayer-3.2.18.swf", {
        clip: {
            url: this.streamInfo.streamUrl,
            live: true,
            scaling: 'fit',
            provider: 'rtmp'
        },
        plugins: {
            rtmp: {
                url: "flowplayer.rtmp-3.2.13.swf",
                netConnectionUrl: this.streamInfo.netUrl
            }
        }
    });

The playback works fine, however, if I attempt to use the JavaScript API (e.g. fp.getTime()), the following error appears on the console:

(unknown) Uncaught Error: Error: An invalid exception was thrown.
    at b.x.(anonymous function) [as getStatus] (http://releases.flowplayer.org/js/flowplayer-3.2.13.min.js:22:7476)
    at <anonymous>:1:18

I tested on both Firefox and Chrome on Linux with same outcome.

This exception is thrown when calling any playback-related method (such as play(), pause() or getTime()). The other methods (such as getConfig()) are working fine. After the exception, the playback continues normally. The mouse controls and buttons are working at any time without a problem.

What is the issue here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant