Page 1 of 1

VS 2008 and mux=ts{csa-ck=MYKEY} ?!

Posted: 05 Apr 2012 13:33
by saricnet
Hello everyone, I am currently working in VS 2008 using activex for my video player based on --ts-csa-ck, but I do not know how to add this feature in the player ?

my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using AxAXVLC;

namespace vlcTest
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
AxVLCPlugin vlc;
public Window1()
{
InitializeComponent();
vlc = new AxVLCPlugin();
windowsFormsHost1.Child = vlc;
}

private void button1_Click(object sender, RoutedEventArgs e)
{

string mrl = "http://127.0.0.1:1234";

vlc.addTarget(mrl, null, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0);
vlc.play();
}
}
}
}

Is it possible to use --ts-csa-ck mykey as command line arguments ?, like:

string key = "--ts-csa-ck 0123456789123456";
string mrl = "http://127.0.0.1:1234";

vlc.addTarget(mrl, key, AXVLC.VLCPlaylistMode.VLCPlayListReplaceAndGo, 0);
vlc.play();

Thanks

Re: VS 2008 and mux=ts{csa-ck=MYKEY} ?!

Posted: 06 Apr 2012 10:00
by saricnet
Any help ?