Unity3d+VideoPlayback

來源:互聯網
上載者:User

VideoPlayBack的例子主要功能是實現增強顯示視頻的效果,這個視頻可以是本地資源,也可是網路資源;可以在標誌上播放,也可以全屏播放。可用的範圍非常廣泛,也很有意思。在Unity3d中進行視頻增強顯示案例時,關於ARCamera的處理跟ImageTarget一樣,需要注意的地方有:1、關於應用介紹視窗的設定應用開啟之後會有一個視窗顯示APP內容,這個主要是這個指令碼控制的。其中顯示的內容可以在這個腳步中進行設定:private const string mText = "This sample application shows how to play a video in\n" +
                                 "AR mode\n\n" +
                                 "Devices that support video on texture can play the\n" +
                                 "video directly on the image target. Other devices will\n" +
                                 "play the video in full screen mode.\n\n" + 
                                 "Note: iOS devices can only play network files in full\n" +
                                 "screen mode.";你也可以不在ARCamera中添加這個指令碼,不顯示提示框。2、不同標誌對應不同的視頻這裡包含兩個部分,一個是ImageTarget,一個是Video。ImageTarget的作用主要用來進行標誌識別和註冊,Video主要用來播放視頻。其中Video的檢視面板內容如下:
關於視頻的路徑,你可以放在StreamingAssets,然後再Path中直接填寫視頻名稱即可,包含尾碼,例如chaigaizi.m4v。總結:需要注意的地方就這兩點,大家可以試試。
AR技術網 ar研究1群已滿
AR技術網 ar研究2群293393443

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.