Video seekbar color change based on forward time - angularjs

I am trying to work on html5 video where I have to get a white colored line that changes based on where the cursor is hovering on the time bar. This is not to be confused with the current play time which is red colored line.
How do I get this white line? Do I need to calculate the current play time and forward time and then apply some sort of css on the remaining portion?
Please help me with ideas. Please see the pic to know what I am talking about.

Related

Seekbar control video for Elementor

First of all, sorry for my english.
I need to build a custom control for Elementor. A video was uploaded with the video widget, and the custom control should be able to delimited certains positions in the video, and in that positions a custom html could show in that delimited parts. For instance: the video has x amount of time. the custom control create a repeater slide and between the 0:20 to 1:00 a custom html can show up, in the mean time the video continue playing, and in other time, ie the 2:20 to 3:00 another html can show up. I don't understand if you guys can understand my issue.
I appreciate all the help that you can bring me. Thanks a lot in advance. If you have some ideas to show me the right path that help me a lot, cause I'm spending so much time on this and the time to the D day is nearly. Sorry for all.

How to add background text to video recording?

I'm using videojs-record. On the top right corner there is REC text along with a red dot.
I am thinking to add more text to the ongoing video recording, something like video logs that Matt Damon did in the movie Martian.. Anyone knows how to achieve that? Thanks!
The record indicator is just a <div> element and won't be stored in the recorded video.
However, by the same logic you can just draw stuff on a <canvas> on top of your video (and hopefully you'll also get back from Mars somehow).

How to interpolate between colors for a polygon in Bing Maps

I have a WPF application with the Bing Maps API. What I have is a polygon rendering on many countries as well as real time statistics being display. I'm using this to keep track of where my server traffic is mainly coming from. The project is coming along nicely, but I hit a small roadblock. What I have are polygons that go from green to red and vice versa if there is a change in the statistics. If someone logs off then it would go into the green, if someone logged on it would go into the red. What I'd like to do is given a set number of users, let's say 20, I can gradually change the colors over a period of a second.
An example is 0 would be green and 20 would be red. So 10 would be yellow. With this, is there a way to gradually change colors?
Thanks in advance
There might be a fancy way of doing what you are looking for in xaml, but I imagine it would be a lot easier to to just have the color of the polygon bound to a property in your viewmodel/code-behind and then update the color whenever necessary.
For color interpolation, there is another SO question on it here.

Some animation requests in a Silverlight application

I am making a flash card application. It shows the question and then a textbox for user input, all wrapped in a border or rectangle. So what I want is an animation that "flips" the rectangle or border upside-down and then their is text on the "back". Also, I want my application to APPEAR transition from one card to another by "flying off" the screen then "another" card comes in to replace the other one in the opposite direction. But actually I'm want just a little animation of the border or rectangle moving off the screen then coming back in, but in the opposite direction. Some help would be appreciated, like what kind of animation can accomplish this and maybe a small code sample to demonstrate. I am not asking you write all this, I think that would be a little rude (unless you really want to).
Have you had a look at the Silverlight FX stuff? There might be some animations in there that are what you are looking for. There are also samples provided.
http://projects.nikhilk.net/SilverlightFX
Michael

Ensure text remains always readable in Silverlight

We have a Silverlight application that shows text over video. Both the text and video can be considered variables. Sometimes we might have a dark video, sometimes a bright video, sometimes a video that has sections of both.
Think of credits at the end of a movie. We want to ensure the end user can always read the text being show over the video. The text is always an overlay on top of the video.
The simple solution is to two show the text twice once in white and once in black with a small offset. This almost works but actually looks a little rough, and takes away from the user experience.
Ideally we would have the text with slight semitransparent glow around the edges. So if the text were white there would be a black glow right around the edges.
Is there a way to do this? Or is there an equal or better work-around?
I've done this with the DropShadow pixel shader effect in Silverlight 3. It works nicely, but since the pixel shaders aren't executed on the hardware, it can have a pretty heavy impact on the performance of the application.
If you wanted to get ambitious, you could write your own pixel shader. Silverlight 3 supports HLSL Shaders.
You could try displaying it with a contrasting outline, rather than just a "drop shadow" like you get if you display it once with a small offset. To do this, display it four times in one color, then a fifth time with a contrasting color, centered over the four previous copies. The four first ones should be offset one pixel up, right, down and left of the center.
The net effect should be an outline. Of course, perhaps this too looks "rough", since it's computer-generated and thus not perfect with respect to issues like kerning, spacing between characters, and so on. But it's quick to try, at least.
In general, automatically finding good contrasting colors when the background is video sounds a bit difficult. In the worst case, the video contains text just like the one you want to display. The correct solution in that case is hard to imagine.
Sounds similar to the problem of ensuring subtitles are always readable in films/TV. The most robust, but not necessarily most elegant solution, is to have a coloured background rectangle for the text which is either opaque or has a low transparency value - often grey or black with good contrasting foreground colour.

Resources