播放器的控制器在使用Livecode中的原生视频播放器完成触摸后不会显示

时间:2014-06-20 13:07:57

标签: ios video fullscreen livecode

在我质疑之后:How to set rect on using a native video player when set fullscreenmode to "exactFit" in Livecode?

我将此命令放入我的脚本中。

mobileControlSet pID,"fullscreen" , true

我把这个命令后。我遇到麻烦的是,当我按下图片时,图片将消失,视频将在全屏播放,按完之后。视频大小返回与隐藏图片相同,但视频控制器消失。

这是我的所有代码。

on mouseUp
   lock screen
   set the visible of img "poster" to false
   mobileControlCreate "player", "vdoplayer"
   put the result into pID
   mobileControlSet pID,"filename" , specialFolderpath("engine") & "/vdo.mp4" 
   mobileControlSet pID,"preserveAspect" , true
   mobileControlSet pID,"showController" , true 
   mobileControlSet pID,"fullscreen" , true
   mobileControlSet pID,"looping" , true
   mobileControlSet pID,"rect" , the rect of img "poster"
   mobileControlSet pID,"visible" , true
   mobileControlDo pID,"play"
   unlock screen
end mouseUp

----更新

在我的卡片中:

on playerLeaveFullscreen
   put mobileControlTarget() into pName
   mobileControlSet pName,"showController" , true
end playerLeaveFullscreen

没有任何反应。

1 个答案:

答案 0 :(得分:0)

我看到问题被标记为ios,所以这可能会有效......

on playerLeaveFullscreen
  mobileControlSet pID,"showController" , true
end playerLeaveFullscreen

(您可能需要声明pId以使其可用!)