1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

DLNA DMC (Digital Media Controller) class for Delphi

Discussion in 'Delphi Programming' started by AdminDF, Jul 10, 2015.

  1. AdminDF
    Online

    AdminDFAdminDF is a Verified Member Delphifan Staff Member DF Staff

    TUpnpDMC is a class that implements a DLNA DMC (Digital Media Controller) in Delphi.
    I needed some Delphi code to play Videos from my server to my SAMSUNG TV.
    I could only find some partial implementation, one in Visual Basic and some code in Delphi, 
    bur not a complete DMC, so I wrote this.
    There is an example application in the directory UPNPDelphi.
    On second thought, I should heva named the class TDLNADMC and the same for the example.
    For now, I am just sharing this code.

    You can browse the available servers and renderers on your system.
    Once found, you can select an item from the server and play it on a renderer.
    Then you can pause, stop, play, seek that item

    You create a TUpnpDMC object by calling _create_, 
    supplying an owner and a TStrings (not NIL) used as Log
    You can search devices by _SearchDevices_
    Set _OnDeviceListChanged_ to receive notifaction on Devices available
    Then retrieve Servers and Renderers by inpecting _ServerCount_ and _GetServerName_ etc.
    Select a Server with _SetServerIndex_, the same for a Renderer
    Browse the Server tree with _BrowseRoot_ and subdirectories with _BrowseIndex_,
    go back with _Back_
    Inspect items with _GetItemName_ and _ItemCount_
    Select an item with _SetItemIndex_

    Now you can Play, Pause, Seek, SetPosition etc the item with the corresponding methods.
    You can retrieve information bij GetPosition and GetPlayStatus

    Hidden Content:
    **Hidden Content: You must click 'Like' before you can see the hidden data contained here.**
     
    jccp5 likes this.
  2. wflores
    Offline

    wflores DF Junior

    RE:

    Thanks
     
  3. vcorp
    Online

    vcorp DF Junior

    RE:

    Thanks!!!
     
  4. Hooli92
    Online

    Hooli92 Guest

    gracias
     
  5. Yveske
    Offline

    Yveske DF Member

    Thanks !
     
  6. delphilord
    Online

    delphilord Guest

    thanks3
     
  7. death_claws
    Offline

    death_claws DF Junior

    RE:

    thank you for sharing...
     
  8. syscp
    Offline

    syscp DF Junior

    thank you!
     
  9. ToxicDelphi
    Offline

    ToxicDelphi DF Junior

    RE:

    thank's a lot !
     
  10. fatih1985
    Offline

    fatih1985 DF Member

    RE:

    Thanks
     
  11. russocorp
    Offline

    russocorp DF Junior

    Muito bom, irei testar em minha tv :)
     
  12. parkjin
    Online

    parkjin Guest

    Thanks
     
  13. Porcelain2
    Offline

    Porcelain2 DF Member

  14. otavioscool
    Offline

    otavioscool DF Junior

Share This Page