Coder Social home page Coder Social logo

paview.js's Introduction

PaView.js - JavaScript Spherical Movie Viewer

Description

PaView.js is a JavaScript spherical movie viewer program.

How To Use

load script with Three.js

<script type="text/javascript" src="three.min.js"></script>
<script type="text/javascript" src="paview.js"></script>

simple example

<div id="mov1"></div>
<script type="text/javascript" >
    var img1 = new PaView({
        id:'mov1',
        file:'panorama1.mp4',
        srcwidth: 1024,
        srcheight: 512
    });
</script>

with customize option

<div id="mov2"></div>
<script type="text/javascript" >
    var img2 = new PaView({
        id:'mov2',
        file:'panorama2.mp4',
        srcwidth: 1024,
        srcheight: 512,
        firstview:180,
        zoom:100,
        width:700,
        height:400
    });
</script>

Option

keyword description range default
id ID of parent div element (required) - -
file movie file name (required) - -
srcwidth width of movie (required) number -
srcheight height of movie (required) number -
width width of view area number 500
height height of view area number 300
zoom zoom up movie 20..130 70
firstview degree of initial view 0..360 0
degree array of axis angle [x, y, z] [0..360,0..360,0..360] [0,0,0]

Demo Page

http://sound.jp/aike/paview/

NOTE

  • PaView.js available for Chrome, Firefox, IE (Windows), Chrome, Safari (Mac OS).
  • If you have .mp4 and .webm formated movies, Mac OS Firefox is available too.
  • PaView.js requires web server. It does not work from local file.
  • The movie file must be located at same origin.

Credit

PaView.js is licenced under MIT License. Copyright 2014, aike (@aike1000)

paview.js's People

Contributors

aike avatar

Stargazers

Yuichi TSUNEMATSU avatar shunirr avatar GENKI avatar ofunaa avatar Masafumi Okada avatar Michael Anthony avatar lanius avatar Shuichi Takaya avatar Joohun, Maeng avatar アラミタマ avatar Takumi Yoshida avatar Julien Valéry avatar okmttdhr, tada avatar Junichi Kajiwara avatar HIRAKI Satoru avatar Taro Hanamura avatar Yuichi Tsunematsu avatar Yuhei avatar Masaaki Kurihara avatar sandinist avatar

Watchers

 avatar Masaaki Kurihara avatar  avatar James Cloos avatar Michael Anthony avatar  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.