我用moodle建立了视频课程网站。我将与 jwplayer 分享我的视频,我的代码如下所示。
<p>
<script src="jwplayer/jwplayer.js" type="text/javascript"></script>
<script type="text/javascript"> jwplayer.key="KEY";</script>
</p>
<div id='player'>
<a href="rtsp://WowzaAdress:554/vod/mp4:Lesson1.mp4"><img src='jwplayer/preview.jpg' alt='RTSP Link' /><br /></a>
</div>
<script type="text/javascript">
jwplayer('player').setup({
id : 'playerID',
fallback: false,
width: '920', height: '518',
image: 'jwplayer/preview.jpg',
sources: [{
file: "http://WowzaAdress:1935/vod/smil:Lesson1.smil/jwplayer.smil?protocol=rtmpe"
},{
file: "http://WowzaAdress:1935/vod/Lesson1.mp4/playlist.m3u8"
}],
rtmp: {
bufferlength: 3
},
});
</script>
当用户右键单击“页面源”查看时,我想隐藏此代码。我该怎么做?