parent
6bb47bdcda
commit
c5168afe1f
Binary file not shown.
@ -0,0 +1,20 @@
|
||||
@model EditLiveRecordModel
|
||||
@{
|
||||
HtmlTitle = Model.Name;
|
||||
}
|
||||
<video id="videoElement" controls autoplay style="width:640px;height:480px;background-color:#000;"></video>
|
||||
@section scripts{
|
||||
<script src="/lib/flv.js/flv.min.js"></script>
|
||||
<script>
|
||||
if (flvjs.isSupported()) {
|
||||
var videoElement = document.getElementById('videoElement');
|
||||
var flvPlayer = flvjs.createPlayer({
|
||||
type: 'flv',
|
||||
url: 'http://'+location.hostname+ '@Model.Value'
|
||||
});
|
||||
flvPlayer.attachMediaElement(videoElement);
|
||||
flvPlayer.load();
|
||||
flvPlayer.play();
|
||||
}
|
||||
</script>
|
||||
}
|
Loading…
Reference in new issue