I can not see the videos on the weibo.com website.
Debugging sees this error:
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
For example watch this link:
https://www.weibo.com/tv/v/FxU2CxqKj?from=vhot
What could be the problem?
Many thanks,
Matteo
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
This means that some script tried to call the play method of a video object, but this was prevented by the browser, because this call was not directly related to a user interaction, that clearly indicates that the user wants the video to play at this point.
This is done to thwart attempts to autoplay videos without the user actually wanting this to happen - which can in the least be annoying, and at worst even costly (for example on a metered/mobile connection.)
But if this is not a problem you are experiencing with any code you have written yourself, then you can only ask the people behind this website to look into that for you - you’ll have to check what contact options or bug report possibilities they provide.
Related
I have an angular app that I would like to force users to view in "portrait" mode even when rotated in mobile browsers. I'm attempting to use the screen.orientation API, but I'm getting the error:
"Uncaught (in promise) DOMException: screen.orientation.lock() is not available on this device."
The short version of code that I've used in trying to debug in the console is:
screen.orientation.lock("portrait")
This returns the error provided above. I have tried this on both MS Edge version 107.0 and modern versions of chrome, on different machines and devices and all yield the same result. In looking through other articles all are old posts and point to use this API, which seems as if this is no longer supported by modern browsers.
Is there another way to do this, or would I need to use CSS to render the page differently when detecting a change state of the orientation?
We have encountered a problem, where we are downloading the video on my application home page and playing it in the videoPlayer page. Playing the video is getting stuck since download is in progress and the streaming request to google-cloud-bucket is in "pending" status(refer the screenshot).
As soon as download completes, video starts playing on videoPlayer page.
Can someone suggest any idea/solution for this usecase. There is an error message which is coming on console(on production) and on UI on local dev env.
Error Message: Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
Redirection to the appstore from a deeplink works randomly on facebook messenger, only on ios.
After clicking the link, when the prompt pops up asking if the user wants to leave Messenger and open another app, pressing Continue will often leads to nowhere, leaving the user stuck on the https://[my.domain].link.
The times it will work, it always pops up the prompt 2 times asking to leave Messenger when it is working. The first prompt never works, only the second one does.
This behavior will happen randomly for the same link.
I have tried tweaking the $uri_redirect_mode parameter, unsuccessfully
The parameters I'm passing to the link are ase simple as follows :
'$uri_redirect_mode': 1,
'$canonical_identifier': canonicalIdentifier,
'$desktop_url': 'https://itunes.apple.com/fr/app/myApp/appId',
'$ios_url': 'https://itunes.apple.com/fr/app/myApp/appId',
'$android_url': 'https://play.google.com/store/apps/details?id=com.myApp'
I expect the branch deep link to work in a more consistent way on facebook messenger, knowing that I don't have this problem on whatsapp (ios) or android. Please help me understand if I'm missing something
Branch Links are known to resolve to your fallbacks on FB messenger regardless if you have the app installed or not. For Branch Links shared on IOS Facebook Messenger, you should enable a deep view as an intermediate step between your redirect.
Reference: https://docs.branch.io/links/integrate/#expected-link-behavior
If you have additional questions, please write in to support#branch.io. Thanks.
I have a behavior which purpose is to show an HTML page (hosted on the robot). I want that behavior to be loaded on boot and that HTML page to be shown on the Pepper's tablet when Pepper is booted.
I have added it to the robot default behaviors but that doesn't do the trick. It shows me that this behavior is running, that it is in the default behaviors but the HTML page is not shown. Just to make it clear when this behavior is not running and I trigger it, it works as it is intended - I mean the problem is not in the HTML code.
It might be that your behavior is started before the AutonomousLife service or before ALTabletService is ready. This is possible with default behaviors. In your code you need to wait for those 2 to be ready otherwise:
if ALTabletService is not ready, your code will just do nothing
if ALAutonomousLife starts after your app, it will reset the tablet so your page will be hidden.
The best solution is probably to not add it as a default behavior, but edit the app properties and set this behavior as a "solitary" activity, and use a "launch trigger condition" that is always true, like "1".
In that case, as soon as Pepper doesn't have any interactive behavior to start, it will run yours (so it will display the webpage). Also with this solution you ensure that all other services are ready before your behavior is started.
More info in the documentation about how to create solitary activites and launch trigger conditions.
I'm using browser-like approach for adding a bug to Bugzilla.
I'm making a successful login. When I add the bug, I don't get error. I get status code OK. But, the response html contains this:
Bugzilla – Suspicious Action
"It looks like you didn't come from the right page (you have no valid token for the create_bug action while processing the 'post_bug.cgi' script). The reason could be one of:
You clicked the "Back" button of your web browser after having successfully submitted changes, which is generally not a good idea (but harmless).
You entered the URL in the address bar of your web browser directly, which should be safe.
You clicked on a URL which redirected you here without your consent, in which case this action is much more critical.
Are you sure you want to commit these changes anyway? This may result in unexpected and undesired results."
There is a confirm button.
When I do this by hand (not by code), I don't get the error page. Instead, I get response that everything went fine and I can get my bug's id. So, ahead in my code I'm using the id. However, because of the error I get, the id is an empty string. How to resolve this?
Can it be resolved by clicking on the confirm button by code?
You can use Bugzilla's REST API from your script.
Creation of a bug is documented here