[Live-devel] Re: liveMedia on WINCE
Chris Kavanagh
librestreamkav at hotmail.com
Wed Jun 29 12:09:46 PDT 2005
No problem with dateHeader() but ...
In groupsock I got rid of ..
#ifdef _WIN32_WCE
#include <afxwin.h>
#include <wcealt.h>
#define ctime wce_ctime
and hacked this - feel free to niceify :) ...
char const* timestampString() {
struct timeval tvNow;
gettimeofday(&tvNow, NULL);
static char timeString[9]; // holds hh:mm:ss plus trailing '\0'
// char const* ctimeResult = ctime((time_t*)&tvNow.tv_sec);
wchar_t dateFormat[20];
int returnVal;
SYSTEMTIME systemTime;
// Current Time
GetSystemTime(&systemTime);
// Format the current time
returnVal =
GetTimeFormat(LOCALE_SYSTEM_DEFAULT,0,&systemTime,L"HH':'mm':'ss",
&dateFormat[0],sizeof(dateFormat));
// Convert the format to ascii
wcstombs(timeString,dateFormat,sizeof(dateFormat));
return (char const*)&timeString;
}
>Date: Mon, 27 Jun 2005 07:58:54 -0700
>From: Ross Finlayson <finlayson at live.com>
>Subject: Re: [Live-devel] Re: liveMedia on WINCE
>To: "LIVE.COM Streaming Media - development & use"
> <live-devel at ns.live.com>
>Message-ID: <6.2.1.2.1.20050627075405.02949180 at localhost>
>Content-Type: text/plain; charset="us-ascii"; format=flowed
>
>
> >I just created my own projects and workspaces for each of the
> >libraries(BasicUsageEnvironment, UsageEnvironment, liveMedia and
> >groupsock). You could start by creating a "static library" project and
> >Project->Add to Project -> Files.
> >
> >It's pretty simple you just have to make sure you set up your project
> >settings to:
> >have the proper defines added for you platform and the proper paths set.
>
>That's good to hear.
>
>Did you run into the same problem that Pierre l'Hussiez reported - i.e.,
>the need to rewrite the "dateHeader()" function in
>"liveMedia/RTSPServer.cpp" to use functions other than "gmtime()" and
>"strftime()"?
>
>Also, did you run into any problems with the "fseek64()" code in
>"liveMedia/ByteStreamFileSource.cpp"? (Pierre did, but he was using an old
>version of the code.)
>
>In other words, let me know if there are any changes that should be made to
>the released source code to make compiling for WINCE easier.
>
>
> 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
>
>
>End of live-devel Digest, Vol 20, Issue 26
>******************************************
_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
More information about the live-devel
mailing list