Chromecast: Is it possible to override the progress sent to sender apps via the Chromecast receiver app?
up vote
0
down vote
favorite
I am trying to report the approximate position of a live stream to our sender apps (user is able to seek around our "live" streams so they are not always at the live edge).
Specifically for Android the value I want to override comes back via the progress listener:
castSession?.remoteMediaClient?.addProgressListener(progressListener, 1000)
Currently this value is inaccurate for live streams and I believe it just reports the position in the current window or something.
On the receiver end I've looked into intercepting the MEDIA_STATUS event but this event does not emit frequently enough.
player.setMessageInterceptor(
cast.framework.messages.MessageType.MEDIA_STATUS,
status =>
status.currentTime = some overridden time here;
return status;
);
Has anyone had success overriding the progress time sent to sender apps?
I suppose one solution might be using a custom callback message the emits every second?
android chromecast google-cast
add a comment |
up vote
0
down vote
favorite
I am trying to report the approximate position of a live stream to our sender apps (user is able to seek around our "live" streams so they are not always at the live edge).
Specifically for Android the value I want to override comes back via the progress listener:
castSession?.remoteMediaClient?.addProgressListener(progressListener, 1000)
Currently this value is inaccurate for live streams and I believe it just reports the position in the current window or something.
On the receiver end I've looked into intercepting the MEDIA_STATUS event but this event does not emit frequently enough.
player.setMessageInterceptor(
cast.framework.messages.MessageType.MEDIA_STATUS,
status =>
status.currentTime = some overridden time here;
return status;
);
Has anyone had success overriding the progress time sent to sender apps?
I suppose one solution might be using a custom callback message the emits every second?
android chromecast google-cast
If you believe this is a bug in the Cast SDK, the please file an issue: issuetracker.google.com/…
– Leon Nicholls
Nov 13 at 21:32
@LeonNicholls not a bug just curious if theres a way to override/intercept progress listener similarly to how you can intercept MEDIA_STATUS events and such.
– IZI_Shadow_IZI
Nov 15 at 16:26
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to report the approximate position of a live stream to our sender apps (user is able to seek around our "live" streams so they are not always at the live edge).
Specifically for Android the value I want to override comes back via the progress listener:
castSession?.remoteMediaClient?.addProgressListener(progressListener, 1000)
Currently this value is inaccurate for live streams and I believe it just reports the position in the current window or something.
On the receiver end I've looked into intercepting the MEDIA_STATUS event but this event does not emit frequently enough.
player.setMessageInterceptor(
cast.framework.messages.MessageType.MEDIA_STATUS,
status =>
status.currentTime = some overridden time here;
return status;
);
Has anyone had success overriding the progress time sent to sender apps?
I suppose one solution might be using a custom callback message the emits every second?
android chromecast google-cast
I am trying to report the approximate position of a live stream to our sender apps (user is able to seek around our "live" streams so they are not always at the live edge).
Specifically for Android the value I want to override comes back via the progress listener:
castSession?.remoteMediaClient?.addProgressListener(progressListener, 1000)
Currently this value is inaccurate for live streams and I believe it just reports the position in the current window or something.
On the receiver end I've looked into intercepting the MEDIA_STATUS event but this event does not emit frequently enough.
player.setMessageInterceptor(
cast.framework.messages.MessageType.MEDIA_STATUS,
status =>
status.currentTime = some overridden time here;
return status;
);
Has anyone had success overriding the progress time sent to sender apps?
I suppose one solution might be using a custom callback message the emits every second?
android chromecast google-cast
android chromecast google-cast
asked Nov 8 at 19:06
IZI_Shadow_IZI
1,06832256
1,06832256
If you believe this is a bug in the Cast SDK, the please file an issue: issuetracker.google.com/…
– Leon Nicholls
Nov 13 at 21:32
@LeonNicholls not a bug just curious if theres a way to override/intercept progress listener similarly to how you can intercept MEDIA_STATUS events and such.
– IZI_Shadow_IZI
Nov 15 at 16:26
add a comment |
If you believe this is a bug in the Cast SDK, the please file an issue: issuetracker.google.com/…
– Leon Nicholls
Nov 13 at 21:32
@LeonNicholls not a bug just curious if theres a way to override/intercept progress listener similarly to how you can intercept MEDIA_STATUS events and such.
– IZI_Shadow_IZI
Nov 15 at 16:26
If you believe this is a bug in the Cast SDK, the please file an issue: issuetracker.google.com/…
– Leon Nicholls
Nov 13 at 21:32
If you believe this is a bug in the Cast SDK, the please file an issue: issuetracker.google.com/…
– Leon Nicholls
Nov 13 at 21:32
@LeonNicholls not a bug just curious if theres a way to override/intercept progress listener similarly to how you can intercept MEDIA_STATUS events and such.
– IZI_Shadow_IZI
Nov 15 at 16:26
@LeonNicholls not a bug just curious if theres a way to override/intercept progress listener similarly to how you can intercept MEDIA_STATUS events and such.
– IZI_Shadow_IZI
Nov 15 at 16:26
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53214541%2fchromecast-is-it-possible-to-override-the-progress-sent-to-sender-apps-via-the%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you believe this is a bug in the Cast SDK, the please file an issue: issuetracker.google.com/…
– Leon Nicholls
Nov 13 at 21:32
@LeonNicholls not a bug just curious if theres a way to override/intercept progress listener similarly to how you can intercept MEDIA_STATUS events and such.
– IZI_Shadow_IZI
Nov 15 at 16:26