2014-06-19 47 views
0

我使用android創建玩家。如何在Livecode上播放Android視頻時設置全屏?

此代碼我的卡上:

on opencard 
    --start videomobile 
    if the environment is "mobile"then 
     mobileControlCreate "player","videoControl" 
     mobileControlSet "videoControl","filename","assets/player/vdo.mp4" 
     mobileControlSet "videoControl","preserveAspect",true 
     mobileControlSet "videoControl","showController",true 
     mobileControlSet "videoControl","visible",true 
     mobileControlSet "videoControl","rect",the rect of player ID 1004 
    end if 
    --end videomobile 
end opencard 

當我我的設備上進行測試。該視頻已顯示和播放。但它不像iOS上的全屏。

我該怎麼辦?

回答

1

不幸的是,全屏選項僅適用於帶有LiveCode的iOS。您可以使用mobileControlSet命令手動調整播放器的矩形。

+0

好主意。謝謝 – KemChat