Skip to content

Dev5 external video follow updates#40

Open
hiroshisuga wants to merge 95 commits intodevelopfrom
dev5_follow_updates
Open

Dev5 external video follow updates#40
hiroshisuga wants to merge 95 commits intodevelopfrom
dev5_follow_updates

Conversation

@hiroshisuga
Copy link
Copy Markdown
Owner

No description provided.

because starting the video usually delays ~1 sec due to loading the data. Prevents an initial quick reload happening every time when a video starts.
Fix a bug where video unnecessarily synchronised with higher/lower play rate
最終的にはループのダサい感じを解消すべき。
SInce 3.0 external video events are much more simplified than before. Sometimes there is only one tag with start and stop information, without any event tag at the inside.
Enlarge the inverval.
replace Component with PureComponent, which massively reduces render() call.
Delete unnecessary conditions. 
Previously the player always plays from the start of the video when the user rewinds the player after the video play finishes, and the last event is i.e., "playbackRateChange".
This fixes a problem that did not exist <bbb3, which allows a external_videos.xml without any events in the parent tag.
- if (index) is false when index is 0.
- '==' is replaced with '===' according to the npm compiler
- player.primary can be undefined (but probably not anymore). Just a fail safe.
instead of setInterval
index === -1 means either the timestamp has already passed this video, or there is no events (events is an empty array).
Here, it always means the latter. So this can catch the case where the user rewinds a one-stroke video before it ends.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant