huayan889 Posted September 15, 2017 Posted September 15, 2017 The example in demo can only play URLs first! Please help me。thank you! Quote
delagoutte Posted September 15, 2017 Posted September 15, 2017 i think it is a bug. so if you can have your video url list and change current url of unimvideo when current is finished with onEnded event Quote
Sherzod Posted September 15, 2017 Posted September 15, 2017 Hi, Cannot change! Please explain, what you wanted? Quote
huayan889 Posted September 15, 2017 Author Posted September 15, 2017 procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimVideo1.Urls.Clear; UnimVideo1.Url :='files/0622v2.mp4'; UnimVideo1.Play; end; procedure TMainmForm.UnimVideo1Ended(Sender: TObject); begin UnimVideo1.Url := 'files/small.mp4'; UnimVideo1.Play; end; //This is modified, but the play is still the last one,Player list cannot be changed Quote
Sherzod Posted September 15, 2017 Posted September 15, 2017 Hi, We will check this issue, Can you try this approach for now ?!: procedure TMainmForm.UnimVideo1Ended(Sender: TObject); begin UnimVideo1.Url := 'files/test.mp4'; UnimVideo1.JSInterface.JSCode(#1'.media.dom.src="'+ UnimVideo1.Url +'";'); UnimVideo1.Play; end; Best regards, 1 Quote
cassiosi Posted September 21, 2017 Posted September 21, 2017 Hi, I would like to know how, I do to play .mp3 on UnimVideo example: I tested with UnimVideo1.Url: = 'http: // localhost: 8077 / files / test_02.mp3'; It worked but I would like to reproduce like this UnimVideo1.Url: = 'files / test_02.mp3'; and also like to give a stop in the middle of the playback and then change the sample file UnimVideo1.stop; UnimVideo1.urls.clear UnimVideo1.Url: = 'files / test_02.mp3'; UnimVideo1.play; Quote
Sherzod Posted September 21, 2017 Posted September 21, 2017 Hi, Which edition and build are you using? Best regards, Quote
cassiosi Posted September 21, 2017 Posted September 21, 2017 uniGUI Complete Trial Edition 1.0.0 Build 1410 delphi xe berlin 1.0 Quote
cassiosi Posted September 21, 2017 Posted September 21, 2017 I used the demo that came in the installation Quote
Administrators Farshad Mohajeri Posted September 21, 2017 Administrators Posted September 21, 2017 Please do not use forum reporting tool to notify us about your question. Quote
Sherzod Posted September 21, 2017 Posted September 21, 2017 Hi, but I would like to reproduce like this UnimVideo1.Url: = 'files / test_02.mp3'; It should work, just delete the extra spaces Quote
cassiosi Posted September 21, 2017 Posted September 21, 2017 " Please do not use forum reporting tool to notify us about your question." sorry, I used the wrong one to post the question Quote
Sherzod Posted September 21, 2017 Posted September 21, 2017 and also like to give a stop in the middle of the playback and then change the sample file UnimVideo1.stop; UnimVideo1.urls.clear UnimVideo1.Url: = 'files / test_02.mp3'; UnimVideo1.play; You can try to use this approach for now: Hi, We will check this issue, Can you try this approach for now ?!: procedure TMainmForm.UnimVideo1Ended(Sender: TObject); begin UnimVideo1.Url := 'files/test.mp4'; UnimVideo1.JSInterface.JSCode(#1'.media.dom.src="'+ UnimVideo1.Url +'";'); UnimVideo1.Play; end; Best regards, Quote
cassiosi Posted September 21, 2017 Posted September 21, 2017 I did the procedure, and it just does not play the .mp3 I removed the spaces, etou using the mobile version Quote
Sherzod Posted September 22, 2017 Posted September 22, 2017 Hi, I did the procedure, and it just does not play the .mp3 I removed the spaces, etou using the mobile version Sorry, I couldn't reproduce this issue, Did you test it on a mobile phone? Quote
cassiosi Posted September 24, 2017 Posted September 24, 2017 I did the following .. I opened the example that came in the folder ..Framework \ uniGUI \ Demos \ Touch \ Video I put a UnimButton1 with the code UnimVideo1.Urls.Clear; UnimVideo1.Urls.Text: = 'files / 2037.mp3'; (this file 2037.mp3 is in the files folder) UnimVideo1.Play; and tested via browser on the computer another question too and I would like to pause and change the file you are playing, for another example: reproducing this UnimVideo1.Urls.Clear; UnimVideo1.Urls.Text: = 'files / 2037.mp3'; (this file 2037.mp3 is in the files folder) UnimVideo1.Play; I put a UnimButton1 with the code UnimVideo1.stop; UnimVideo1.Urls.Clear; UnimVideo1.Urls.Text: = 'files / 2038.mp3'; (this file 2038.mp3 is in the files folder) UnimVideo1.Play; however it does not for it continues in the previous file even I changing My goal is to make a mp3 player, where I can show you events * if playing * if you have finished playing * change the volume pause * change the file you are playing Quote
cassiosi Posted September 25, 2017 Posted September 25, 2017 managed to make 99% what I needed use this command in play UnimVideo1.Stop; UnimVideo1.JSInterface.JSCode (# 1'.media.dom.src = "'+ edt_link_musica.Text +'"; '); UnimVideo1.Play; I have not used UnimVideo1.Url When I want to go back to the previous song, I UnimVideo1.Stop; UnimVideo1.JSInterface.JSCode (# 1'.media.dom.src = "'+ edt_link_musica.Text +'"; '); UnimVideo1.Play; Quote
cassiosi Posted March 22, 2019 Posted March 22, 2019 UnimVideo has how to use this component in the unigui desktop version? I tried more just worked out in the unigui mobile version Quote
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.