mediaview help
Posted
#1
(In Topic #728)
Enthusiast

1.. Where is the mediaview control in the toolbox? I am currently creating the control programatically. {answered}
2.. When I create a mediaview control programatically and put in the url for the video I see the black box with a play and stop button but pressing the play button produces an error in gambas "Cannot set status". if I try to programatically play using mediaview.play I get the same error. {Answered}
3.. I am trying to view an IP Camera using the url that works in VLC. Am I doing something wrong?
As with any programming project we learn new things and I have much to learn with this one. So please, any help is appreciated.
Posted
Guru

Posted
Enthusiast

now that it is working I am finding that I can't figure out how to force the video to a specific size. it resizes automatically filling the window. I can't seem to force the size to what I want. also noted that setting mediaview.muted=true in code does nothing I have to hit the mute on the video if I find the control. something wrong I am doing?
Posted
Guru

In the form designer where you can select Form/View/container type objects there will be a new tab called Media on the far right hand side
2. & 3. looks like you fixed that.
To make it not stretch it must not be in a panel that is 'arranged' (Arrange.fill, arrange.Horizontal, etc) It must be Arrange.None
and it's expand property must be false.
It's most likely your form layout causing it to expand.
place it in a panel or something that does not expand with the form.
Posted
Trainee
{Answered} doesnt really help - what was the answer ? - I have the same issue
Posted
Guru

I had to look at a german version and it was a simple issue with the url command. Thanks. once again I am thinking too complex.
Then the dreaded "Cannot set status" was another issue
1 guest and 0 members have just viewed this.



