vMix Forums
»
General
»
GT
»
Title Images not Updating from DataSource
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 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 Guidedoes not show a reload command neither the shortcut list in vMix...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 post(s)
|
Overview of titles: 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": 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.. :-)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/20/2020(UTC) Posts: 74 Thanks: 13 times Was thanked: 9 time(s) in 9 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 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 "SpielstandOverlay" shows the correct image The vMix API return also looks as if all is set:
|
|
|
|
vMix Forums
»
General
»
GT
»
Title Images not Updating from DataSource
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close