# Seek\_simple method for Gstreamer

**URL:** <https://www.ruby-forum.com/t/seek-simple-method-for-gstreamer/215774>\
**Category:** Ruby-Gnome 2\
**Created:** [January 15, 2012, 6:32pm UTC](https://www.ruby-forum.com/t/seek-simple-method-for-gstreamer/215774 "2012-01-15T18:32:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [January 15, 2012, 6:32pm UTC](https://www.ruby-forum.com/t/seek-simple-method-for-gstreamer/215774/1 "2012-01-15T18:32:48Z")

</div>

Hi.

I just wanted to let you know that I have committed a patch to implement  
Gst::Element#seek\_simple method.

A basic seek of the 3rd seconds on a playbin2 element :

position=3000000000  
playbin2.seek\_simple(Gst::Format::Type::TIME,  
Gst::Seek::FLAG\_FLUSH|Gst::Seek::FLAG\_KEY\_UNIT, posistion)
