Fix
This commit is contained in:
@ -189,7 +189,7 @@ function EpisodeDetail() {
|
|||||||
<audio
|
<audio
|
||||||
controls
|
controls
|
||||||
className="audio-player"
|
className="audio-player"
|
||||||
src={episode.audioPath}
|
src={episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`}
|
||||||
style={{ width: "100%", height: "60px" }}
|
style={{ width: "100%", height: "60px" }}
|
||||||
>
|
>
|
||||||
お使いのブラウザは音声の再生に対応していません。
|
お使いのブラウザは音声の再生に対応していません。
|
||||||
@ -277,7 +277,7 @@ function EpisodeDetail() {
|
|||||||
<div>
|
<div>
|
||||||
<strong>音声URL:</strong>
|
<strong>音声URL:</strong>
|
||||||
<a
|
<a
|
||||||
href={episode.audioPath}
|
href={episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
style={{ marginLeft: "5px" }}
|
style={{ marginLeft: "5px" }}
|
||||||
|
@ -303,7 +303,7 @@ function EpisodeList() {
|
|||||||
<div style={{ display: "flex", gap: "8px" }}>
|
<div style={{ display: "flex", gap: "8px" }}>
|
||||||
<button
|
<button
|
||||||
className="btn btn-primary"
|
className="btn btn-primary"
|
||||||
onClick={() => playAudio(episode.audioPath)}
|
onClick={() => playAudio(episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`)}
|
||||||
>
|
>
|
||||||
再生
|
再生
|
||||||
</button>
|
</button>
|
||||||
@ -314,13 +314,13 @@ function EpisodeList() {
|
|||||||
共有
|
共有
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{currentAudio === episode.audioPath && (
|
{currentAudio === (episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`) && (
|
||||||
<div>
|
<div>
|
||||||
<audio
|
<audio
|
||||||
id={episode.audioPath}
|
id={episode.audioPath}
|
||||||
controls
|
controls
|
||||||
className="audio-player"
|
className="audio-player"
|
||||||
src={episode.audioPath}
|
src={episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`}
|
||||||
onEnded={() => setCurrentAudio(null)}
|
onEnded={() => setCurrentAudio(null)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -284,7 +284,7 @@ function FeedDetail() {
|
|||||||
<div style={{ display: "flex", gap: "8px" }}>
|
<div style={{ display: "flex", gap: "8px" }}>
|
||||||
<button
|
<button
|
||||||
className="btn btn-primary"
|
className="btn btn-primary"
|
||||||
onClick={() => playAudio(episode.audioPath)}
|
onClick={() => playAudio(episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`)}
|
||||||
>
|
>
|
||||||
再生
|
再生
|
||||||
</button>
|
</button>
|
||||||
@ -295,13 +295,13 @@ function FeedDetail() {
|
|||||||
共有
|
共有
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{currentAudio === episode.audioPath && (
|
{currentAudio === (episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`) && (
|
||||||
<div>
|
<div>
|
||||||
<audio
|
<audio
|
||||||
id={episode.audioPath}
|
id={episode.audioPath}
|
||||||
controls
|
controls
|
||||||
className="audio-player"
|
className="audio-player"
|
||||||
src={episode.audioPath}
|
src={episode.audioPath.startsWith('/') ? episode.audioPath : `/podcast_audio/${episode.audioPath}`}
|
||||||
onEnded={() => setCurrentAudio(null)}
|
onEnded={() => setCurrentAudio(null)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user