Is it posible to play the vedios in navision form

Naidu.GNaidu.G Member Posts: 31
Hi Experts,

i am using the 'Windows Media Player'.MediaPlayer automation server. In this i am usingopen method to open the audio file and vedio files. But the audio file is open and playing but the vedio file is not playing what's the reason i am not able to know and how we can play the vedio files in navison form using automation server.





Thanks & Regards,
Naidu.
](*,)

Comments

  • kinekine Member Posts: 12,562
    May be that the player needs some window to play the video. May be you can set the automation to open own window for the video. May be it is not possible under NAV. But these are just tips what can be the problem...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    First be sure, that you have the correct codec.

    Second try this.
    Name	DataType	Subtype	Length
    WindowsMediaPlayer	Automation	'Windows Media Player'.WindowsMediaPlayer	
    
    if isclear(WindowsMediaPlayer) then
      create(WindowsMediaPlayer);
    
    WindowsMediaPlayer.openPlayer('C:\Temp\Down\brain_colin27T1.avi');
    

    Regards
    Do you make it right, it works too!
  • Naidu.GNaidu.G Member Posts: 31
    Hi garak,
    i created the variable like
    Name DataType Subtype Length
    WindowsMediaPlayer Automation 'Windows Media Player'.WindowsMediaPlayer
    But it show the error like

    The variable WindowsMediaPlayer :: CURRENTPLA is defiend more than once.
    An Example could be: 'File' exists as both a data type and a global variable.

    here i created only one variable.


    Thanks & Regards,
    Naidu. ](*,)
  • kinekine Member Posts: 12,562
    1) Try to use shorter variable name
    2) Try to define it as local variable
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    Create the Variable local.
    Do you make it right, it works too!
  • Naidu.GNaidu.G Member Posts: 31
    Thanks for Reply kine & garak.

    but i want to open the vedio in navision form ok i will try that. what's the difference between the local variable and global variable in this situation. In here we are not create windowsmediaplayer variable more than once but it show the error more than one variable is created that means is it posible to use the windowsmideaplayer variable without create the variable.



    Thanks & Regards,
    Naidu. ](*,)
  • kinekine Member Posts: 12,562
    It is problem of variable name and max. length which is used in NAV... it behaves differently when defined as local and global...

    To be able to play the video in NAV form you will need to somehow get the NAV window handle etc. and it is not possible without creating special DLL for that...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    or you test it with this little example.
    Do you make it right, it works too!
Sign In or Register to comment.