]> git.sesse.net Git - vlc/commit
VLCKit: url support for VLCMedia
authorMalte Tancred <malte@frontbase.com>
Fri, 5 Jun 2009 13:04:40 +0000 (15:04 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Fri, 5 Jun 2009 13:04:40 +0000 (15:04 +0200)
commitf459c2719e6cd740f3cb81180cab009907b781cc
tree18d6ced01c25812aab36a15634ca9a200b0eb251
parentcb2a5b49fdbcd7951dbb9b1a8fb5d5adb78af160
VLCKit: url support for VLCMedia

The class VLCMedia used only the trailing path part of the URL it was handed. I changed the roles of initWithPath: and initWithURL: by letting initWithPath: create an NSURL, and initWithURL: hand the complete URL to libvlc_media_new. With this change I'm able to play network streams, not just local movie files.

Signed-off-by: Derk-Jan Hartman <hartman@videolan.org>
THANKS
projects/macosx/framework/Sources/VLCMedia.m