Sam Berry
unread,May 3, 2013, 7:58:41 PM5/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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