<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
<br>
I am trying to implement trick mode backward play with gstreamer.<br>
<br>
OS: Ubuntu 10.04. <br>
<br>
File type : .wmv file.<br>
<br>
<br>
I am trying to use the following method:<br>
<br>
1. Getting position by calling <i>gst_element_query_position().</i><br>
<br>
2. Then passing different play rate to the API <i>gst_event_new_seek()</i> for playing in different speed..
<br>
<br>
<i>if (play_rate > 0)<br>
{ <br>
seek_event = gst_event_new_seek ((gdouble)play_rate, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_ACCURATE|GST_SEEK_FLAG_FLUSH),<br>
GST_SEEK_TYPE_SET, position, GST_SEEK_TYPE_NONE, 0);<br>
}<br>
else<br>
{<br>
seek_event = gst_event_new_seek (play_rate, GST_FORMAT_TIME, (GstSeekFlags)(GST_SEEK_FLAG_ACCURATE|GST_SEEK_FLAG_FLUSH),<br>
GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, position);<br>
}</i><br>
<br>
In my case when the play_rate is >1, fast forward is happening nicely. <br>
<br>
But every time I am trying with any negative value, the backward play is not happening.<br>
<br>
The event is not returning any error as well. The play is happening with the previous speed set.
<br>
<br>
<br>
Please help me out to play the media backward.<br>
<br>
Regards,<br>
Amit<br>
<br>
<br>
<br>
</div>
<P><strong><span style='font-size:10.0pt;font-family:
"Palatino Linotype","serif";color:green'> Please do not print this email unless it is absolutely necessary. </span></strong><span style='font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>
<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>
<p>
www.wipro.com
</p>
</body>
</html>