Merge pull request #749 from ANH25/editor-media-autoplay
Only autoplay added media when recording in editor
This commit is contained in:
commit
9aa3d7867e
@ -741,6 +741,7 @@ to a cloze type first, via 'Notes>Change Note Type'"""
|
||||
)
|
||||
return
|
||||
if file:
|
||||
av_player.play_file(file)
|
||||
self.addMedia(file)
|
||||
|
||||
# Media downloads
|
||||
@ -758,7 +759,6 @@ to a cloze type first, via 'Notes>Change Note Type'"""
|
||||
name = urllib.parse.quote(fname.encode("utf8"))
|
||||
return '<img src="%s">' % name
|
||||
else:
|
||||
av_player.play_file(fname)
|
||||
return "[sound:%s]" % fname
|
||||
|
||||
def urlToFile(self, url: str) -> Optional[str]:
|
||||
|
Loading…
Reference in New Issue
Block a user