Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: Embedded VLC ActiveX control

  1. #11
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Aha - got the wrong format for a file: URL - it works!!!

    Odd that it increases playlist.itemcount even when the media isn't found
    --Rob

  2. #12
    Join Date
    Mar 2006
    Location
    Sydney, Australia
    Posts
    787

    Default

    you got it working with an embedded activeX component?
    XP + G4 + Lua = :)

  3. #13
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Yup, although it's a bit clunky ie you need to use something like
    Code:
    COM.CallMethod('VLC', 'playlist.add', fileURL)
    COM.CallMethod('VLC', 'playlist.play')
    I'd prefer to be able to acquire the VLC object and use something like vlc.playlist.add(fileUrl) but that's probably not going to happen anytime soon.

    This should make it into build 120
    --Rob

  4. #14
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    Hi Rob,

    see earlier posts.

    I think it's much more complicated :

    I need to use the addTarget function which has an array with all the various options.

    and also I read document.vlc.playing status

    e.g. :

    Code:
     
       options = new Array(":input-repeat=1",
                 ":file-caching=3000",
                 ":mms-caching=3000",
                 ":http-caching=3000",
                 //":vout-filter=deinterlace",
                 //":deinterlace-mode=x",
                 ":aspect-ratio="+aspect,
                 ":http-reconnect"
                 //,":no-overlay",":no-directx-3buffering"
                 );
          
          if (vlc.Playing)
          {
           document.vlc.stop();
          }
           
          document.vlc.playlistClear();
          document.vlc.addTarget(targetURL, options, 2, -666);
    Marcel

  5. #15
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    I think that may be for VLC prior to 0.8.5.1 unless addTarget is an undocumented method?

    There is another version of playlist.add that takes additional name and options parameters. Not sure what the options parameter is supposed to look like.

    However, the above code works in NR builds after 119
    --Rob

  6. #16
    Join Date
    Mar 2006
    Location
    Sydney, Australia
    Posts
    787

    Default

    Your right about that being for a previous version of VLC.

    Looking in the axvlc.dll under //VLC Playlist APIs i think that would now be:
    Code:
      //Add a playlist item.
      function add(uri: BSTR; out name: Variant; out options: Variant): I4; stdcall;
    just dont ask me what it means
    XP + G4 + Lua = :)

  7. #17
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Seems a bit weird using out parameters for the name and options! And, for that matter, name being a variant, unless that's to allow it to be optional?
    --Rob

  8. #18
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    Quote Originally Posted by Rob H View Post
    I think that may be for VLC prior to 0.8.5.1 unless addTarget is an undocumented method?
    I don't know, but it works ok with the latest version of VLC...

    Marcel

  9. #19
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Strange. Perhaps it's a different GUID? Ah, in the examples they add version="VideoLAN.VLCPlugin.2" to the parameters of the embed tag.
    --Rob

  10. #20
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    2,140

    Default

    ok,

    I used this :

    Code:
     
        <object classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8"
        codebase="http://download.videolan.org/pub/vid...in32/axvlc.cab"
                width="<% return Marcel.vlc.tvwidth %>" height="<% return Marcel.vlc.tvheight %>" id="vlc" events="True">
    Marcel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •