PALF Posted May 14, 2014 Share Posted May 14, 2014 Hello all. In my application i've a many video files in the server. But i don't know how to play in unigui aplication. Any axample about this? Thank's in advance. Alfonso Quote Link to comment Share on other sites More sharing options...
zilav Posted May 14, 2014 Share Posted May 14, 2014 Any javascript video player http://www.videojs.com/ http://mediaelementjs.com/ https://flowplayer.org/ and many others... Quote Link to comment Share on other sites More sharing options...
PALF Posted May 14, 2014 Author Share Posted May 14, 2014 Thank's. But i don't know how to embebed in unigui application. Any example? Thank's again. Quote Link to comment Share on other sites More sharing options...
zilav Posted May 14, 2014 Share Posted May 14, 2014 Check demo for HTMLFrame. You can use any css/html/js code inside UniGUI. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 15, 2014 Share Posted May 15, 2014 Hi alf. Try it, I tested on jwplayer (version JW FLV Media Player 5.7), I downloaded from here: http://webi.ru/base/files/tovar/jw_flv_media_player_5_7.zip Embedding the JW Player on your website: 1. Download http://webi.ru/base/files/tovar/jw_flv_media_player_5_7.zip and copy the files (swfobject.js, player.swf) in the directory "files" 2. add CustomFiles: files/swfobject.js files/player.swf in UniServerModule 3. Add a video file to the directory "files", for exampe files/flowplayer.flv 4. Add UniHTMLFrame1 to Form 5. UniHTMLFrame1 - > add HTML: <div id="player"></div> 6. UniHTMLFrame1 - > add AfterScript: var so = new SWFObject('files/player.swf','mpl','400','250','8'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','file=flowplayer.flv'); so.write('player'); 7. AddMimeType in UniServerModule: procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin MimeTable.AddMimeType('flv', 'FLV'); end; it's just a simple example, if you will read the documentation, there are many possibilities... good luck! 3 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2014 Share Posted May 16, 2014 or on UniPanel: function afterrender(sender, eOpts){ var so = new SWFObject('files/player.swf','mpl','400','250','8'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','file=flowplayer.flv'); so.write(this.id); } Quote Link to comment Share on other sites More sharing options...
PALF Posted May 16, 2014 Author Share Posted May 16, 2014 Fantastic!!!! Thank's for all Quote Link to comment Share on other sites More sharing options...
JohanC Posted July 24, 2018 Share Posted July 24, 2018 or on UniPanel: function afterrender(sender, eOpts){ var so = new SWFObject('files/player.swf','mpl','400','250','8'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','file=flowplayer.flv'); so.write(this.id); } jwplayer2.png jwplayer3.png I implemented all instructions, when I run the WebApp, the video does not show, what am I doing wrong Thanks Johan Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 24, 2018 Share Posted July 24, 2018 Hi, Did you follow these instructions ? Embedding the JW Player on your website: 1. Download http://webi.ru/base/files/tovar/jw_flv_media_player_5_7.zip and copy the files (swfobject.js, player.swf) in the directory "files" 2. add CustomFiles: files/swfobject.js files/player.swf in UniServerModule 3. Add a video file to the directory "files", for exampe files/flowplayer.flv 4. Add UniHTMLFrame1 to Form 5. UniHTMLFrame1 - > add HTML: <div id="player"></div> 6. UniHTMLFrame1 - > add AfterScript: var so = new SWFObject('files/player.swf','mpl','400','250','8'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','file=flowplayer.flv'); so.write('player'); 7. AddMimeType in UniServerModule: procedure TUniServerModule.UniGUIServerModuleCreate(Sender: TObject); begin MimeTable.AddMimeType('flv', 'FLV'); end; it's just a simple example, if you will read the documentation, there are many possibilities... good luck! jwplayer.png Quote Link to comment Share on other sites More sharing options...
JohanC Posted July 24, 2018 Share Posted July 24, 2018 Yes I did, I also tried the uniPanel, same problem, Microsoft Edge and Chrome gives no response, Microsoft Internet Explorer says "Video not found or access denied". I am compiling the App as an exe file which I then run on my development PC (local) Regards Johan Quote Link to comment Share on other sites More sharing options...
JohanC Posted July 25, 2018 Share Posted July 25, 2018 I did some more "research" I managed to get the example App working with a mp4 video file, but not with a flv file. And I had to find settings in Google Chrome to allow the mp4 file to be played by the example App. In Microsoft Internet Explorer it works with the mp4 file without fiddling with IE settings. In Microsoft Edge I had no luck at all. Just thought I should share this Regards Johan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.