<html><head><style type='text/css'>p { margin: 0; }</style><style type='text/css'>body { font-family: 'Arial'; font-size: 12pt; color: #000000}</style></head><body><P>In my case, my code does not reach upto point where seeking on file is performed.</P>
<P> </P>
<P>fs = ast_openstream(chan, filename, preflang);<BR> if (!fs) {<BR> ast_log(LOG_WARNING, "Unable to open %s (format %s): %s\n", filename, ast_getformatname_multiple(fmt, sizeof(fmt), chan->nativeformats), strerror(errno));</P>
<P><STRONG><FONT color=#3333ff>//I am getting this warning and the function returns from here<BR></FONT></STRONG> return -1;<BR> }</P>
<P> </P>
<P>/* check to see if there is any data present (not a zero length file),<BR> * done this way because there is no where for ast_openstream_full to<BR> * return the file had no data. */<BR> seekattempt = fseek(fs->f, -1, SEEK_END); </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P>Regards,</P>
<P>Shalu</P>
<P> </P>
<P> </P>
<P><BR>----- Original Message -----<BR>From: "Timo Teräs" <timo.teras@iki.fi><BR>To: "Asterisk Developers Mailing List" <asterisk-dev@lists.digium.com><BR>Cc: "shalu dhamija" <shalu.dhamija@rancoretech.com><BR>Sent: Friday, December 23, 2011 6:43:35 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi<BR>Subject: Re: [asterisk-dev] Not able to play video file in asterisk 1.8.7.1<BR><BR>On 12/23/2011 03:04 PM, shalu dhamija wrote:<BR>> I am trying to play a video file (H.263 format) using playback()<BR>> application.<BR><BR>You probably need my patch from:<BR> https://issues.asterisk.org/jira/browse/ASTERISK-18994<BR><BR>Though there might be something additional involved too. But there are<BR>chances that this could fix it all together too.<BR><BR>Cheers,<BR> Timo <BR><BR><BR></P></body></html>