当我使用命令时,我的 mongo shell 给了我这个错误show dbs。
没有管理员权限执行命令
我尝试使用创建用户
db.createUser(
{
user: "siteUserAdmin",
pwd: "password",
roles: [ { role: "userAdminAnyDatabase", db: "admin" } ]
}
)
Run Code Online (Sandbox Code Playgroud)
如https://docs.mongodb.com/v2.6/tutorial/add-user-administrator/
但它仍然给我同样的错误:
无法添加用户:管理员无权执行命令。
我使用的是Ubuntu 16.04,mongoDB版本是3.4.9
我无法专注于bootstrap轮播中的任何input字段.
无论你多少次点击它,该input领域都没有集中注意力.
我甚至尝试过z-index这个input领域,但它仍然没有集中精力.
您可以通过运行下面的代码段来检查错误.
$(document).ready(function(){
$(".carousel").swipe({
swipe: function(event, direction, distance, duration, fingerCount, fingerData) {
if (direction == 'left') $(this).carousel('next');
if (direction == 'right') $(this).carousel('prev');
},
allowPageScroll:"vertical"
});
});Run Code Online (Sandbox Code Playgroud)
.carousel-indicators {
position: absolute !important;
bottom: -100px !important;
}
.carousel-indicators li {
background-color: green;
border: 1px solid green !important;
}
.carousel-inner>.item>div {
padding: 30px;
}
.carousel-inner>.item>div>div {
text-align: center;
}Run Code Online (Sandbox Code Playgroud)
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="container" id="skill-builder">
<div class="row">
<div id="carousel-example-generic" …Run Code Online (Sandbox Code Playgroud)我得到这个错误在我的catch块,当我做myPeerConnection.createAnswer()
PeerConnection不能在具有have-remote-off或have-local-pranswer之外的状态下创建答案。
我正在使用socket.io作为信令服务器。我正在遵循MDN的教程
这是我的代码:
myPeerConnection.setRemoteDescription(desc).then(() => {
return navigator.mediaDevices.getUserMedia(mediaConstraints);
}).then((stream) => {
localStream = stream;
document.getElementById("localVideo").srcObject = localStream;
return myPeerConnection.addStream(localStream);
}).then(() => {
return myPeerConnection.createAnswer(); //No error when removed this then chain
}).then((answer) => {
return myPeerConnection.setLocalDescription(answer); // No error when removed this then chain
}).then(() => {
socket.emit('video-answer', {
sdp: myPeerConnection.localDescription
});
}).catch(handleGetUserMediaError);
Run Code Online (Sandbox Code Playgroud)
这里的答案也没有帮助我。
我已将整个项目上传到Github。您可以在此处查看脚本文件。
任何帮助表示赞赏。
我试图隐藏当您暂停视频时显示的相关视频但是我从类似的问题中发现,截至2018年9月25日,无法禁用显示的相关视频.
更改的效果是您无法禁用相关视频.但是,您可以选择指定播放器中显示的相关视频应与刚刚播放的视频位于同一频道.
更具体:
在更改之前,如果参数的值设置为0,则播放器不会显示相关视频.更改后,如果rel参数设置为0,播放器将显示与刚刚播放的视频相同频道的相关视频.
这是JSFiddle.
此外,该参数showinfo=0不再起作用,用于隐藏视频标题,观看稍后按钮和分享按钮.它已于2018年9月25日弃用,但不知何故KhanAcademy仍能隐藏包括相关视频在内的内容.他们使用的是不同的API吗?
像汗学院一样隐藏相关视频或在顶部覆盖缩略图以隐藏相关视频将对我有用.