我正在播放钛金属iphone的视频,我创建了像这样的videoPlayer:
var activeMovie = Titanium.Media.createVideoPlayer({
url: contentURL,
backgroundColor:'#111',
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FILL
});
它看起来像这样:
enter image description http://i41.tinypic.com/143mhc9.png
问题在于我无法控制电影的最低时间栏。它会立即出现并在几秒钟后消失。是否有办法让它在视频打开时不显示,只有在我点击视频时出现并在下一次点击时消失??? ??? ???
谢谢!
答案 0 :(得分:1)
您未设置mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT
使用以下代码: -
var contentURL = "http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4";
var win = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff',
layout: 'vertical'
});
var movie = Titanium.Media.createVideoPlayer
({
url:contentURL,
top : 2,
autoplay : true,
height : 300,
width : 300,
mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT
});
win.add(movie);