-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle different seervices other than youtube
- Loading branch information
Showing
12 changed files
with
301 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="wcvideo-container default-player" tal:define="util context/@@wcmedia-utils; | ||
settings util/settings; | ||
video nocall: video|context; | ||
height height|video/height|settings/default_video_height|string:720; | ||
width width|video/width|settings/default_video_width|string:400; | ||
video_url video/video_url"> | ||
|
||
<video width="320" | ||
height="240" | ||
controls="controls" | ||
preload="none" | ||
class="active pat-media" | ||
tal:attributes="width width; | ||
height height;"> | ||
<source src="${video_url}" /> | ||
</video> | ||
|
||
|
||
</div> |
32 changes: 32 additions & 0 deletions
32
wildcard/media/adapters/templates/internal_video_template.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<div class="wcvideo-container internal-video-player" tal:define="util context/@@wcmedia-utils; | ||
settings util/settings; | ||
video nocall: video|context; | ||
height height|video/height|settings/default_video_height|string:720; | ||
width width|video/width|settings/default_video_width|string:400; | ||
upload_to_youtube video/upload_video_to_youtube|nothing; | ||
video_url view/get_embed_url|nothing"> | ||
|
||
|
||
<video width="320" height="240" poster="poster.jpg" controls="controls" preload="none" class="active pat-media" tal:attributes="poster util/image_url; | ||
width width; | ||
height height;"> | ||
<tal:videos tal:repeat="video python:util.videos()"> | ||
<source src="/media/echo-hereweare.mp4" type="video/mp4" tal:attributes="src video/url; | ||
type string:video/${video/type}" /> | ||
</tal:videos> | ||
<track kind="subtitles" src="subtitles.srt" srclang="en" tal:condition="util/subtitles_url" tal:attributes="src util/subtitles_url" /> | ||
<object width="320" height="240" type="application/x-shockwave-flash" data="flashmediaelement.swf" tal:attributes="data string:${util/mstatic}/flashmediaelement.swf; | ||
width width; | ||
height height;"> | ||
<param name="movie" value="flashmediaelement.swf" tal:attributes="value string:${util/mstatic}/flashmediaelement.swf"/> | ||
<param name="flashvars" value="controls=true&file=myvideo.mp4" tal:attributes="value string:controls=true&file=${util/mp4_url_quoted}&poster=${util/image_url_quoted};" /> | ||
<param name="allowFullScreen" value="true" /> | ||
<img src="myvideo.jpg" width="320" height="240" title="No video playback capabilities" tal:condition="util/image_url" tal:attributes="src util/image_url; | ||
title video/Title; | ||
width width; | ||
height height;"/> | ||
</object> | ||
</video> | ||
|
||
|
||
</div> |
2 changes: 1 addition & 1 deletion
2
...owser/templates/youtube_embed_template.pt → ...pters/templates/youtube_embed_template.pt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.