本文整理汇总了C++中HTMLMediaElement::seeking方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLMediaElement::seeking方法的具体用法?C++ HTMLMediaElement::seeking怎么用?C++ HTMLMediaElement::seeking使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLMediaElement
的用法示例。
在下文中一共展示了HTMLMediaElement::seeking方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLMediaElementSeeking
JSValue jsHTMLMediaElementSeeking(ExecState* exec, JSValue slotBase, const Identifier&)
{
JSHTMLMediaElement* castedThis = static_cast<JSHTMLMediaElement*>(asObject(slotBase));
UNUSED_PARAM(exec);
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(castedThis->impl());
JSValue result = jsBoolean(imp->seeking());
return result;
}
示例2: getValueProperty
JSValue* JSHTMLMediaElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case ErrorAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return toJS(exec, WTF::getPtr(imp->error()));
}
case SrcAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsString(exec, imp->src());
}
case CurrentSrcAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsString(exec, imp->currentSrc());
}
case NetworkStateAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->networkState());
}
case BufferingRateAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->bufferingRate());
}
case BufferedAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return toJS(exec, WTF::getPtr(imp->buffered()));
}
case ReadyStateAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->readyState());
}
case SeekingAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsBoolean(imp->seeking());
}
case CurrentTimeAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->currentTime());
}
case DurationAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->duration());
}
case PausedAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsBoolean(imp->paused());
}
case DefaultPlaybackRateAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->defaultPlaybackRate());
}
case PlaybackRateAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->playbackRate());
}
case PlayedAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return toJS(exec, WTF::getPtr(imp->played()));
}
case SeekableAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return toJS(exec, WTF::getPtr(imp->seekable()));
}
case EndedAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsBoolean(imp->ended());
}
case AutoplayAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsBoolean(imp->autoplay());
}
case StartAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->start());
}
case EndAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->end());
}
case LoopStartAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->loopStart());
}
case LoopEndAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->loopEnd());
}
case PlayCountAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->playCount());
}
case CurrentLoopAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsNumber(exec, imp->currentLoop());
}
case ControlsAttrNum: {
HTMLMediaElement* imp = static_cast<HTMLMediaElement*>(impl());
return jsBoolean(imp->controls());
}
case VolumeAttrNum: {
//.........这里部分代码省略.........