[Live-devel] Streaming on the Device . . .
flavio.oliveira at indt.org.br
flavio.oliveira at indt.org.br
Thu Aug 26 16:50:59 PDT 2004
Hi,
GroupsockHelper.cpp:
I changed the source to use ioctl(), and I don't have problems with link, but ...
symbian ioctl() sintax: int ioctl(int, int, void*);
So, what's the value to the second parameter? Symbian doesn't have a constant FIONBIO ...
Is there a default value to this constant?
NetCommon.h:
#define EWOULDBLOCK WSAEWOULDBLOCK
Here I have a similar problem, ... there isn't EWOULDBLOCK in the symbian ....
On Demand RTSP Server:
What are the files that I must use to get a MP3 Streaming using On Demand RTSP Server?
I got to compile and Linker using the files above, so Do I need something more to get first streaming test?
SOURCEPATH ..\groupsock (ALL FILES ADDED)
SOURCEPATH ..\BasicUsageEnvironment (ALL FILES ADDED)
SOURCEPATH ..\UsageEnvironment (ALL FILES ADDED)
SOURCEPATH ..\liveMedia
SOURCE Media.cpp
SOURCE RTSPServer.cpp
SOURCE ServerMediaSession.cpp
SOURCE PassiveServerMediaSubsession.cpp
SOURCE OnDemandServerMediaSubsession.cpp
SOURCE FileServerMediaSubsession.cpp
SOURCE MP3AudioFileServerMediaSubsession.cpp
Flavio
-----Original Message-----
From: live-devel-bounces at ns.live.com
[mailto:live-devel-bounces at ns.live.com]On Behalf Of ext Ross Finlayson
Sent: Wednesday, August 25, 2004 18:53
To: LIVE.COM Streaming Media - development & use
Subject: RE: [Live-devel] Streaming on the Device . . .
>But when I tried to compile I got the message: unresolved external symbol
>fcntl
>
> int curFlags = fcntl(newSocket, F_GETFL, 0);
> if (fcntl(newSocket, F_SETFL, curFlags|O_NONBLOCK) < 0) {
> socketErr(env, "failed to make non-blocking: ");
> _close(newSocket);
> return -1;
> }
If you look at that code - in "groupsock/GroupsockHelper.cpp" - you'll see
that there's a special #ifdef there for VxWorks. (VxWorks uses "ioctl()"
instead of "fcntl()".) Perhaps this will also work for Symbian?
Try the following:
Change the line
#elif defined(VXWORKS)
to
#elif defined(VXWORKS) || defined(SYMBIAN)
and add
-DSYMBIAN=1
to your "config.symbian" file (or whatever config file you used when
running "genMakefiles").
Let me know if this works.
Ross Finlayson
LIVE.COM
<http://www.live.com/>
_______________________________________________
live-devel mailing list
live-devel at lists.live.com
http://lists.live.com/mailman/listinfo/live-devel
More information about the live-devel
mailing list