項目中要求使用Vuforia在ios上掃描識別圖全屏播放服務器上的相關視頻:
以下是最開始的幾種失敗的嘗試方法並列出相應的坑:
1. 舍棄掉Vuforia的VideoPlay組件,直接在OnTrackingFound()中使用Unity自帶的方法 Handheld.PlayFullScreenMov[……]
只講重點的設計教學,立刻學習網頁教學網誌!
項目中要求使用Vuforia在ios上掃描識別圖全屏播放服務器上的相關視頻:
以下是最開始的幾種失敗的嘗試方法並列出相應的坑:
1. 舍棄掉Vuforia的VideoPlay組件,直接在OnTrackingFound()中使用Unity自帶的方法 Handheld.PlayFullScreenMov[……]
1:videoview循環播放視頻
1》xml
[html]
<RelativeLayout xmlns:android="https://schemas.android.com/apk/res/android"
&n[……]
IOS提供瞭叫做MPMoviePlayerController MPMoviePlayerViewController兩個類,可以輕松用來實現視頻播放。MPMoviePlayerViewController隻能全屏播放視頻。
#import "MainViewController.h" #impo[......]