[WordPress] 外掛分享: QTVR Viewer

首頁外掛目錄 › QTVR Viewer
70+
安裝啟用
尚無評分
5181 天前
最後更新
問題解決
WordPress 2.1+ v1.5.3 上架:2009-06-09

內容簡介

此外掛可將全景播放器插入 WordPress 文章中,以查看 360 度 QTVR 格式 (.mov) 的全景照片

要查看 QTVR 檔案 (.mov),需使用支援此類檔案的瀏覽器外掛程式,
此 WordPress 外掛使用 QuickTime http://www.apple.com/quicktime/ 或 DevalVR http://www.devalvr.com

此 WordPress 外掛基於 Javascript 代碼 “detectvr.js”,此解決方案用於自動偵測
用戶電腦中的瀏覽器外掛程式。如果 QuickTime 存在,則使用 QuickTime (此
插件存在於所有 Mac 電腦和 65% 的 Windows 電腦中)。
如果 QuickTime 不存在,則會顯示消息以允許用戶安裝 DevalVR 插件,這是一個非常
高質量和性能的微型 Windows 插件 (約 0.3 MB)。

可以定義選項在檢視器中,以允許用戶選擇首選的瀏覽器外掛程式。

用法

要將播放器插入文章中,請在文章文本中撰寫以下語句:

{qtvr filename width height}

將參數「filename」替換為 MOV 檔案名稱,「width」和「height」參數替換為以像素為單位的播放器窗口大小。例如:

{qtvr panorama.mov 460 300}

MOV 文件的基礎文件夾為 WordPress 安裝的內容文件夾(預設為 /wp-content/)。
例如,如果您編寫:{qtvr pictures/panorama.mov 460 300},則該文件應位於 /wp-content/pictures/panorama.mov 中。

也可以使用絕對 URL,例如:

{qtvr http://www.devalvr.com/panos/mansion1.mov 460 300}

可以使用 devalvr() 和 qt() 函数定義 DevalVR 或 QuickTime 的任何參數。
參數必須在引號之間,用逗號分隔並成對的以名稱-值形式書寫。
可以定義任意數量的參數。DevalVR 可用的參數:http://www.devalvr.com/paginas/soporte/parameters.html

例如:

{qtvr panorama.mov 460 300 devalvr(“autoplay”,”2″,”autoplayspeed”,”-6″) qt(“controller”,”false”)}

可以在播放器下面插入一些選項,以允許用戶選擇他喜歡的瀏覽器外掛程式。使用 selection()
函數。此功能可以有多個參數,以逗號分隔。第一個參數是選項前要寫的文字,
下一個參數必須是以下預定義單詞之一:detect、devalvr、qt、links、combobox

例如:

{qtvr panorama.mov 460 300 devalvr(“autoplay”,”2″) qt(“controller”,”false”) selection(Choose viewer:, detect, devalvr, qt)}

預覽圖片:

可以使用函數「preview(filename)」定義一個圖像,以在播放按鈕下面顯示。

{qtvr panorama.mov 460 300 preview(image.jpg)}

預覽圖像的基礎文件夾為 WordPress 安裝的內容文件夾 (預設為 /wp-content/)。
例如,如果要編寫:{qtvr panorama.mov 460 300 preview(pictures/image.jpg)},則該文件應在 /wp-content/pictures/image.jpg 中。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「QTVR Viewer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin inserts a panoramic player into a WordPress article to view a 360 panoramic picture in QTVR format (.mov)
To view a QTVR file (.mov) it’s required a browser plugin that supports this type of files,
this WordPress plugin uses QuickTime http://www.apple.com/quicktime/ or DevalVR http://www.devalvr.com
This WordPress plugin is based in the Javascript code “detectvr.js”, this workaround is used to autodetect
the browser plugin present in the user computer. If QuickTime is present, then QuickTime is used (this
plugin is present in all Mac computers and 65% of Windows computers).
If QuickTime is not present, then a message is shown to allow the user to install DevalVR plugin, this is a very
small plugin for Windows (about 0.3 MB) of high quality and performance.
It’s possible to define an option in the viewer to allow the user to choose the preferred browser plugin.
Usage
To insert the player into the article write the next statement in the text of the article:
{qtvr filename width height}
Replace the parameter “filename” by the MOV file name and the “width” and “height” parameters by the size in pixels
of the player window. Example:
{qtvr panorama.mov 460 300}
The base folder for the MOV files is the content folder of your WordPress installation (by default /wp-content/)
For example, if you write: {qtvr pictures/panorama.mov 460 300} , the file should be in /wp-content/pictures/panorama.mov
You can use absolute URLs too, for example:
{qtvr http://www.devalvr.com/panos/mansion1.mov 460 300}
It’s possible to define any parameters for DevalVR or QuickTime, with the help of the functions devalvr() and qt() respectively.
The parameters must be written between the parentheses, between quotation marks, separated by commas, and in pairs name-value.
Any number of parameters can be defined. Available parameters for DevalVR: http://www.devalvr.com/paginas/soporte/parameters.html
Example:
{qtvr panorama.mov 460 300 devalvr(“autoplay”,”2″,”autoplayspeed”,”-6″) qt(“controller”,”false”)}
It’s possible to insert some options bellow the viewer to allow the user to choose his preferred browser plugin. Use the selection()
function. This function can have several parameters, separated by commas. The first parameter is the text that will be written
before the selection options, the next parameters must be any of these predefined words: detect, devalvr, qt, links, combobox
Example:
{qtvr panorama.mov 460 300 devalvr(“autoplay”,”2″) qt(“controller”,”false”) selection(Choose viewer:, detect, devalvr, qt)}
Preview images:
It’s possible to use the function “preview(filename)” to define an image to show under the play button.
{qtvr panorama.mov 460 300 preview(image.jpg)}
The base folder for preview images is the content folder of your WordPress installation (by default /wp-content/)
For example, if you write: {qtvr panorama.mov 460 300 preview(pictures/image.jpg)} , the file should be in /wp-content/pictures/image.jpg

延伸相關外掛

文章
Filter
Apply Filters
Mastodon