Jump to content
  • 0

Конструкция if else в html


Maxjuvefan
 Share

Question

Здравствуйте. У меня такой вопрос - как в html применить конструкцию if else? 
Есть html страница, на которой идет трансляция с 16 камер (4х4) одновременно через плагин vlc. Нужно сделать, чтобы в режиме маленьких окон шла одна трансляция (live2), а когда одно любое окошко раскрывается в полноэкранном режиме, шла уже другая трансляция (live1). Может кто-нибудь подскажет, как это сделать?
 

<!DOCTYPE html> 
<html> 
<body> 
<head> 
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
<meta http-equiv="refresh" content="600" /> 
</head> 

<object 
classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" 
codebase="http://download.videolan.org/pub/videolan/vlc/last/wi.." 
id="vlc" 
name="vlc" 
class="vlcPlayer" 
events="True"> 

<param name="Src" value="rtsp://admin:max1990@192.168.0.20:554/live2.sdp"/> 
<embed id="vlcEmb" type="application/x-google-vlc-plugin" version="VideoLAN.VLCPlugin.2.2.4" autoplay="yes" loop="no" controls="no" volume="0" width=24% height=auto 
target="rtsp://admin:max1990@192.168.0.20:554/live2.sdp" ></embed> 

/*повторение 15 раз еще*/ 


</object> 
</body> 
</html>

 

Edited by klierik
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy