arn7av / esl-facebook-stream Goto Github PK
View Code? Open in Web Editor NEWESL Facebook stream client
Home Page: https://esl.atx.sx
License: MIT License
ESL Facebook stream client
Home Page: https://esl.atx.sx
License: MIT License
Please provide a feature for keyboard shortcut on the video player.
Mostly needed "space" for "pause", and "f" for "fullscreen". Probably "m" for "mute" might good as well.
We are lacking theatre mode at the moment. I am thinking to add a control on the control bar. A guide on how I think we can approach is looking at the fullscreen code:
button definition at https://github.com/arn7av/esl-facebook-stream/blob/master/src/esl_facebook_client/index.html#L221
activity catching at https://github.com/arn7av/esl-facebook-stream/blob/master/src/esl_facebook_client/app/contrib/akamai/controlbar/ControlBar.js#L84
https://github.com/arn7av/esl-facebook-stream/blob/master/src/esl_facebook_client/app/contrib/akamai/controlbar/ControlBar.js#L826
activity definition at https://github.com/arn7av/esl-facebook-stream/blob/master/src/esl_facebook_client/app/contrib/akamai/controlbar/ControlBar.js#L394
It would be nice to be able to play/pause the stream by just clicking on the video player (like youtube etc.) .
When going full screen on displays that are not 16:9, the video will be cropped to the display aspect ratio instead of using black bars. Thats probably because of the player using all of the display width (e.g. 3440px) and then cropping the vertical remains. Might be related to #3 ? Possible fix is locking the player to the vertical or horizontal width, depending on which is smaller compared to the video.
In theatre mode, it would be nice if the controlBar gets hidden when the mouse isn't moving/outside of the video element, preferably with a small delay (+-0.5s) after the last mouse activity.
This behaviour is already natively implemented in fullscreen mode, so one possibility is to adapt from that code.
Custom JS could also be written, and could look something like the code below (using jQuery).
This still needs a check whether theatre mode is toggled on.
// hide video controls when not on the video, but not on mobile
var delay = 500; // ms
var $videoControls = // jquery controlBar selector
var $videoContainer = // jquery video container selector
if (window.innerWidth > 450) {
$videoContainer.mouseenter(function() {
$videoControls.fadeIn(200);
});
$videoContainer.mouseleave(function() {
setTimeout(function() { $videoControls.fadeOut(200) }, delay);
});
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.