Project

General

Profile

root / branches / 1.5-sc50 / model / sources / binaries / remoteAudio / web / remoteAudio@view.transf @ 1679

1
<?xml version="1.0"?>
2
<sm:remoteBinaryXhtmlTransf xmlns:sm="http://www.utc.fr/ics/scenari/v3/modeling" xmlns:sc="http://www.utc.fr/ics/scenari/v3/core" xmlns="http://www.w3.org/1999/xhtml">
3
	<sm:model sc:refUri="/binaries/remoteAudio/remoteAudio.model"/>
4
	<sm:axis code="view"/>
5
	<sm:content>
6
		<sm:Widget sc:refUri="/office/gen/site/wdt/media/tePlayer.uiwidget">
7
			<sm:xhtmlContentZone key="media">
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>
33
			</sm:xhtmlContentZone>
34
		</sm:Widget>
35
	</sm:content>
36
</sm:remoteBinaryXhtmlTransf>
(8-8/8)