ui.video with changing sources (extra: overlay feature) #1503
WolfgangFahl
started this conversation in
Ideas / Feature Requests
Replies: 2 comments
-
Is this also related to #1282? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think Interactive Image would do the trick based on what I understood. class StreamURL:
def __init__(self):
self.stream_url = ''
self.svg_content = ''
streamURL = StreamURL()
ui.interactive_image(
# source = streamURL.stream_url, #instead of providing here, binded below. Binding takes care of updating feed if URL changes
events=['click', 'mousedown', 'mouseup'],
cross=True
).bind_source_from(streamURL, 'stream_url').bind_content(streamURL, 'svg_content') Updating the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to add support for a video that is synchronized with the track and map display in http://nicetrack.bitplan.com see #66 #907.
I have implemented a VideoStream class to make sure that the range header is respected see https://github.com/WolfgangFahl/nicetrack/blob/main/nicetrack/video_stream.py but this might be redundant to the implementation mentioned in #907.
Also I'd love start with a ui.video element with no source specified when starting and changing the source depending on which example is selected. I assume video display is only sensible in local mode and the streaming should be effective. Currently the implementation simply creates a new ui.video which does not show the intended behavior yet. So basically i'd love to know:
As an extra it would be great to have an overlay feature so that the telemetry data of my nicetrack app can be displayed right on the video. This would probably benefit quite a few other video usecases and give nicegui another boost as being a most productive gui framework.
Beta Was this translation helpful? Give feedback.
All reactions