You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I see camera, I also see video current time value: 46:33:26. This value should not be such big, because I just created stream with random name and even not published it.
Please suggest how to set that value to zero or more realistic (started counting from zero).
The text was updated successfully, but these errors were encountered:
I think that for the publisher this may reflect the time that the server has been running. @bustardcelly might be able to better respond to where this value is coming from.
@cupuyc it should be noted that the Red5 Pro HTML SDK does not provide custom controls for broadcasts. This is the default Chrome display controls for a live broadcast.
Each browser displays their own custom controls for live broadcasts in the video and audio elements:
safari:
firefox:
Safari recognizes it as a "Live" event, most likely because the duration value is coming in as Infinity.
Firefox starts counting up the time once the video element is presented in the DOM.
Not entirely sure how/where Chrome gets the time for its display - as @beetlejesss it may the time since the server has been alive.
You may not need to display the controls for publishers. If that is not a requirement, you can just remove the controls attribute from the video element declaration.
If you need the controls for live broadcast, I have not found a way to reset that time value. It is the currentTime property of the media element. Since it is a live event, it continually is being overwritten.
cupuyc
changed the title
Video element has big value.
Video element has big current time value in a controls bar
Nov 23, 2017
I use
new red5prosdk.RTCPublisher();
on my page withWhen I see camera, I also see video current time value: 46:33:26. This value should not be such big, because I just created stream with random name and even not published it.
Please suggest how to set that value to zero or more realistic (started counting from zero).
The text was updated successfully, but these errors were encountered: