我在编写此代码之后将视频组件添加到页面中,如下所示。但不行。我该怎么办呢?
Pages.Page1.Video1.playVideo(true, true, function() {
alert("playybackStarrted.")
}, function() {
alert("video Initialized.")
}, function() {
alert("playyback Completed.")
}, function() {
alert("Error")
});

我试过这个。我将contentUrl定义为video.mp4。但我不能这样做。
var video1 = new SMF.UI.Video({
top : "10%",
left : "10%",
width : "80%",
height : "40%",
controlStyle : SMF.UI.VideoControlStyle.embedded,
contentUrl : "video.mp4"
});

答案 0 :(得分:0)
我动态添加了视频,运行正常如下:
Select-Xml : The file 'C:\data\Badges.xml' cannot be read: The input document has
exceeded a limit set by MaxCharactersInDocument.
At line:1 char:11
+ $badges = Select-Xml -Path .\Badges.xml -XPath "//badges/row[UserId='8152']"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (C:\data\Badges.xml:String) [Select-Xml], ArgumentException
+ FullyQualifiedErrorId : ProcessingFile,Microsoft.PowerShell.Commands.SelectXmlCommand