player embeds mejs-controls.svg with document; patch mediaelement to use inlined iconSprite
This commit is contained in:
parent
ef9a5b70d3
commit
acd6a2f475
4 changed files with 130 additions and 17 deletions
20
css/build.sh
20
css/build.sh
|
@ -24,17 +24,13 @@ else
|
|||
|
||||
echo "INFO: Minimized CSS to $cssdir/myplayer.min.css" >&2
|
||||
|
||||
for svg in \
|
||||
../mediaelement-plugins/dist/playlist/playlist-controls.svg \
|
||||
../mediaelement/build/mejs-controls.svg
|
||||
do
|
||||
svg_out="$cssdir/$(basename "$svg")"
|
||||
svg=../mediaelement-plugins/dist/playlist/playlist-controls.svg
|
||||
svg_out="$cssdir/$(basename "$svg")"
|
||||
|
||||
if ! cp "$svg" "$svg_out" ; then
|
||||
echo "ERROR: Copying controls SVG $svg failed; aborted." >&2
|
||||
exit 1
|
||||
else
|
||||
echo "INFO: Copied controls SVG to $svg_out" >&2
|
||||
fi
|
||||
done
|
||||
if ! cp "$svg" "$svg_out" ; then
|
||||
echo "ERROR: Copying controls SVG $svg failed; aborted." >&2
|
||||
exit 1
|
||||
else
|
||||
echo "INFO: Copied controls SVG to $svg_out" >&2
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue