PColik Posted September 17, 2011 Share Posted September 17, 2011 Önce Projenizde ListBox ve MediaPlayer Plugin Oluşturun. Oluşturduğunuz ListBox'un İsmini ListBox1 Olarak, Media Player Plugin'in İsmini İse Plugin1 Olarak Değiştirin. Daha Sonra Project >> Dependencies.. Windows Media Player ActiveX Control (6.0.0.0+) Seçeneğini İşaretleyin. Ve Kodları Yazın. [b]GLOBAL FUNCTIONS[/b] [color="#ff0000"]function yurut(path)[/color] [color="#ff0000"]MediaPlayer.Load("Plugin1", path);[/color] [color="#ff0000"]MediaPlayer.Play("Plugin1");[/color] [color="#ff0000"]end[/color] [b]ListBox1 Script >> On Select[/b] [color="#ff0000"]tblSel = ListBox.GetSelected(this);[/color] [color="#ff0000"]if tblSel then[/color] [color="#ff0000"] item = tblSel[1][/color] [color="#ff0000"] local sLBData = ListBox.GetItemData(this, tblSel[1]);[/color] [color="#ff0000"] yurut(sLBData)[/color] [color="#ff0000"]end[/color] [color="#ff0000"]Ve ListBox1'in Özelliklerine Girin. Item Text Yazan Yere. Görünmesine İstediğiniz İsmi Yazın.[/color] [color="#ff0000"]Item Data Yazan Yere İse Media Player Pluginde Çalacak Olan Müziğin veya Video'nun Linkini Yazın.[/color] [color="#0000ff"]Örnek;[/color] [color="#0000ff"]AutoPlay\\Audio\\müzik.mp3[/color] [color="#0000ff"]Item Data Yazan Yere İnternetteki Bir Müziğin veya Videonun, İstersenizde Bir Video Kanalının Linkini Yazın.[/color] [color="#0000ff"]Örnek;[/color] [color="#0000ff"]mms://95.0.159.138/TRTHD[/color] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.