Git Product home page Git Product logo

ol_videos's People

Contributors

lcalisto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yangmaoer fgubler

ol_videos's Issues

Example page is broken.

The ol.js and ol.css assets are responding with 403.

  • https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.14.1/build/ol.js
  • https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.14.1/css/ol.css

Not working with openlayers 6

Hey

First, a big thanks for your work in creating this :-).
I just tried to integrate it into a project this afternoon.
Unfortunately, while it works nicely with openlayers v4.6.5, it no longer works with openlayers 6.
I managed to get rid of all error-messages but unfortunately, no video is shown.

Of course, I understand that this project is not actively maintained. I just wanted to let you know; so in case you have the time and motivation to update it...

If I find a solution, I will of course let you know.

Video speeding up

I have adapted the core of this repo to display a video on open layers. But sometimes the video just speeds up, especially when zooming. Another side effect of this is that video.currentTime gives a wrong answer. I know this because I embedded the frame number into video. I also see this happening in the online example here:
https://lcalisto.github.io/ol_videos/

I've looked around and saw that people recommend changing the setInterval for the map.render() with requestanimationframe but that didn't help.

Any idea why this is happening and how to fix?

Video Rotation

I can't seem to get video rotation working properly. However, I see logic for it in the code base. I'm not super familiar with openlayers, so I could just be calling something incorrectly. I've included my code below, but when I run it, the tile layer rotates, but not the video.

var map = new ol.Map({
            controls: ol.control.defaults({
                attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
                    collapsible: false
                })
            }),
            interactions: ol.interaction.defaults().extend([
                new ol.interaction.DragRotateAndZoom()
            ]),
            layers: [
                new ol.layer.Tile({
                    source: new ol.source.OSM()
                })
            ],
            target: 'map',
            view: new ol.View({
                center: [0, 0],
                zoom: 2
            })
        });
        var bbox = ["-8", "39", "14", "58"];
		var framerate=1;
		var showSeconds='all';
		var opacity=1;
        showAnimLayer(null, 'https://upload.wikimedia.org/wikipedia/commons/transcoded/b/ba/San_Diego_Zoo_1_2016-06-09.webm/San_Diego_Zoo_1_2016-06-09.webm.720p.vp9.webm', bbox, map, framerate, false, opacity, null);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.