0

嗨,我正在使用带有 C# 的 smf 框架的 silverlight 播放器。

参考:http ://smf.codeplex.com/

我正在尝试获取视频暂停的位置。因为我是新手,所以我认为我做得不对。在我的 JavaScript 中,我有这个功能

 function Pause() {

                    Player.Pause();
                    alert(Player.Timeline.LivePosition());


            }

它会暂停视频,但随后会发出警报

Error: Object does not support this property or method 

任何帮助都感激不尽。

4

1 回答 1

0

You're using the wrong property, as you might have guessed. LivePosition is for live streaming (think web TV / broadcast).

The position in a regular video is PlaybackPosition. It's a property from SMFPlayer too.

I'm using it in C#, I don't know how it works in the Javascript bridge though.

于 2012-03-23T09:27:04.767 回答