Flash path

49 views
Skip to first unread message

Gnome

unread,
Oct 10, 2012, 11:51:39 AM10/10/12
to mnemosyne-...@googlegroups.com
Hi Peter,

You suggested previously to make an tag for flash objects in mnemosyne, so that there is no need for using the full path. I see now that this would be very useful when sharing card with flash object in it or reviewing the cards on another computer because the path to defaut_db is different. Do you think this could be implemented somehow in an future version of mnemosyne?

Here is an basic flash tag that works in mnemosyne:
<object type="application/x-shockwave-flash" data="C:/Users/Gnome/AppData/Roaming/Mnemosyne/default.db_media/drawPad.swf" width="440" height="330">

Gnome

unread,
Oct 10, 2012, 4:22:43 PM10/10/12
to mnemosyne-...@googlegroups.com
forgot the </object>

<object type="application/x-shockwave-flash" data="C:/Users/Gnome/AppData/Roaming/Mnemosyne/default.db_media/drawPad.swf" width="440" height="330">

and sometimes flashVars may be specified:

<object type="application/x-shockwave-flash" data="C:/Users/Gnome/AppData/Roaming/Mnemosyne/default.db_media/video.swf" width="320" height="240"><param name=FlashVars value="v=videoTemp/IoO_211224_mild_LIO_Q2.flv" /></object>

Peter Bienstman

unread,
Oct 11, 2012, 7:35:55 AM10/11/12
to mnemosyne-...@googlegroups.com
It was on my todo list, but not very high up.

However, since your bug reports have been really valuable, I will boost
the priority of that request.

What about the following approach: we add 'Insert flash' in the right
click menu, and then you can select a filename. Just like with images,
the swf file will be copied to the media directory, and then Mnemosyne
will insert html like this:

<object type="application/x-shockwave-flash"> data="drawPad.swf</object>

At run time, Mnemosyne will expand the argument of 'data' to a full path.

Obviously, any extra arguments are specific for each swf file and you
would need to add those manually.

How does this sound?

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To post to this group, send email to mnemosyne-...@googlegroups.com.
> To unsubscribe from this group, send email to
> mnemosyne-proj-u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/q_3sLl2P4pcJ.
> For more options, visit https://groups.google.com/groups/opt_out.

Gnome

unread,
Oct 11, 2012, 12:56:11 PM10/11/12
to mnemosyne-...@googlegroups.com
Wow, that sounds great! Its good that additional parameters like width and height can be specified, because it must for the file to display correctly and sometimes may be set to a customized value. According to this http://stackoverflow.com/questions/5136317/get-dimensions-from-a-flash-file-swf-in-pure-python the width and height is in the .swf's header when inserting the file, but that could perhaps be implemented later.

Do you think it is possible to make an plugin so that when under windows mnemosyne uses flash for video playback? The video tag would need to be replaced under runtime by:
<object type="application/x-shockwave-flash" data="video.swf"><param name=FlashVars value="v=myVideoFile.flv" /></object>

According to adobe the formats supported are MP4, M4A, MOV, MP4V, 3GP, and 3G2 as long as they use standard H.264 encoding. But does not support MP4 from itunes or digitally encrypted by FairPlay. I also found an excellent source for converting videos here: http://video.online-convert.com

Best regards
Geir
> mnemosyne-proj-users+unsub...@googlegroups.com.

Peter Bienstman

unread,
Oct 12, 2012, 2:33:57 AM10/12/12
to mnemosyne-...@googlegroups.com


On 10/11/2012 06:56 PM, Gnome wrote:

> Do you think it is possible to make an plugin so that when under windows
> mnemosyne uses flash for video playback? The video tag would need to be
> replaced under runtime by:
> <object type="application/x-shockwave-flash" data="video.swf"><param
> name=FlashVars value="v=myVideoFile.flv" /></object>

Actually, this week I implemented a workaround on Windows which uses
mplayer to play videos. I'm not sure about using flash to play video, as
it would require users to convert their video...

In any case, the mplayer option is just a workaround until Qt fixes
their sound on Windows.

Cheers,

Peter
Reply all
Reply to author
Forward
0 new messages