LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Media Player 9 via ActiveX in LabVIEW 7

Hi All,

I had an app in 6i that was a kind of video editing tool and wanted to
upgrade it to LabVIEW 7. Also in the upgrade process I have Windows
Media Player 9 now.

Problem, I can't get diddle to run.

Specifically, I'm just trying to load an mpg file and get an error. I
run my activeX refnum into a property node and select the currentmedia
property. I then run that into another property node and select the
name property, change it to write and wire in a file path name
converted to string.

When I run, I'm getting an error that says the currentmedia refnum I'm
running into the 2nd property node is a null reference. Doesn't make
sense as all the properties are shown for currentmedia in the 2nd
property node.

Any ideas?


Greg
0 Kudos
Message 1 of 5
(3,351 Views)
gcc9@cdc.gov (Greg Cole) wrote in message news:<46107094.0312230810.13afd5bc@posting.google.com>...
> Hi All,
>
> I had an app in 6i that was a kind of video editing tool and wanted to
> upgrade it to LabVIEW 7. Also in the upgrade process I have Windows
> Media Player 9 now.
>
> Problem, I can't get diddle to run.
>
> Specifically, I'm just trying to load an mpg file and get an error. I
> run my activeX refnum into a property node and select the currentmedia
> property. I then run that into another property node and select the
> name property, change it to write and wire in a file path name
> converted to string.
>
> When I run, I'm getting an error that says the currentmedia refnum I'm
> running into the 2nd property node is a null referenc
e. Doesn't make
> sense as all the properties are shown for currentmedia in the 2nd
> property node.
>
> Any ideas?
>
> Greg

try movie player pro activex
www.viscomsoft.com/movieplayerpro.htm
0 Kudos
Message 2 of 5
(3,351 Views)
Can you attache a simple Vi that show sthis so we can reproduce and try to figure it out?
One thing to be careful of is that LabVIEW is pretty strict about the activeX classes etc. Like you noted you will need to be specific about the version of the control, because LabVIEW sees the activeX object as Media Player 9 not just media player.
0 Kudos
Message 3 of 5
(3,351 Views)
I have to use Google Groups to access this group because of site
security and am unable to post an attachment.

There is some odd mojo going on as my errors vary and can not be
reproduced. Sounds like a cop-out but the deeper I dive in the more
I'm lost.

I add an activeX control for windows media player 9, but the property
node comes up "IWMPPlayer4". I finally got a video to play but when I
close and restart it fails. I select stretchtoiFit to true and this
works when video
is stopped but when I restart the window resizes.

Basic setup:

- ActiveX icon plugs in to a property node where I set:
- stretchtoFit, Fullscreen (to true) and uimode (to none)

- Inside event structure I have a load file button event where I set:
- URL (to full file p
ath converted to string)

This worked initially with caveats above, I close and reload and get
audio only.

I don't know if there is a specific sequence these properties need to
be set in but that is my next line of attack.

Thanks for the reply and any feedback appreciated.

Gc.

Evan wrote in message news:<506500000005000000C0470100-1068850981000@exchange.ni.com>...
> Can you attache a simple Vi that show sthis so we can reproduce and
> try to figure it out?
> One thing to be careful of is that LabVIEW is pretty strict about the
> activeX classes etc. Like you noted you will need to be specific
> about the version of the control, because LabVIEW sees the activeX
> object as Media Player 9 not just media player.
0 Kudos
Message 4 of 5
(3,351 Views)
Hi Greg,

I have similar problem within WMP9 and LabVIEW7. I started with LV7 and because of crash everytime when I run the program, I change to the LV6.1. In my case program crash every time when I was trying to set profile in IWMEncSourceGroup.profile(put) property. In LV7 the program don't show profile(put) or profile(get) properties at all, there is only property named profile two times ?? When I set second profile property then program switch automatically that selected property to other one ?

Have you any solution yet ?

Hannu
0 Kudos
Message 5 of 5
(3,351 Views)