Create a media player playing env error in Windows Mobile

This forum is about all development around libVLC.
infoeyes2010
New Cone
New Cone
Posts: 4
Joined: 11 Aug 2010 03:59

Create a media player playing env error in Windows Mobile

Postby infoeyes2010 » 21 Aug 2010 18:25

Hi,

I use libvlc.dll (v1.1.0 and v1.2.0) from wince nightly build (http://nightlies.videolan.org/build/wince/) to develop an applicaiton sample. However, there is an error when the program creates a media player playing environement.

/* Create a media player playing environement */
mp = libvlc_media_player_new_from_media (m);

I run the program in both Windows Mobile 5 and 6. The error is the same. The following is the sample.

Any help?

Thanks in advance.
-----------------------------------------------------------------------------------------------------------------

#include <stdio.h>
#include <stdlib.h>
#include <vlc/vlc.h>
#include <dir.h>
#include <windows.h>

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{

//MessageBoxW(0, L"BEGIAN", L"BEGIAN", 0);

int status;
status = mkdir("/sample/sample_m4v");


libvlc_instance_t * inst;
libvlc_media_player_t *mp;
libvlc_media_t *m;

/* Load the VLC engine */
inst = libvlc_new (0, NULL);

/* Create a new item */
m = libvlc_media_new_path (inst, "/sample/sample.m4v");

//error here!
/* Create a media player playing environement */
mp = libvlc_media_player_new_from_media (m);

/* No need to keep the media now */
libvlc_media_release (m);

/* play the media_player */
libvlc_media_player_play (mp);

//sleep(1000); /* Let it play a bit */
//system("pause");
int i=1;
int j=1;
for (i=1;i<10000000;i++){
for (j=1;j<100;j++);
}

/* Stop playing */
libvlc_media_player_stop (mp);

/* Free the media_player */
libvlc_media_player_release (mp);

libvlc_release (inst);

return 0;
}

infoeyes2010
New Cone
New Cone
Posts: 4
Joined: 11 Aug 2010 03:59

Re: Create a media player playing env error in Windows Mobil

Postby infoeyes2010 » 23 Aug 2010 04:20

Is any one knows the problem?

Thanks


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 1 guest