Mister M
Mister M

Reputation: 1669

Flowplayer: SWF file not found

I'm writing a live TV application using Flowplayer 6.0.5. I'm using the following code:

 <div class="player">
    <video>
        <source type="application/x-mpegurl" src="http://10.10.11.101/response2/index.m3u8?ch=<?php echo $_SESSION['chnId']; ?>&request=playlist&session=<?php echo $sess_id; ?>">
    </video>
</div>
var playero = $('.player').flowplayer({
        autoplay: true
     });

It's working fine during livestream, but when I switch channels or use seek I occasionally (about once in 10 times absolutely randomly) get this error:

enter image description here

When switching channels (same when using seek), I just send the request to server to change the playlist and then use

player.load();

I have searched everywhere but couldn't find why could this be happening. Any help will be appreaciated, thanks!

Upvotes: 1

Views: 3793

Answers (2)

VC.One
VC.One

Reputation: 15881

Believe it or not, I suspect the issue is your app being mistaken for some Flash adverts provider.

Browsers don't think "Oh FlowPlayer? That one's okay", all they know is an SWF file embedded on the page is constantly loading various unique streams (like rotating a playlist of video adverts? Oh oh).

This now makes your app show same behaviour as those annoying Flash banners. It is then auto-blocked (like all Flash banner ads are nowadays) until user chooses to enable playback.

I'm confused by seeking though. network activity did not show new requests but yet for you it gets blocked after a while? I tested this FlowPlayer link.

All I know is these things below will avoid auto block...

  • If the SWF is loaded from same server as .html that embeds, thats fine.
  • If the SWF is loading videos from same server as itself, thats fine.
  • If the SWF is loading a single video source, that's fine.

You're likely doing the first thing but it's not possible to do the second one since video is from RTMP server.

For yourself : Can PHP be used here as a "middle man" proxy? Basically for RTMP streaming, point your SWF input URL to the PHP file (so technically its always loading one file) but the PHP should Echo back any changed RTMP stream data (channel or seeked).

Upvotes: 1

Jaimin Soni
Jaimin Soni

Reputation: 1071

Please update your flowplayer version from your flowplayer account page, because there are some fixes made in your version(6.0.5). You can review that fixes.

Upvotes: 0

Related Questions