Appcelerator Titanium:无法让 videoPlayer 显示视频播放器控件
我正在尝试更新应用程序以在 iOS 4 上运行,但无法让电影播放器控件显示在视频上。
这是我正在使用的代码...
var movie = Titanium.Media.createVideoPlayer({
url: vidurl,
backgroundColor: '#000',
movieControlMode: Titanium.Media.VIDEO_CONTROL_DEFAULT
});
videoWindow.add(movie);
movie.addEventListener('complete', function (e) {
alert("movie is finished");
movie.close();
});
movie.fullscreen = true;
movie.play();
如何让视频播放器控件显示并触发事件?
编辑:修复了一个问题,现在视频完成后关闭。但仍然没有视频播放控件。
I am trying to update an application to work on iOS 4 and I cannot get the movie player controls to show up on the video.
Here's the code I am using...
var movie = Titanium.Media.createVideoPlayer({
url: vidurl,
backgroundColor: '#000',
movieControlMode: Titanium.Media.VIDEO_CONTROL_DEFAULT
});
videoWindow.add(movie);
movie.addEventListener('complete', function (e) {
alert("movie is finished");
movie.close();
});
movie.fullscreen = true;
movie.play();
How can I get the videoplayer controls to show up and the event to fire?
Edit: Fixed one issue, and now the video closes after finishing. But still no video playback controls.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apple 在 3.2+ 中更改了一些 API,我们必须反映我们的 API 来更改它们。
您可以使用以下其中一项:
Apple changed some of the APIs in 3.2+ and we've had to reflect our APIs to change them.
You can use one of the following: