view

Plugin to allow users to have full control of the video player through buttons and widgets.

configuration.json

{
    "story":
    {
        "uid": "story-0",
        "name": "Video Controls",
        "slug": "video-controls",
        "description": "This is a project sample with video controls plugin",
        "default": "scene-0",

        "scenes":
        [
            {
                "uid": "scene-0",
                "name": "First scene",
                "slug": "first-scene",
                "description": "This is the first scene",

                "media":
                {
                    "uid": "video-0",
                    "type": "video",

                    "source":
                    {
                        "format": "equi",
                        "levels": [
                            { "url": "omni-highlights-720p_HD.mp4" },
                            { "url": "omni-highlights-1080p_HD.mp4" },
                            { "url": "omni-highlights-1440p_HD.mp4" },
                            { "url": "omni-highlights-2160p_4K.mp4" }
                        ]
                    },

                    "options":
                    {
                        "autoPlay": false,
                        "loop": true,
                        "volume": 0.5
                    }
                },

                "view":
                {
                    "type": "GoPro"
                },

                "plugins":
                {
                    "instances":
                    [
                        {
                            "uid": "org.forgejs.videocontrols-0",
                            "engine": "org.forgejs.videocontrols",

                            "options":
                            {
                                "poster": "omni-highlights-poster.jpg"
                            },

                            "data": {},
                            "keep": false,
                            "index": 1
                        }
                    ]
                }
            }
        ]
    },

    "plugins":
    {
        "enabled": true,
        "prefix": "../../plugins/",

        "engines":
        [
            {
                "uid": "org.forgejs.videocontrols",
                "url": "VideoControls/"
            }
        ]
    }
}

Back to samples

3rd Jan 2017