Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement mediasession set positon state #24885
Conversation
highfive
commented
Nov 27, 2019
|
Heads up! This PR modifies the following files:
|
To be honest, I don't have enough understanding of these behaviors. |
|
r? @ferjm |
|
This is a great start, but we need to make some changes. In addition to the comments I added, we should send |
769df62
to
187c90d
|
@ferjm Thank you for a great review.
I added the code for MediaSessionEvent::SetPositionState. |
Thanks! I don't have Android right now, so I'll get it and try it. |
|
When I change the code under the ports(ex. Is this my misunderstanding? |
|
The build command only builds one of the ports at a time. For libsimpleservo/jniapi, you need to pass the |
...t/android/apk/servoapp/src/main/java/org/mozilla/servo/MainActivity.java
Show resolved
Hide resolved
187c90d
to
17286de
...t/android/apk/servoapp/src/main/java/org/mozilla/servo/MediaSession.java
Show resolved
Hide resolved
|
Looks good. Thank you! r=me with the last minor comments addressed. |
| // If the duration is not present or its value is null, throw a TypeError. | ||
| if state.duration.is_none() { | ||
| return Err(Error::Type( | ||
| "duration is not preset or its value is null".to_owned(), |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| } | ||
| } | ||
|
|
||
| // If the position is not present or its value is null, set it to zero. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
17286de
to
29d6a35
|
In my local, build is success. |
|
|
|
@jdm Thanks! I'll check. |
29d6a35
to
70b76ca
|
I fixed an error when run
|
70b76ca
to
41ff93e
|
@bors-servo r=ferjm |
|
|
…_state, r=ferjm Implement mediasession set positon state <!-- Please describe your changes on the following line: --> fix #24808 > Bonus points if you want to tweak the existing UI by adding a progress bar, and the info about the current position and total duration. I haven't implemented this yet. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24808 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry |
…_state, r=ferjm Implement mediasession set positon state <!-- Please describe your changes on the following line: --> fix #24808 > Bonus points if you want to tweak the existing UI by adding a progress bar, and the info about the current position and total duration. I haven't implemented this yet. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24808 (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
shnmorimoto commentedNov 27, 2019
•
edited
fix #24808
I haven't implemented this yet.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors