/srv/irclogs.ubuntu.com/2015/07/07/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
dholbachgood morning07:01
=== JamesTai1 is now known as JamesTait
=== karni is now known as karni-afk
=== karni-afk is now known as karni
=== _salem is now known as salem_
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
ohmyhello everybody14:07
ohmyi'd like to stream webcam from c++ to QML, from C++ side i've subclassed QAbstractVideoSurface and thanks to frameAvailable im able to get QImage14:08
ohmyim stuck how to get this QImage (updated) from QML side, any ideas please ?14:08
mr-tthi14:10
mr-ttis there a (very) simple example on how to create a c++ + qtquick app?14:10
mr-ttpreferrably something that works in qtcreator as well14:11
greybackohmy: you should learn how qtmultimedia integrates with qml. You've already done good by implementing a QAbstractVideoSurface14:21
greybackyou don't want to get a QImage (which is not on the GPU). Instead it is better to put the webcam frame into a texture on the GPU, which then QtMultimedia & QML can render14:23
ohmygreyback: sure, the thing is that i need  a way to view theses images in two (or more different) windows, reason why i'm not using the camera element of QML14:24
ohmygreyback: and i'm nnot OpenGL expert, i really just need to grab these frames and show them in two separate qml containers14:25
ohmygreyback: do you know any example that can helps me ?14:25
greybackohmy: you need to view the live webcam output in 2 separate places simultaneously? Or a live view in one, and a static frame in another14:25
ohmygreyback: two live in 2 separate QML containers at the same time (same PC)14:26
greybackohmy: hmm, I suggest you investigate 2 channels. One is to try writing a qml test file using QtMultimedia to play a video14:29
greybackhttps://developer.ubuntu.com/api/qml/sdk-14.10/QtMultimedia.VideoOutput/14:29
greybackand then modify it to see if you can have two VideoOutputs using the same MediaPlayer as their source14:30
greybackif that works, I suggest you continue your work and integrate your webcam as a backend for qtmultimedia14:30
ohmygreyback: im trying, AFAIK you can only have one VideoOutput :( but i'm trying, thanks a lot14:31
greybackohmy: if you are indeed correct, you'll have a tougher time of it. You'll need to write a custom QQuickItem do to the job.14:32
ohmygreyback: thanks a lot14:33
greybackohmy: this might interest you: http://pastebin.ubuntu.com/11836175/14:59
greybackohmy: it shows the video twice on screen. It's not the most efficient approach however15:00
greybackbut it might be enough for you15:00
ohmygreyback: te first approach does not look to work :( bool QDeclarativeVideoOutput::createBackend(QMediaService*) Media service has neither renderer nor window control available.15:16
ohmygreyback: thanks a lot trying this one15:16
greybackohmy: that error I think has more to do with qtmultimedia not finding a backend which can play the media15:17
ohmygreyback: i see15:17
ohmygreyback: it happends only when i use a second VideoOutput15:18
greybackhmm15:18
greybackok, well see my pastebn above. It uses only 1 VideoOutput, but displays is twice15:18
ohmygreyback: i saw shader trick, its very nice, the thing is that i need to show the videos in two separate windows15:18
greybackoh windows15:18
ohmygreyback: yes i understood15:18
greybackstill might be do-able15:19
ohmygreyback: yes  windows/rectangles15:19
ohmygreyback: thanks a lot for your time, really appreciated, i'm stuck since few hours now15:21
greybackohmy: http://pastebin.ubuntu.com/11836259/15:22
greybackproves the shader trick works across windows15:22
greybacksince it's using an FBO in the background15:22
ohmygreyback: thanks so much, i'm trying to understand why its not working on my PC15:30
ohmygreyback: QQuickItem: Cannot use same item on different windows at the same time.15:31
greybackohmy: I'm using qt5.4 on vivid.15:31
greybackto make video playback work, I had to install one of these: https://launchpad.net/~mc3man/+archive/ubuntu/gstffmpeg-keep/+packages15:31
ohmygreyback: sure i have already gstreamer ffmpeg15:44
ohmygreyback: on video is displayer but the other window is white15:44
ohmygreyback: its probably the way im loading qml's15:45
greybackohmy: I just load that file with "qml"15:45
ohmygreyback: sure im using QQmlApplicationEngine load15:46
ohmygreyback: it works perfectly, im trying now to change MediaPlayer and use Camera element15:50
ohmygreyback: really thanks15:50
greybackohmy: welcome!15:50
=== chihchun is now known as chihchun_afk
dubstar_04what channel do i need to flash to get the wily branch?16:43
dubstar_04ubuntu-touch/devel-proposed/ubuntu?16:44
ahoneybunthe App Dev School workshops are out of date no?17:13
=== zsombi_ is now known as zsombi
mr-ttcan anyone tell me how to change the text of a text object from c++ code?17:19
balloonsdubstar_04, that should get you wily17:29
balloonseven just ubuntu-touch/devel/ubuntu should17:29
dubstar_04balloons, thanks.17:33
ahoneybunhow much of this is still good: https://docs.google.com/document/d/1jgn1nJeBjgQO3RzDMZ44wM606u6u02U6bVgtaSHkUA0/edit ?17:45
ahayzenpopey, is there any other purpose other than crediting the authors for https://code.launchpad.net/~popey/music-app/add-authors/+merge/263910 ? .. eg a hook in click to link to this and then display the authors in the copyright info in system-settings?17:56
popeyahayzen: two fold, thanking, but also, I want to link to it from a website17:57
popeyrather than have a list of contributors on the website17:57
popeybecause the list is long and it makes the page look bad :)17:57
ahayzenpopey, ah cool :-) hopefully we'll be able to have a hook in click/snappy one day :-)17:57
popeyyeah!17:57
ahayzenpopey, did you auto generate this from the bzr history ?17:59
popeyyes17:59
popeyalso, sed, sort, uniq etc17:59
ahayzensweet \o/17:59
popeymight get the new icon in soon, wonder if anyone will notice the music one, it's quite subtle18:02
ahayzenprobably won't...i hardly did lol18:02
popeyheh18:02
popeyi had to double check it was the new one :)18:02
ahayzenpopey, after https://code.launchpad.net/~ahayzen/music-app/fix-1470755-playlist-0-append/+merge/263707 i sense us wanting to land a click anyway18:02
popeywhich must mean the old one was already awesome18:02
ahoneybunhey all is "delegate: Subtitled  " dead18:02
ahoneybun?18:02
popeyahayzen: that would be great, post OTA518:03
ahayzenpopey, it'll hopefully be in tonight, just some OCD from me/victor in the comments at the moment :-)18:03
popeyhaha18:03
ahoneybunahayzen: ^18:04
ahayzenzsombi, hi, have you been able to look at bug 1469471 and bug 1468100 both are related to the new listitems and the first is blocking it from landing in music18:05
ubot5bug 1469471 in ubuntu-ui-toolkit (Ubuntu) "Checkbox shown in the ListView Multiselect mode does not obey selected property" [Undecided,Confirmed] https://launchpad.net/bugs/146947118:05
ubot5bug 1468100 in ubuntu-ui-toolkit (Ubuntu) "ListItems with trailing but no leading actions, after swiping right break selectMode" [Undecided,Confirmed] https://launchpad.net/bugs/146810018:05
ahayzenahoneybun, https://developer.ubuntu.com/api/apps/qml/sdk-15.04/Ubuntu.Components.ListItems.Subtitled/ ?18:06
ahoneybunSubtitled is not a type18:07
ahoneybunthe SDK says18:07
ahoneybunI'm following a old guide so it might be that18:07
ahayzenahoneybun, check the import is right18:07
ahoneybunimport QtQuick.XmlListModel 2.0 ?18:08
ahayzenimport Ubuntu.Components.ListItems 1.018:08
ahoneybunweird18:09
ahayzenOMG Neverball is working on mako! .. see you next week folks i've got some gaming todo lol18:09
ahoneybunso it does not like the "as ListItem" at the end anymore18:09
ahoneybunlol18:09
ahoneybunyay it work!!!!18:09
ahayzenahoneybun, if you were using as ListItem then you need todo ListItem.Subtitled {18:10
* ahoneybun is making a Full Circle Mag app18:10
ahoneybuntrying anyway18:10
=== dpm is now known as dpm-afk
ahoneybunahayzen: /18:34
ahoneybunhttp://pastebin.ubuntu.com/11837276/18:34
ahoneybunit is telling me ArticleContent is not a type18:35
ahayzenahoneybun, where is the file ArticleContent.qml ?18:38
ahoneybunit is not a file18:38
ahoneybunoh18:38
ahoneybunright naming crap18:38
ahayzenalso the curly braces situation at the bottom looks fun18:39
ahoneybun?18:39
ahayzenL60-66 look like they have appeared overtabbed... probably just the conversion to pastebin18:39
ahoneybunsame here18:40
ahoneybunsomething that the SDK did I think18:41
ahayzenyeah just ignore it, just some minor OCD on my behalf :-)18:42
ahoneybunworks all well now18:42
ahoneybunthanks ahayzen18:42
ahayzenno problem :-)18:43
ahoneybunahayzen: now I have a working feed from the Full Circle Mag in my app :)18:43
ahayzensweet \o/18:45
ahoneybunnow to work on the Issues tab...18:45
ahoneybunno clue on how that would work18:45
ahoneybunahayzen: http://imgur.com/yQGJtbr18:46
ahayzenahoneybun, i gtg will be back later if your still having issues18:47
ahoneybunok18:49
ahoneybunthanks18:49
zsombiahayzen: no, I did not, but I'll check 'em asap!!!18:58
zsombiahayzen: nice catches btw!!!19:00
zsombikalikiana: forgot to update API file? https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/shortcuts/+merge/26241319:03
kalikianazsombi: grrrr I was sure I did.... apparently I didn't commit that19:06
zsombi:)19:06
zsombikalikiana: also one comment on https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/noDoCleanup/+merge/26405319:07
kalikianazsombi: fix pushed19:08
zsombikalikiana: happroved19:10
kalikianazsombi: note that I'm not technically "fixing" anything, I'm removing references to an obsolete bug ;-) more importantly, won't changing the list type break apps? when up to now they would only emit a warning19:11
kalikianazsombi: I guess we can try go UCAction all the way.. and see if that goes thru19:23
zsombikalikiana: the API was documented as list<Action>, the bug was marked by t1mp as won't fix by mistake. We were supposed to work only with list<Action> not with list<Object>. So if we fix the bug (which I've marked as valid and in progress) then we need to fix the type as well19:46
zsombikalikiana: also, you were dealing with this bug https://bugs.launchpad.net/ubuntu/+source/telephony-service/+bug/137206119:47
ubot5Launchpad bug 1372061 in unity8 (Ubuntu) "SMS notification: time format not translatable" [High,In progress]19:47
zsombikalikiana: do you remember where did you left with it?19:47
zsombikalikiana: let's catch up tomorrow on it19:48
kalikianazsombi: we discussed it, and were debating whether i18n.relativeTime(timestamp).string would re-evaluate correctly but I never see any code from dednick trying that approach19:51
t1mpzsombi:what did I mark as Won't Fix?19:52
zsombit1mp: check the bug above19:52
zsombikalikiana: I see... we have to help dednick to get that done... if we can still...19:53
t1mpzsombi: https://bugs.launchpad.net/ubuntu/+source/telephony-service/+bug/1372061 ? It is not marked as Won't Fix19:53
ubot5Launchpad bug 1372061 in unity8 (Ubuntu) "SMS notification: time format not translatable" [High,In progress]19:53
zsombit1mp: yes, no longer, as I did revive it :)19:54
t1mpweird, I don't see it in the history either19:54
zsombit1mp: and we were not talking about that bug, sorry :)19:54
t1mpahh19:54
zsombit1mp: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/136987419:54
ubot5Launchpad bug 1369874 in ubuntu-ui-toolkit (Ubuntu) "[Unity Dependency] Cleanup workarounds made to accept any QObject as Action or ActionContext." [Medium,In progress]19:55
zsombit1mp: that was the one :)19:55
t1mphmm, okay19:55
zsombikalikiana: hmm... can we get dednick on line at all?19:55
t1mpI don't remember the details. Seemed like the bug was not valid any more because we don't use the unity actions any more19:56
zsombit1mp: the bug was about to remind us to fix the API19:56
zsombinot that we use or not unity actions19:57
zsombiwe kept it till we get apps cleaned to not to use unity Actions19:57
zsombiand that was fixed19:57
zsombit1mp: but our API still uses list<QObject> and not list<Action>19:58
zsombiok, let's reload this tomorrow19:58
kalikianazsombi: I've seen him before, let's assume he didn't disappear from the earth, but he might just be away :-D20:00
zsombikalikiana: in the worst case we have to do the changes, based on the MR we rejected20:00
zsombikalikiana: shortcust MR landed in staging :)20:01
* zsombi eod20:04
kalikianaya20:05
kalikianay20:05
* zsombi eo sweating day :D20:05
kalikiana+100020:06
t1mpzsombi: seems like the bug is actually saying to use list<QObject> instead of list<Action>20:12
TLyngeJAccording to https://launchpad.net/ubuntu-phone-coreapps/ there is a calendar app for Ubuntu Touch. The question is, where do I find it on the phone?21:24
popeyTLyngeJ: its not pre-installed, its in the store21:29
TLyngeJBah, your right :-) Just assumed "Core apps" would mean it got installed when I flashed the gizmo. Anyway, thanks.21:31
DF__No one  knows here how to create a web service??21:46
=== salem_ is now known as _salem

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!