Project

General

Profile

« Previous | Next » 

Revision 1679

Added by David RIVRON 3 months ago

Identification des video et audio distant sur un portal au moment de la génération

View differences:

branches/1.5-sc50/model/sources/binaries/remoteAudio/web/remoteAudio@view.transf
5 5
	<sm:content>
6 6
		<sm:Widget sc:refUri="/office/gen/site/wdt/media/tePlayer.uiwidget">
7 7
			<sm:xhtmlContentZone key="media">
8
				<sm:WFreeBlock>
9
					<audio preload="metadata">
10
						<sm:addAttribute name="src">
11
							<sm:remoteBinaryUrl urlType="originalUrl"/>
12
						</sm:addAttribute>
13
						<sm:callBinaryMeta axis="tracks"/>
14
					</audio>
15
				</sm:WFreeBlock>
8
				<sm:choose>
9
					<sm:when xpath="json2Dom(computeStrAgent('//remoteNodeInfos'))/o[contains(s[@k='prc'], 'audio')]">
10
						<sm:WFreeBlock>
11
							<video preload="metadata">
12
								<source>
13
									<sm:addAttribute name="src">
14
										<sm:remoteBinaryUrl urlType="originalUrl"/>
15
									</sm:addAttribute>
16
									<sm:addAttribute name="type">audio/x-scportal</sm:addAttribute>
17
								</source>
18
								<sm:callBinaryMeta axis="tracks"/>
19
							</video>
20
						</sm:WFreeBlock>
21
					</sm:when>
22
					<sm:otherwise>
23
						<sm:WFreeBlock>
24
							<video preload="metadata">
25
								<sm:addAttribute name="src">
26
									<sm:remoteBinaryUrl urlType="originalUrl"/>
27
								</sm:addAttribute>
28
								<sm:callBinaryMeta axis="tracks"/>
29
							</video>
30
						</sm:WFreeBlock>
31
					</sm:otherwise>
32
				</sm:choose>
16 33
			</sm:xhtmlContentZone>
17 34
		</sm:Widget>
18 35
	</sm:content>
branches/1.5-sc50/model/sources/binaries/remoteVideo/web/remoteVideo@view.transf
5 5
	<sm:content>
6 6
		<sm:Widget sc:refUri="/office/gen/site/wdt/media/tePlayer.uiwidget">
7 7
			<sm:xhtmlContentZone key="media">
8
				<sm:WFreeBlock>
9
					<video preload="metadata">
10
						<sm:addAttribute name="src">
11
							<sm:remoteBinaryUrl urlType="originalUrl"/>
12
						</sm:addAttribute>
13
						<sm:callBinaryMeta axis="tracks"/>
14
					</video>
15
				</sm:WFreeBlock>
8
				<sm:choose>
9
					<sm:when xpath="json2Dom(computeStrAgent('//remoteNodeInfos'))/o[contains(s[@k='prc'], 'video')]">
10
						<sm:WFreeBlock>
11
							<video preload="metadata">
12
								<source>
13
									<sm:addAttribute name="src">
14
										<sm:remoteBinaryUrl urlType="originalUrl"/>
15
									</sm:addAttribute>
16
									<sm:addAttribute name="type">video/x-scportal</sm:addAttribute>
17
								</source>
18
								<sm:callBinaryMeta axis="tracks"/>
19
							</video>
20
						</sm:WFreeBlock>
21
					</sm:when>
22
					<sm:otherwise>
23
						<sm:WFreeBlock>
24
							<video preload="metadata">
25
								<sm:addAttribute name="src">
26
									<sm:remoteBinaryUrl urlType="originalUrl"/>
27
								</sm:addAttribute>
28
								<sm:callBinaryMeta axis="tracks"/>
29
							</video>
30
						</sm:WFreeBlock>
31
					</sm:otherwise>
32
				</sm:choose>
16 33
			</sm:xhtmlContentZone>
17 34
		</sm:Widget>
18 35
	</sm:content>

Also available in: Unified diff