Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
start [2021/10/22 01:20] admin |
start [2021/10/27 11:06] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | OnePlayer Online - The unified media player, A Free Web Software for playing video、panorama、3dmodel | + | OnePlayer Online - The unified media player, A Free Web Software for playing video、panorama、3D Model etc. |
< | < | ||
- | <div style=" | + | <div style=" |
< | < | ||
</ | </ | ||
</ | </ | ||
- | <script type=" | ||
<script id=" | <script id=" | ||
| | ||
Line 36: | Line 35: | ||
< | < | ||
</ | </ | ||
- | <button class=" | + | |
- | <i class=" | + | |
- | </ | + | <i class=" |
+ | </button> | ||
+ | </div> | ||
<div class=" | <div class=" | ||
<p> The opened file is only read into the browser.< | <p> The opened file is only read into the browser.< | ||
Line 48: | Line 49: | ||
<script id=" | <script id=" | ||
<div class = " | <div class = " | ||
- | <input type=" | + | |
- | <button class=" | + | |
- | <i class=" | + | |
- | </ | + | <div class=" |
+ | | ||
+ | <i class=" | ||
+ | </button> | ||
+ | </div> | ||
<div class=" | <div class=" | ||
<p> The loaded file is only read into the browser.< | <p> The loaded file is only read into the browser.< | ||
Line 58: | Line 63: | ||
</ | </ | ||
+ | <script id=" | ||
+ | <div class=" | ||
+ | < | ||
+ | <ul class= " | ||
+ | <!-- Add your images (or video) here --> | ||
+ | </ul> | ||
+ | <!-- Text at center of ground --> | ||
+ | <p class = " | ||
+ | <div id=" | ||
+ | </ | ||
+ | <a class=" | ||
+ | <a class=" | ||
+ | <a class=" | ||
+ | <ol class=" | ||
+ | </ol> | ||
+ | </ | ||
+ | </ | ||
- | < | + | < |
- | | + | <li class=" |
- | | + | |
- | "skylark-langx", | + | |
- | "skylark-domx", | + | |
- | "utilhub-tookits-oneplayer" | + | </ |
- | | + | <label class="btn btn-default"> |
- | | + | |
- | }); | + | |
- | | + | <label class=" |
+ | | ||
+ | </ | ||
+ | | ||
+ | </ | ||
+ | </ | ||
+ | <script id=" | ||
+ | <li class=" | ||
+ | <div class=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
function initPage(langx, | function initPage(langx, | ||
let $ = domx.query; | let $ = domx.query; | ||
- | let _windowLoaded | + | var medias |
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : '/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : '/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | { | ||
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : "grand view park" | ||
- | const autoSetup = function () { | + | }, |
- | const mediaEls = Array.prototype.slice.call(document.getElementsByTagName('u-oneplayer')); | + | { |
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : " | ||
+ | }, | ||
+ | |||
+ | { | ||
+ | | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : " | ||
- | if (mediaEls && mediaEls.length > 0) { | + | }, |
- | for (let i = 0, e = mediaEls.length; i < e; i++) { | + | |
+ | type: ' | ||
+ | poster : "/ | ||
+ | media : "/ | ||
+ | title : "the earth around" | ||
- | const mediaEl = mediaEls[i], | + | |
- | pickerOptions = { | + | ]; |
- | tabs : [ | + | |
- | {label:" | + | |
- | {label:" | + | |
- | ], | + | |
- | template : $("#tpl-oneplayer-picker" | + | const mediaEls = Array.prototype.slice.call(document.getElementsByTagName(' |
- | | + | if (mediaEls && mediaEls.length > 0) { |
- | tabitem : $("# | + | for (let i = 0, e = mediaEls.length; |
- | tabpane : $("# | + | |
+ | const mediaEl = mediaEls[i], | ||
+ | pickerOptions = { | ||
+ | tabs : [ | ||
+ | {label:" | ||
+ | {label:" | ||
+ | {label:" | ||
+ | ], | ||
+ | |||
+ | template : $("# | ||
+ | |||
+ | | ||
+ | tabitem : $("# | ||
+ | tabpane : $("# | ||
+ | }, | ||
+ | |||
+ | froms : { | ||
+ | upload : { | ||
+ | template : $("# | ||
+ | }, | ||
+ | url : { | ||
+ | template : $("# | ||
+ | }, | ||
+ | listing : { | ||
+ | template : $("# | ||
+ | |||
+ | item : { | ||
+ | template : $("# | ||
}, | }, | ||
- | | + | |
- | | + | template : $("# |
- | | + | |
- | }, | + | |
- | url : { | + | |
- | template : $("# | + | |
- | } | + | |
} | } | ||
- | }; | + | } |
- | + | ||
- | if (mediaEl && mediaEl.getAttribute) { | + | |
- | if (mediaEl.player === undefined) { | + | |
- | let player = new oneplayer.Player(mediaEl, | + | |
- | | + | |
- | | + | |
- | }); | + | |
} | } | ||
- | | + | |
- | | + | |
- | break; | + | if (mediaEl && mediaEl.getAttribute) |
+ | | ||
+ | let player = new oneplayer.Player(mediaEl, | ||
+ | | ||
+ | | ||
+ | }); | ||
} | } | ||
+ | } else { | ||
+ | autoSetupTimeout(1); | ||
+ | break; | ||
} | } | ||
- | } else if (!_windowLoaded) { | ||
- | autoSetupTimeout(1); | ||
} | } | ||
- | }; | + | } |
- | function autoSetupTimeout(wait) { | + | |
- | + | ||
- | window.setTimeout(autoSetup, | + | |
- | } | + | |
- | function setWindowLoaded() { | + | |
- | _windowLoaded = true; | + | |
- | window.removeEventListener(' | + | |
- | } | + | |
- | if (document.readyState === ' | + | |
- | setWindowLoaded(); | + | |
- | } else { | + | |
- | window.addEventListener(' | + | |
- | } | + | |
- | const hasLoaded = function () { | + | |
- | return _windowLoaded; | + | |
- | }; | + | |
- | + | ||
- | autoSetupTimeout(1, | + | |
} | } | ||
</ | </ | ||
Line 164: | Line 234: | ||
height : 100%; | height : 100%; | ||
color : #333; | color : #333; | ||
+ | } | ||
+ | |||
+ | .u-oneplayer .uop-control-bar { | ||
+ | background-color: | ||
} | } | ||
| | ||
Line 169: | Line 243: | ||
| | ||
} | } | ||
- | + | | |
- | .uop-picker .dropzone { | + | |
- | | + | |
- | } | + | |
- | | + | |
.uop-picker .upload-btn, | .uop-picker .upload-btn, | ||
margin-bottom : 2em; | margin-bottom : 2em; | ||
Line 188: | Line 258: | ||
} | } | ||
| | ||
- | .uop-picker .urlloader { | + | |
- | flex-direction : column; | + | |
- | } | + | |
- | + | ||
.uop-picker .urlloader .archive-url { | .uop-picker .urlloader .archive-url { | ||
- | | + | width: |
- | height : 30px; | + | |
} | } | ||
| | ||
+ | .uop-picker .nav-tabs li { | ||
+ | cursor : pointer; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel .desc, .lark-carousel .ground { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.rotate .desc, .lark-carousel.rotate .ground { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel .items-container { | ||
+ | height: 100%; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel | ||
+ | max-width: 90%; | ||
+ | max-height: 90%; | ||
+ | display: block; | ||
+ | margin: auto; | ||
+ | cursor : pointer; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.rotate .items-container { | ||
+ | width: 120px; | ||
+ | height: 170px; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.rotate .item img { | ||
+ | display: block; | ||
+ | height : 220px; | ||
+ | width: 220px; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.coverflow .item { | ||
+ | height : 360px; | ||
+ | width : 360px; | ||
+ | } | ||
+ | |||
+ | .uop-picker .lark-carousel.coverflow .item img { | ||
+ | display: block; | ||
+ | height : 360px; | ||
+ | width : 360px; | ||
+ | } | ||
+ | |||
+ | | ||
+ | display: block; | ||
+ | height : 420px; | ||
+ | width : 840px | ||
+ | } | ||
</ | </ | ||