-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor EventBus #3372
Merged
dsilhavy
merged 25 commits into
Dash-Industry-Forum:development
from
Orange-OpenSource:refactor-eventbus
Nov 4, 2020
Merged
Refactor EventBus #3372
Changes from 12 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0fd95a9
Refactor EventBus:
bbert c05dea2
Refactor EventBus: update unit tests
bbert 155e84d
[temp] execute functional tests on this branch
bbert 70ed08f
[temp] PR #3372 functional tests
bbert 1c3e1f5
Refactor EventBus: fix MssHandler
bbert 6a12802
Revert "[temp] execute functional tests on this branch"
bbert 826f7d7
Revert "[temp] PR #3372 functional tests"
bbert f6e8d77
Register PLAYBACK_ENDED event with high priority in order to be notif…
bbert 2891e99
Merge branch 'development' into refactor-eventbus
bbert f5985cd
fix build error
bbert 60fd2c5
do not check stream id and media type in event handlers
bbert ebc5bbe
Merge branch 'development' into refactor-eventbus
bbert 6f8526a
fix regression on SegmentBaseLoader
bbert 8acb1a3
EventBus: add filters (streamId, mediaType...) parameter in trigger()…
bbert e9023ec
code style
bbert 4f216ae
Merge branch 'development' into refactor-eventbus
bbert b246c89
run functional tests
bbert 586bea5
run functional tests
bbert e6ddd34
run functional tests
bbert a8399df
Revert "run functional tests"
bbert d998748
Revert "run functional tests"
bbert d0e5625
Revert "run functional tests"
bbert ac4d1eb
Complete events trigger refactoring
bbert 15ab819
NotFragmentedTextBufferController: add missing getStreamId() function
bbert 8bf60e6
fix unit tests
bbert File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are currently working on #3379 and would like to introduce an additional parameter in the trigger function as well. In order to align this and avoid a large constructor I suggest we make the third parameter and object {streamId,mediaType,additonalParameter}. That way we can enhance it even further later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not enriching payload parameter with all these additional parameters? for example:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer having a third object in the function for all internal attributes which are not supposed to be dispatched to the client/app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I see
we may get heavier source code, but nevermind
So this could be a 3rd function parameter called 'filters'? Or this may contains other parameters that could have other utility than even filtering?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes basically everything which we can use for filtering and decision making when triggering the event. We will adjust the PR/request accordingly: #3379