Commit a9c9c9b6 authored by yPhil's avatar yPhil
Browse files

player embedded, not playing anything, an uncaught error on pause

parent 5ab31e66
public/images/newlogo.png

647 Bytes | W: | H:

public/images/newlogo.png

6.37 KB | W: | H:

public/images/newlogo.png
public/images/newlogo.png
public/images/newlogo.png
public/images/newlogo.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -14,7 +14,7 @@
viewBox="0 0 520.50081 524.34889"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="newlogo.svg"
inkscape:export-filename="/home/px/src/petrolette/public/images/newlogo.png"
inkscape:export-xdpi="5.1900001"
......@@ -29,15 +29,15 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="4.6317302"
inkscape:cx="42.305884"
inkscape:cy="270.028"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1920"
inkscape:window-height="1163"
inkscape:window-width="1050"
inkscape:window-height="1034"
inkscape:window-x="0"
inkscape:window-y="18"
inkscape:window-y="22"
inkscape:window-maximized="0"
units="px"
fit-margin-top="0"
......@@ -52,7 +52,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
......@@ -62,7 +62,7 @@
id="layer1"
transform="translate(-111.79684,-278.04128)">
<path
style="fill:none;fill-rule:evenodd;stroke:#ff4b03;stroke-width:41.90000153;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
style="fill:none;fill-rule:evenodd;stroke:#19b5fe;stroke-width:41.90000153;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 133.00535,299.14183 162.85714,94.28571 0,51.42857 0,193.42857"
id="path4138"
inkscape:connector-curvature="0"
......@@ -71,7 +71,7 @@
inkscape:export-ydpi="8.6499996"
inkscape:export-filename="/home/px/src/petrolette/public/images/newlogo.png" />
<path
style="fill:none;fill-rule:evenodd;stroke:#ff4b03;stroke-width:41.90000153;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
style="fill:none;fill-rule:evenodd;stroke:#19b5fe;stroke-width:41.90000153;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 372.04723,344.28468 0,51.42857 0,385.42857"
id="path4138-3"
inkscape:connector-curvature="0"
......@@ -80,7 +80,7 @@
inkscape:export-ydpi="8.6499996"
inkscape:export-filename="/home/px/src/petrolette/public/images/newlogo.png" />
<path
style="fill:none;fill-rule:evenodd;stroke:#ff4b03;stroke-width:41.90000153;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
style="fill:none;fill-rule:evenodd;stroke:#19b5fe;stroke-width:41.90000153;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 611.08914,299.14184 -162.85715,94.2857 0,51.42857 0,193.42857"
id="path4138-6"
inkscape:connector-curvature="0"
......
......@@ -544,7 +544,7 @@ PTL.dialog = {
title: PTL.tr('Add feed'),
class: "translate",
click: function() {
PTL.feed.add($('.column').first(), feedUrl, 'mixed', 8, 'on', true, false);
PTL.feed.add($('.column').first(), feedUrl, 'mixed', 450, 'on', true, false);
PTL.dialog.kill($dialog);
}
}
......
......@@ -397,6 +397,23 @@ PTL.feed = {
}
if (item.enclosures[0].url.match(/\.(ogg|mp3|mp4)$/)) {
var soundPlayer = document.createElement('audio');
soundPlayer.id = 'audio-player';
soundPlayer.controls = 'controls';
soundPlayer.src = item.enclosures[0].url;
soundPlayer.type = 'audio/mpeg';
if (item.enclosures[0].url.match(/\.(ogg)$/)) {
console.log('ogg!: %s (%s)');
soundPlayer.type = 'application/ogg';
} else {
console.log('mpeg!: %s (%s)');
soundPlayer.type = 'audio/mpeg';
}
$itemDiv.append(soundPlayer);
$soundLink
.attr('href', item.enclosures[0].url)
.appendTo($itemDiv);
......
......@@ -79,7 +79,7 @@ var PTL = (function() {
}
PTL.sideMenu('close');
PTL.feed.add($column, '', 'mixed', 8, 'on', true, false);
PTL.feed.add($column, '', 'mixed', 350, 'on', true, false);
});
$feedCodeButton.click(function(event) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment