Code Monkey home page Code Monkey logo

o-three-sixty's Introduction

o-three-sixty

Embed Three Sixty distorted Media or o-videos, provide click-drag interface and vr interface.

	<!--
		Use o-video to pull down a 360 video
		Setting the data-o-video-source to
		Brightcove will get it to pull the video
		in using o-video from Brightcove.

		All other data-o-video work as specced out there.
	-->
	<div
		data-o-component="o-three-sixty"
		data-o-video-source="Brightcove"
		data-o-video-id="4165329773001"
		style="width: 480px; min-height:288px;"
	></div>

	<!-- Embed a 360 image -->
	<div data-o-component="o-three-sixty">
		<img
			width=480
			height=360
			src="https://image.webservices.ft.com/v1/images/raw/https%3A%2F%2Fcdn.rawgit.com%2Fftlabs%2Fo-three-sixty%2Fmaster%2Fdemos%2Fsrc%2Fdemo-img.jpg?source=test" alt="A 360 image of 3 men and a woman." />
	</div>

	<!-- Embed a 360 video

		You can also choose the starting angle

		data-o-three-sixty-long="15"
	-->
	<div data-o-component="o-three-sixty" data-o-three-sixty-long="15" >
		<video
			poster="https://image.webservices.ft.com/v1/images/raw/http%3A%2F%2Fftlabs.github.io%2Fthree-sixty-video%2Fimages%2Fmuaythai.jpg?source=test"
			src="https://ada-pull-zone-egnalefgk5.netdna-ssl.com/mt2.webm"
			width="450"
			height="300"
			controls
			crossorigin="anonymous"
			type="video/webm;">
	</div>
	// If you are using o-video by setting then give it the same options as o-video
	OThreeSixty(
		document.querySelector('[data-o-component="o-three-sixty"]'),
		{
			longOffset: 0
		}
	)

Licence

This software is published by the Financial Times under the MIT licence.

o-three-sixty's People

Contributors

adarosecannon avatar

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.