Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
videojs-2933497
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
videojs-2933497
Commits
dd13e8a9
Commit
dd13e8a9
authored
14 years ago
by
Hesh Wanigasooriya
Browse files
Options
Downloads
Patches
Plain Diff
#977146
by mattman Support for iOS devices
parent
4248794c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theme/videojs.tpl.php
+21
-18
21 additions, 18 deletions
theme/videojs.tpl.php
with
21 additions
and
18 deletions
theme/videojs.tpl.php
+
21
−
18
View file @
dd13e8a9
...
...
@@ -5,21 +5,24 @@
* Provide the HTML output of the videojs audio player.
*/
?>
<!-- Begin VideoJS -->
<div
class=
"video-js-box"
id=
"
<?php
print
$player_id
;
?>
"
>
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
<video
id=
"
<?php
print
$player_id
;
?>
"
class=
"video-js"
width=
"
<?php
print
(
variable_get
(
'videojs_width'
,
640
))
?>
"
height=
"
<?php
print
(
variable_get
(
'videojs_height'
,
264
))
?>
"
controls=
"controls"
preload=
"auto"
poster=
""
>
<?php
foreach
(
$items
as
$item
)
:
?>
<?php
$filepath
=
file_create_url
(
$item
[
'filepath'
]);
?>
<?php
if
(
$item
[
'filemime'
]
==
'video/mp4'
)
?>
<source
src=
"
<?=
$filepath
?>
"
type=
'video/mp4; codecs="avc1.42E01E, mp4a.40.2"'
/>
<?php
if
(
$item
[
'filemime'
]
==
'application/octet-stream'
)
?>
<source
src=
"
<?=
$filepath
?>
"
type=
'video/webm; codecs="vp8, vorbis"'
/>
<?php
if
(
$item
[
'filemime'
]
==
'application/ogg'
||
$item
[
'filemime'
]
==
'video/ogg'
)
?>
<source
src=
"
<?=
$filepath
?>
"
type=
'video/ogg; codecs="theora, vorbis"'
/>
<?php
endforeach
;
?>
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<!-- @TODO: Add Flowplayer on SWFTools or Flowplayer API modules -->
</video>
</div>
<!-- End VideoJS -->
\ No newline at end of file
<!-- Begin VideoJS -->
<div
class=
"video-js-box"
id=
"
<?php
print
$player_id
;
?>
"
>
<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
<video
id=
"
<?php
print
$player_id
;
?>
"
class=
"video-js"
width=
"
<?php
print
(
variable_get
(
'videojs_width'
,
640
))
?>
"
height=
"
<?php
print
(
variable_get
(
'videojs_height'
,
264
))
?>
"
controls=
"controls"
preload=
"auto"
poster=
""
>
<?php
//dd($items); ?>
<?
php
static
$videojs_sources
;
?>
<?php
$codecs
=
array
(
'video/mp4'
=>
'avc1.42E01E, mp4a.40.2'
,
'video/webm'
=>
'vp8, vorbis'
,
'video/ogg'
=>
'theora, vorbis'
,
'video/quicktime'
=>
'avc1.42E01E, mp4a.40.2'
);
?>
<?php
foreach
(
$items
as
$item
)
:
?>
<?php
$filepath
=
file_create_url
(
$item
[
'filepath'
]);
?>
<?php
$mimetype
=
$item
[
'filemime'
];
?>
<?php
if
(
array_key_exists
(
$mimetype
,
$codecs
))
:
?>
<?php
$mimetype
=
(
$mimetype
==
'video/quicktime'
)
?
'video/mp4'
:
$mimetype
;
?>
<?php
$videojs_sources
.
=
"<source src=
\"
$filepath
\"
type='
$mimetype
; codecs=
\"
"
.
$codecs
[
$mimetype
]
.
"
\"
' />"
;
?>
<?php
endif
;
?>
<?php
endforeach
;
?>
<?php
print
$videojs_sources
;
?>
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<!-- @TODO: Add Flowplayer on SWFTools or Flowplayer API modules -->
</video>
</div>
<!-- End VideoJS -->
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment