Camera widget within a kv file issue

70 views
Skip to first unread message

Sam Berry

unread,
May 3, 2013, 7:58:41 PM5/3/13
to kivy-...@googlegroups.com
Hey,

Iv just recently discovered the camera widget and found it is very useful for my application! However I am having issues with it. I have been able to successfully play the cameras video stream, but I would like a button to toggle between playing the video and stopping the video. I implemented the camera within a kv file like so...

        Camera:
            pos_hint: {'x':.034, 'y':0}
            size_hint: None, None
            size: 300, 200
            resolution: 640,480
            play: 'False'

            Button:
                pos_hint: {'x':0, 'y':.25}
                text: 'View camera stream'
                font_size: 18
                size_hint: None, None
                size: 200, 100
                on_press: root.CameraStream1()

Iv found that editing the 'play:' attribute to 'False' doesn't affect anything, and the widget still loads up streaming the video. Am I implementing the 'play:' attribute wrongly? or is there another command which does this job? Iv looked in the documentation and googled the hell out of it but haven't found another that is related.

If anyone has got any ideas there input would be appreciated!

Thanks, Sam


Akshay Arora

unread,
May 4, 2013, 5:11:39 AM5/4/13
to kivy-...@googlegroups.com
If it doesn't stop by setting play=False then it is probably a bug. could you report it on http://github/kivy/kivy/issues along with a sample that reproduces the issue and your platform details.

Best Regards





--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages