Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How to Play movies rotated from a htmlgadget?  (Read 838 times)

0 Members and 1 Guest are viewing this topic.

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
How to Play movies rotated from a htmlgadget?
« on: February 21, 2009, 09:31:08 am »
I have today looked on videos from EmuMovies and most got it to work in MultiFE, but still missing some work to do (like to get it to work in Touch GUI too, but it all works in Arcade GUI in MultiFE just now, but not released yet.

Because I doesn't have Flash SDK, that mean I can not get movies to play rotated, if MultiFE have been rotated in 90, 180 and 270 degrees by the user. Since BlitzMax doesn't have any movie commands, the only I can do is using a HTML view gadget and invoke a javascript to play a movie, but WMP itself does not support rotated movies. I do only need these javascript functions as shown in the HTML code to been used by MultiFE:

Code: [Select]
<html>
<head>
<script>
function load(filename, rotate)
{
document.getElementById('video').filename=filename;
document.getElementById('video').URL=filename;
document.getElementById('video').settings.volume=0;
document.getElementById('video').autostart=1;
}

function stop()
{ document.getElementById('video').controls.stop();
}

function volume(vol)
{ document.getElementById('video').settings.volume=0;
}

function rotate(rot)
{
}

</script>

</head>

<body bgcolor="#000000" style="overflow:hidden; position:absolute; left:0;top:0;" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<object id="video" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="100%" height="100%">
<param name="filename" value="" />
<param name="showcontrols" value="false" />
<param name="animationatstart" value="0" />
<param name="transparentatstart" value="0" />
<param name="showaudiocontrols" value="0" />
<param name="showtracker" value="0" />
<param name="showdisplay" value="0" />
<param name="showstatusbar" value="0" />
<param name="stretchtofit" value="1" />
<param name="uimode" value="none">
<param name="sendplaystatechangeevents" value="true" />
<param name="playcount" value="9999" />
<param name="enablecontextmenu" value="0" />
<param name="cursortype" value="0" />
</object>
</body></html>

It would been neat if somebody can create a little flash player, which can been invoked by above scripts in the HTML gadget I use. The movie should just autoplay in the beginning and do a unlimited loops of it. As default the volume is turned down, but I might invoke it, if no music is playing in the background.

It should of course only need to been played the movies from EmuMovies, also AVI with XDiv Codes and can rotate the movies when needed (only 0, 90, 180 and 270 degress needed). Howover, I do not have plan to use it with the jukebox section to play music videos, due MultiFE is a singlescreen based frontend.

Actuelly can Flash play AVI files insinde, even the files is on a local harddrive and not on a homepage?

A standalone DLL is also fine, if it play in a borderless window with the video with allways on top..... But I do want to do using a homepage gadget, because it might work with Linux too.
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.