-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flowplayer: autoPlay: false,autoBuffering: true should not display the video if a splash image is set #104
Comments
there is a missing else statement here to handle it: |
Hi @blacktrash it should work as expected now, plz check on your side |
Almost - one of the use cases is to have an image as first item in a playlist and the above incantation for the second item. This results in a so-called "playlist-based splash image". I've updated the demo - the player should stay on the image after load. |
you mean we should not show the first video frame, just fill the buffer and let the display as it was right ? |
If it were that simple ;-) No, without an image as first playlist item the first frame is shown: http://flowplayer.blacktrash.org/test/minimal.html - this scenario is definitely fixed by the change. |
Ok i Will have a look @ rtmp provider tomorrow to see how it is handled |
Personally I do not deem this a showstopper - if you foresee to many complications, we can document that http://flash.flowplayer.org/demos/configuration/playlist-splash.html (currently) does not work with this plugin - there's always the possibility of the html based splash setup http://flash.flowplayer.org/demos/installation/splash-image.html which imho is the better way[tm] in most scenarios. |
it should not be a big deal to implement, if you could tell me how i could detect such conditions from flowplayer flash API perspective. |
I'm only familiar with the JS api I'm afraid - I'll ping a Flash developer; don't hold your breath though, we're very busy with other stuff atm, sorry. |
@mangui - for the time being this can be solved/hacked/worked around with Flowplayer's JavaScript api: playlist: [{
url: "mysplash.jpg",
provider: "http",
// custom property on load for splash image clip
init: true
}, {
url: "myhls.m3u8",
provider: "hls",
urlResolvers: "hls",
autoPlay: false
// autoBuffering: true // no effect with this hack, and unneeded with hls anyway
}],
clip: {
onFinish: function (clip) {
if (clip.type == "image" && !clip.index && this.getPlaylist().length > 1) {
if (clip.init) {
this.pause();
clip.init = false;
} else {
this.play(1);
}
}
}
} Demo here: http://flowplayer.blacktrash.org/test/flashls.html |
Note that the above hack obviously cannot be applied to standalone embedded players, e.g. in configurations for sharing where no JS api is available. |
FWIW, I can't repro this anymore if I don't set |
Flowplayer has a special incantation to pause on the first frame after loading:
With flashls the player gets stuck in loading state, see http://flowplayer.blacktrash.org/test/flashls.html
Can this be solved in flashls?
The text was updated successfully, but these errors were encountered: