forked from flutter/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
MUXに送信するパラメータを追加 #14
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
Merged
Merged
MUXに送信するパラメータを追加 #14
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0c26ea7
fix: 送信するパラメータを追加
f06b94f
chore: exoplayerからmedia3に移行
7505a83
feat: Androidからもviewer_plan_statusを送れるようにした
c3c2cae
refactor: デバッグコードを削除
1f6bd0f
refactor: 不要なコードの削除
56915cf
refactor: 不要なコードを削除
26db06f
refactor: lint崩れを修正
f3de554
refactor: reformat
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,7 +104,10 @@ ArrayList<Object> toList() { | |
| static @NonNull TextureMessage fromList(@NonNull ArrayList<Object> list) { | ||
| TextureMessage pigeonResult = new TextureMessage(); | ||
| Object textureId = list.get(0); | ||
| pigeonResult.setTextureId((textureId == null) ? null : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| pigeonResult.setTextureId( | ||
| (textureId == null) | ||
| ? null | ||
| : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| return pigeonResult; | ||
| } | ||
| } | ||
|
|
@@ -175,7 +178,10 @@ ArrayList<Object> toList() { | |
| static @NonNull LoopingMessage fromList(@NonNull ArrayList<Object> list) { | ||
| LoopingMessage pigeonResult = new LoopingMessage(); | ||
| Object textureId = list.get(0); | ||
| pigeonResult.setTextureId((textureId == null) ? null : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| pigeonResult.setTextureId( | ||
| (textureId == null) | ||
| ? null | ||
| : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| Object isLooping = list.get(1); | ||
| pigeonResult.setIsLooping((Boolean) isLooping); | ||
| return pigeonResult; | ||
|
|
@@ -248,7 +254,10 @@ ArrayList<Object> toList() { | |
| static @NonNull VolumeMessage fromList(@NonNull ArrayList<Object> list) { | ||
| VolumeMessage pigeonResult = new VolumeMessage(); | ||
| Object textureId = list.get(0); | ||
| pigeonResult.setTextureId((textureId == null) ? null : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| pigeonResult.setTextureId( | ||
| (textureId == null) | ||
| ? null | ||
| : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| Object volume = list.get(1); | ||
| pigeonResult.setVolume((Double) volume); | ||
| return pigeonResult; | ||
|
|
@@ -321,7 +330,10 @@ ArrayList<Object> toList() { | |
| static @NonNull PlaybackSpeedMessage fromList(@NonNull ArrayList<Object> list) { | ||
| PlaybackSpeedMessage pigeonResult = new PlaybackSpeedMessage(); | ||
| Object textureId = list.get(0); | ||
| pigeonResult.setTextureId((textureId == null) ? null : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| pigeonResult.setTextureId( | ||
| (textureId == null) | ||
| ? null | ||
| : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| Object speed = list.get(1); | ||
| pigeonResult.setSpeed((Double) speed); | ||
| return pigeonResult; | ||
|
|
@@ -394,9 +406,15 @@ ArrayList<Object> toList() { | |
| static @NonNull PositionMessage fromList(@NonNull ArrayList<Object> list) { | ||
| PositionMessage pigeonResult = new PositionMessage(); | ||
| Object textureId = list.get(0); | ||
| pigeonResult.setTextureId((textureId == null) ? null : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| pigeonResult.setTextureId( | ||
| (textureId == null) | ||
| ? null | ||
| : ((textureId instanceof Integer) ? (Integer) textureId : (Long) textureId)); | ||
| Object position = list.get(1); | ||
| pigeonResult.setPosition((position == null) ? null : ((position instanceof Integer) ? (Integer) position : (Long) position)); | ||
| pigeonResult.setPosition( | ||
| (position == null) | ||
| ? null | ||
| : ((position instanceof Integer) ? (Integer) position : (Long) position)); | ||
| return pigeonResult; | ||
| } | ||
| } | ||
|
|
@@ -1066,6 +1084,16 @@ public void setVideoCdn(@Nullable String setterArg) { | |
| this.videoCdn = setterArg; | ||
| } | ||
|
|
||
| private @Nullable String viewerPlanStatus; | ||
|
|
||
| public @Nullable String getViewerPlanStatus() { | ||
| return viewerPlanStatus; | ||
| } | ||
|
|
||
| public void setViewerPlanStatus(@Nullable String setterArg) { | ||
| this.viewerPlanStatus = setterArg; | ||
| } | ||
|
|
||
| public static final class Builder { | ||
|
|
||
| private @Nullable Long textureId; | ||
|
|
@@ -1215,6 +1243,13 @@ public static final class Builder { | |
| return this; | ||
| } | ||
|
|
||
| private @Nullable String viewerPlanStatus; | ||
|
|
||
| public @NonNull Builder setViewerPlanStatus(@Nullable String setterArg) { | ||
| this.viewerPlanStatus = setterArg; | ||
| return this; | ||
| } | ||
|
|
||
| public @NonNull MuxConfigMessage build() { | ||
| MuxConfigMessage pigeonReturn = new MuxConfigMessage(); | ||
| pigeonReturn.setTextureId(textureId); | ||
|
|
@@ -1238,6 +1273,7 @@ public static final class Builder { | |
| pigeonReturn.setVideoProducer(videoProducer); | ||
| pigeonReturn.setVideoEncodingVariant(videoEncodingVariant); | ||
| pigeonReturn.setVideoCdn(videoCdn); | ||
| pigeonReturn.setViewerPlanStatus(viewerPlanStatus); | ||
| return pigeonReturn; | ||
| } | ||
| } | ||
|
|
@@ -1266,6 +1302,7 @@ ArrayList<Object> toList() { | |
| toListResult.add(videoProducer); | ||
| toListResult.add(videoEncodingVariant); | ||
| toListResult.add(videoCdn); | ||
| toListResult.add(viewerPlanStatus); | ||
| return toListResult; | ||
| } | ||
|
|
||
|
|
@@ -1313,6 +1350,8 @@ ArrayList<Object> toList() { | |
| pigeonResult.setVideoEncodingVariant((String) videoEncodingVariant); | ||
| Object videoCdn = list.get(20); | ||
| pigeonResult.setVideoCdn((String) videoCdn); | ||
| Object viewerPlanStatus = list.get(21); | ||
| pigeonResult.setViewerPlanStatus((String) viewerPlanStatus); | ||
| return pigeonResult; | ||
| } | ||
| } | ||
|
|
@@ -1418,8 +1457,12 @@ public interface AndroidVideoPlayerApi { | |
| static @NonNull MessageCodec<Object> getCodec() { | ||
| return AndroidVideoPlayerApiCodec.INSTANCE; | ||
| } | ||
| /**Sets up an instance of `AndroidVideoPlayerApi` to handle messages through the `binaryMessenger`. */ | ||
| static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVideoPlayerApi api) { | ||
| /** | ||
| * Sets up an instance of `AndroidVideoPlayerApi` to handle messages through the | ||
| * `binaryMessenger`. | ||
| */ | ||
| static void setup( | ||
| @NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVideoPlayerApi api) { | ||
| { | ||
| BasicMessageChannel<Object> channel = | ||
| new BasicMessageChannel<>( | ||
|
|
@@ -1431,8 +1474,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.initialize(); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 他の箇所もlint崩れてるので直してください
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 一通り直しました |
||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1455,8 +1497,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| TextureMessage output = api.create(msgArg); | ||
| wrapped.add(0, output); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1479,8 +1520,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.dispose(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1503,8 +1543,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.setLooping(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1527,8 +1566,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.setVolume(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1551,8 +1589,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.setPlaybackSpeed(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1575,8 +1612,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.play(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1599,8 +1635,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| PositionMessage output = api.position(msgArg); | ||
| wrapped.add(0, output); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1623,8 +1658,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.seekTo(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1647,8 +1681,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.pause(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
@@ -1671,8 +1704,7 @@ static void setup(@NonNull BinaryMessenger binaryMessenger, @Nullable AndroidVid | |
| try { | ||
| api.setMixWithOthers(msgArg); | ||
| wrapped.add(0, null); | ||
| } | ||
| catch (Throwable exception) { | ||
| } catch (Throwable exception) { | ||
| ArrayList<Object> wrappedError = wrapError(exception); | ||
| wrapped = wrappedError; | ||
| } | ||
|
|
||
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.
lintが崩れてるので直してください