How to determine on CAF Sender that ad break is playing?No clear way to alert sender applications of new media fetched by the receiver applicationPlaying video ads on ChromecastHow to cast a webpage to chromecastUnable to play live stream on chromecast from android sender appHow to add standard media controls to Google Cast app?How to include advertisements (ads) on google cast (pre-rolls, mid-rolls)How to display app name inside Google Cast app's chromecast cardChrome-cast: seek bar position issue while streaming live videoHow to display audio information of audio stream on chromecast while playing?Chromecast CAF - Automatic Reconnection management
There are 51 natural numbers between 1-100, proof that there are 2 numbers such that the difference between them equals to 5
How to stop the death waves in my city?
Diminutive -ula
Is there a concept of "peer review" in Rabbinical Judaism?
I am not a pleasant sight
What exactly did this mechanic sabotage on the American Airlines 737, and how dangerous was it?
What does it mean by "my days-of-the-week underwear only go to Thursday" in this context?
Why does (inf + 0j)*1 evaluate to inf + nanj?
How can I tell the difference between fishing for rolls and being involved?
Is it ok if I haven't decided my research topic when I first meet with a potential phd advisor?
Is differentiation as a map discontinuous?
Number of list elements less than a given integer
Is a PWM required for regenerative braking on a DC Motor?
Why did UK NHS pay for homeopathic treatments?
Windows 10 deletes lots of tiny files super slowly. Anything that can be done to speed it up?
Are fuzzy sets appreciated by OR community?
Align all symbols in a LaTeX equation
What secular civic space would pioneers build for small frontier towns?
Received a package but didn't order it
Why is 6. Nge2 better, and 7. d5 a necessary push in this game?
Which lens has the same capability of lens mounted in Nikon P1000?
Why does C++ have 'Undefined Behaviour' and other languages like C# or Java don't?
Top off gas with old oil, is that bad?
Why is STARTTLS still used?
How to determine on CAF Sender that ad break is playing?
No clear way to alert sender applications of new media fetched by the receiver applicationPlaying video ads on ChromecastHow to cast a webpage to chromecastUnable to play live stream on chromecast from android sender appHow to add standard media controls to Google Cast app?How to include advertisements (ads) on google cast (pre-rolls, mid-rolls)How to display app name inside Google Cast app's chromecast cardChrome-cast: seek bar position issue while streaming live videoHow to display audio information of audio stream on chromecast while playing?Chromecast CAF - Automatic Reconnection management
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm working with a CAF receiver that implements ad breaks. On the receiver side ads play correctly.
According to the documentation https://developers.google.com/cast/docs/caf_receiver/ad_breaks
"While a break is playing, CAF Receiver SDK broadcasts MediaStatus with breakStatus to all connected senders. Senders can use this information to update UIs and suppress any seek operations."
On the sender (chrome) before an ad break plays the breakStatus is undefined. When a break begins to play then breakStatus is populated. Then after a break is complete the breakStatus does not go back to undefined. To see these results I've been manually running: window.cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession()
.
My plan was to use the presence of breakStatus to indicate that an ad break is playing. I'm having trouble finding more information about this break status broadcast. I feel like there should be some event listener but I have not been able to find it https://developers.google.com/cast/docs/reference/chrome/cast.framework#.RemotePlayerEventType.
Is there an alternative solution to determining if a ad break is currently playing?
google-cast
add a comment
|
I'm working with a CAF receiver that implements ad breaks. On the receiver side ads play correctly.
According to the documentation https://developers.google.com/cast/docs/caf_receiver/ad_breaks
"While a break is playing, CAF Receiver SDK broadcasts MediaStatus with breakStatus to all connected senders. Senders can use this information to update UIs and suppress any seek operations."
On the sender (chrome) before an ad break plays the breakStatus is undefined. When a break begins to play then breakStatus is populated. Then after a break is complete the breakStatus does not go back to undefined. To see these results I've been manually running: window.cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession()
.
My plan was to use the presence of breakStatus to indicate that an ad break is playing. I'm having trouble finding more information about this break status broadcast. I feel like there should be some event listener but I have not been able to find it https://developers.google.com/cast/docs/reference/chrome/cast.framework#.RemotePlayerEventType.
Is there an alternative solution to determining if a ad break is currently playing?
google-cast
I think that's the expected behavior of theBreakStatus Class
. ThecurrentBreakTime
andcurrentBreakClipTime
arguments value should be time elapsed after current break starts and time after current break clip starts. This means that the value is undefined before an ad break plays. Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.
– jess
Mar 13 at 14:24
@jess I believe there may have been an issue with the MediaSession not replacing the existing breakStatus object with an undefined value after the break completed. It is resolved now that they are using an empty object instead of undefined.
– Allan Guigou
Mar 28 at 18:41
That's cool. Glad they fixed the issue.
– jess
Mar 29 at 9:02
add a comment
|
I'm working with a CAF receiver that implements ad breaks. On the receiver side ads play correctly.
According to the documentation https://developers.google.com/cast/docs/caf_receiver/ad_breaks
"While a break is playing, CAF Receiver SDK broadcasts MediaStatus with breakStatus to all connected senders. Senders can use this information to update UIs and suppress any seek operations."
On the sender (chrome) before an ad break plays the breakStatus is undefined. When a break begins to play then breakStatus is populated. Then after a break is complete the breakStatus does not go back to undefined. To see these results I've been manually running: window.cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession()
.
My plan was to use the presence of breakStatus to indicate that an ad break is playing. I'm having trouble finding more information about this break status broadcast. I feel like there should be some event listener but I have not been able to find it https://developers.google.com/cast/docs/reference/chrome/cast.framework#.RemotePlayerEventType.
Is there an alternative solution to determining if a ad break is currently playing?
google-cast
I'm working with a CAF receiver that implements ad breaks. On the receiver side ads play correctly.
According to the documentation https://developers.google.com/cast/docs/caf_receiver/ad_breaks
"While a break is playing, CAF Receiver SDK broadcasts MediaStatus with breakStatus to all connected senders. Senders can use this information to update UIs and suppress any seek operations."
On the sender (chrome) before an ad break plays the breakStatus is undefined. When a break begins to play then breakStatus is populated. Then after a break is complete the breakStatus does not go back to undefined. To see these results I've been manually running: window.cast.framework.CastContext.getInstance().getCurrentSession().getMediaSession()
.
My plan was to use the presence of breakStatus to indicate that an ad break is playing. I'm having trouble finding more information about this break status broadcast. I feel like there should be some event listener but I have not been able to find it https://developers.google.com/cast/docs/reference/chrome/cast.framework#.RemotePlayerEventType.
Is there an alternative solution to determining if a ad break is currently playing?
google-cast
google-cast
asked Mar 12 at 18:12
Allan GuigouAllan Guigou
165 bronze badges
165 bronze badges
I think that's the expected behavior of theBreakStatus Class
. ThecurrentBreakTime
andcurrentBreakClipTime
arguments value should be time elapsed after current break starts and time after current break clip starts. This means that the value is undefined before an ad break plays. Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.
– jess
Mar 13 at 14:24
@jess I believe there may have been an issue with the MediaSession not replacing the existing breakStatus object with an undefined value after the break completed. It is resolved now that they are using an empty object instead of undefined.
– Allan Guigou
Mar 28 at 18:41
That's cool. Glad they fixed the issue.
– jess
Mar 29 at 9:02
add a comment
|
I think that's the expected behavior of theBreakStatus Class
. ThecurrentBreakTime
andcurrentBreakClipTime
arguments value should be time elapsed after current break starts and time after current break clip starts. This means that the value is undefined before an ad break plays. Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.
– jess
Mar 13 at 14:24
@jess I believe there may have been an issue with the MediaSession not replacing the existing breakStatus object with an undefined value after the break completed. It is resolved now that they are using an empty object instead of undefined.
– Allan Guigou
Mar 28 at 18:41
That's cool. Glad they fixed the issue.
– jess
Mar 29 at 9:02
I think that's the expected behavior of the
BreakStatus Class
. The currentBreakTime
and currentBreakClipTime
arguments value should be time elapsed after current break starts and time after current break clip starts. This means that the value is undefined before an ad break plays. Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.– jess
Mar 13 at 14:24
I think that's the expected behavior of the
BreakStatus Class
. The currentBreakTime
and currentBreakClipTime
arguments value should be time elapsed after current break starts and time after current break clip starts. This means that the value is undefined before an ad break plays. Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.– jess
Mar 13 at 14:24
@jess I believe there may have been an issue with the MediaSession not replacing the existing breakStatus object with an undefined value after the break completed. It is resolved now that they are using an empty object instead of undefined.
– Allan Guigou
Mar 28 at 18:41
@jess I believe there may have been an issue with the MediaSession not replacing the existing breakStatus object with an undefined value after the break completed. It is resolved now that they are using an empty object instead of undefined.
– Allan Guigou
Mar 28 at 18:41
That's cool. Glad they fixed the issue.
– jess
Mar 29 at 9:02
That's cool. Glad they fixed the issue.
– jess
Mar 29 at 9:02
add a comment
|
1 Answer
1
active
oldest
votes
It appears the issue is resolved with the March 25th CAF Receiver update https://developers.google.com/cast/docs/release-notes
By setting the breakStatus to an empty object it updates on the sender side.
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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%2f55128174%2fhow-to-determine-on-caf-sender-that-ad-break-is-playing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It appears the issue is resolved with the March 25th CAF Receiver update https://developers.google.com/cast/docs/release-notes
By setting the breakStatus to an empty object it updates on the sender side.
add a comment
|
It appears the issue is resolved with the March 25th CAF Receiver update https://developers.google.com/cast/docs/release-notes
By setting the breakStatus to an empty object it updates on the sender side.
add a comment
|
It appears the issue is resolved with the March 25th CAF Receiver update https://developers.google.com/cast/docs/release-notes
By setting the breakStatus to an empty object it updates on the sender side.
It appears the issue is resolved with the March 25th CAF Receiver update https://developers.google.com/cast/docs/release-notes
By setting the breakStatus to an empty object it updates on the sender side.
answered Mar 28 at 18:37
Allan GuigouAllan Guigou
165 bronze badges
165 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f55128174%2fhow-to-determine-on-caf-sender-that-ad-break-is-playing%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
I think that's the expected behavior of the
BreakStatus Class
. ThecurrentBreakTime
andcurrentBreakClipTime
arguments value should be time elapsed after current break starts and time after current break clip starts. This means that the value is undefined before an ad break plays. Status of break, if receiver is playing break. This field will be defined only when receiver is playing break.– jess
Mar 13 at 14:24
@jess I believe there may have been an issue with the MediaSession not replacing the existing breakStatus object with an undefined value after the break completed. It is resolved now that they are using an empty object instead of undefined.
– Allan Guigou
Mar 28 at 18:41
That's cool. Glad they fixed the issue.
– jess
Mar 29 at 9:02