Page 1 of 1

VLCKit and http movies

Posted: 30 Apr 2011 23:26
by ropita
Hi,

I'm trying to run this simple code:

Code: Select all

videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]]; [[window contentView] addSubview:videoView]; [videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable]; // Init the player object player = [[VLCMediaPlayer alloc] initWithVideoView:videoView]; media = [[VLCMedia alloc] initWithURL:[NSURL URLWithString:@"http://video.ted.com/talk/podcast/2011/None/MikeMatas_2011.mp4"]]; [player setMedia:media]; [player play];
I run my apps I received: “EXC_BAD_ACCESS”. I was debugging and the error are in [player play].

I init VLCMedia with local movie and all run ok. But When I try load a http movie I received error. Help please!

Re: VLCKit and http movies

Posted: 01 May 2011 00:52
by fkuehne
Please provide a back trace..

Re: VLCKit and http movies

Posted: 01 May 2011 02:16
by ropita
Here it's:

Code: Select all

0 OpenWithCookies 1 Open 2 module_need 3 __access_New 4 InputSourceInit 5 Init 6 Run 7 thread_entry 8 _pthread_start 9 thread_start
I'm using VLCKit binary version from: http://jones.videolan.org/~videolan/fpk ... mework.zip (post: viewtopic.php?f=12&t=84214)

Re: VLCKit and http movies

Posted: 07 Jun 2011 09:14
by pocket12media
Thanks to provide this track.

Re: VLCKit and http movies

Posted: 10 Jun 2011 23:03
by ajmas
First thing to try is to see if the URL plays outside of your application. You may find that it doesn't play in other applications either. If this happens for any 'bad stream', then it may be the error handling may need to be re-examined?

Re: VLCKit and http movies

Posted: 21 Dec 2011 05:30
by a23108022
I also encountered the same problem when I try to play a video on the network, the error will not bounce.
Identify problems found in http.c file

p_sys-> psz_user_agent = var_InheritString (p_access, "http-user-agent");

Executed out.

Encounter the same problem as well
viewtopic.php?f=12&t=94295&p=320876#p320876

help me solve this problem, PLZ.