logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Chris Daum  
#1 Posted : Monday, December 20, 2021 6:29:08 PM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 66
Man
Germany

Thanks: 12 times
Was thanked: 8 time(s) in 8 post(s)
Hi Champs,

I have several titles in one of my projects and refer to a XML datasource
containing the file path to the image.

When I run my visual basic project and select the guest team I
send a comand DataSourceSelectRow and all titles update one image box.

Couple of titles do the right thing, some do not show the correct image
some do not show any image anymore... This occurs randomly.

I already:
- ran all images through Gimp and set them to the same size
- rebuilt all titles to fit size of image boxes (couple of pixels larger) to size of images

when I do right click on any of the not correct shown titles, "Reload" all is fine.

Is there a way to integrate the reload command in my script?
I would like to prevent telling my customers "Of course it works, but you have to...blabla... :-)


vMIx API Guide
does not show a reload command neither the shortcut list in vMix...
doggy  
#2 Posted : Monday, December 20, 2021 6:48:10 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 4,159
Belgium
Location: Belgium

Thanks: 243 times
Was thanked: 748 time(s) in 610 post(s)
What is the the exact instruction (code) given in your VB.net project ( related to your data source and image location and title format) and logic around it?

how many titles are updating ? all related to the same datasource, same image ? how big are the files? Where are they located?

why not have one title for the "many" and use as layer for all the others ?

Reloading is not the proper answer/solution
Chris Daum  
#3 Posted : Monday, December 20, 2021 8:01:17 PM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 66
Man
Germany

Thanks: 12 times
Was thanked: 8 time(s) in 8 post(s)
Overview of titles:

UserPostedImage

maybe with #7/8 the idea with layers could work (each of them contains already two sides)
but I need #9/10/11 seperately because when e.g. a player substitution takes place
I select player name etc from another datasource (players.xml)
All titles (image boxes) refer to the same datasource "logos.xml":

UserPostedImage UserPostedImageUserPostedImage


max size of indivudual files is 100kB (350px x 350px png)

Code inside the app:

Code:
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        lblGast.Text = cbxSelGast.SelectedItem.Replace("_", " ").Replace("1FC", "1. FC")
        Gast = cbxSelGast.SelectedItem.Replace("_", " ").Replace("1FC", "1. FC")
        _gast = cbxSelGast.SelectedItem
        Try
            mix.VmixCmd("DataSourceSelectRow&Value=Logos," & cbxSelGast.SelectedIndex)
            Thread.Sleep(250)
            BgwNullPosition.RunWorkerAsync()
        Catch ex As Exception

        End Try
    End Sub

The BackGroundWorker "BgwNullPosition" sets all scores in the titles to zero, cbxSelGast is the combobox showing
the teams(tables) based in an ACCESS database
The order of teams in the database is identical to the order of the logos in the xml
so cbx...SelectedIndex reflects same index as row index in datasource

"mix.VmixCmd" refers to my vMix Class dll which contains:
Code:
      Public Sub VmixCmd(comand As String)
            Com = Net.WebRequest.Create("http://127.0.0.1:8088/api/?function=" & comand)
            Res = Com.GetResponse
            Res.Close()
        End Sub

Com/Res are defined as local Objects inside the class (Webrequest, Webresponse...)

Got a bit of a huge reply, but hopefully helpful.. :-)
Chris Daum  
#4 Posted : Monday, December 20, 2021 8:09:47 PM(UTC)
Chris Daum

Rank: Advanced Member

Groups: Registered
Joined: 11/20/2020(UTC)
Posts: 66
Man
Germany

Thanks: 12 times
Was thanked: 8 time(s) in 8 post(s)
maybe this reflects the problem best...
Title "EckenOverlay" in the preview and the title editor next to each other.
The title itself shows the wrong image, title editor the correct one

UserPostedImage

so I think the reference to the datasource works,
but then inside vMix something weird (or I do not understand...) happens

and... title "GastOverlay" chose to show the same incorrect logo as "Eckenoverlay" :-)

but then again

UserPostedImage

"SpielstandOverlay" shows the correct image

The vMix API return also looks as if all is set:

UserPostedImage
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.