rparty address
This commit is contained in:
parent
845523ffdd
commit
80d0591fc8
|
@ -6,20 +6,28 @@
|
|||
<meta charset=utf-8 />
|
||||
<title>videojs-contrib-hls embed</title>
|
||||
|
||||
<link href="https://unpkg.com/video.js/dist/video-js.css" rel="stylesheet">
|
||||
<script src="https://unpkg.com/video.js/dist/video.js"></script>
|
||||
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>Video.js Example Embed</h1>
|
||||
|
||||
<video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="268"
|
||||
data-setup='{}'>
|
||||
<source src="http://60.191.94.122:20046/live/cameraid/1001339%240/substream/1.m3u8" type="application/x-mpegURL">
|
||||
</video>
|
||||
<video id="hlsjs" class="player" controls autoplay></video>
|
||||
|
||||
<script>
|
||||
var playerName = $('#player').val();
|
||||
if (playerName == 'HLS.js') {
|
||||
var playerElement = $('#hlsjs');
|
||||
playerElement.show();
|
||||
var player = new Hls();
|
||||
console.log('Created HLS.js Player');
|
||||
player.loadSource("http://10.0.11.21:7086/live/cameraid/1000038%240/substream/2.m3u8");
|
||||
player.attachMedia(playerElement[0]);
|
||||
console.log('Set player source');
|
||||
player.on(Hls.Events.MANIFEST_PARSED, function() {
|
||||
video.play();
|
||||
console.log('Starting playback');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -14,7 +14,7 @@ class RpartyCreateUpdateSerializer(CustomModelSerializer):
|
|||
class Meta:
|
||||
model = Rparty
|
||||
fields = ['name', 'number', 'lawer', 'contacter', 'phone', 'email',
|
||||
'description', 'belong_dept']
|
||||
'description', 'belong_dept', 'address']
|
||||
extra_kwargs = {
|
||||
'belong_dept': {'required': True}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue