Posts: 42
Threads: 20
Joined: Jul 2020
Reputation:
0
Hello,
have you basic examples code for play local mp4 video,
With I video components?
Thank a lot,
Best Regards
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
Your question is too vague. Play local to who?
Posts: 42
Threads: 20
Joined: Jul 2020
Reputation:
0
hello,
i have an standalone application,
my video is in the folder wwwroot,
is mp4 video,
and when i connect to my intraweb link,
impossible to found video and read,
i am in last intraweb version.
use edge, firefox .
it's same.
have any sample for undurstand why ?
thank's lot
best regards
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
I used the Guess demo.
1) I made a wwwroot folder.
2) I put a file video.mpr in the wwwroot folder.
3) I can access it fine using: http://127.0.0.1:43967/video.mp4
Posts: 42
Threads: 20
Joined: Jul 2020
Reputation:
0
12-08-2020, 05:25 PM
(This post was last modified: 12-08-2020, 05:31 PM by softdev85.)
Have you any idea, for knowing why he doesn't found videos
Can post your test source?
In fact I can 't found vidéo, when I select, in
I server controller the option uniqueUrl, but if I don' t select them, I can connect on the website only one time,
The second time, I have 404 errors.
Any ideas?
Best Regards
Posts: 18
Threads: 4
Joined: Mar 2018
Reputation:
1
Location: Colorado, USA
12-08-2020, 05:32 PM
(This post was last modified: 12-08-2020, 05:46 PM by pete@pdmagic.com.)
(12-08-2020, 05:25 PM)softdev85 Wrote: Have you any idea, for knowing why he doesn't found videos
Can post your test source?
Hmm...
So Chad's source would simply be the guess demo - he wouldn't have written any code for accessing the video. What he did was show you the link that accesses the file. Is that what you're trying to do? Or are you trying to create a link in the IW application to the file? Or something else?
Do you have an app that's already running and working, other than accessing the video?
Pete
(12-08-2020, 05:25 PM)softdev85 Wrote: Have you any idea, for knowing why he doesn't found videos
Can post your test source?
In fact I can 't found vidéo, when I select, in
I server controller the option uniqueUrl, but if I don' t select them, I can connect on the website only one time,
The second time, I have 404 errors.
Any ideas?
Best Regards
Sounds like this is a new app. If so, and if it's simple, can you zip it and upload? I'll have a look.
Posts: 42
Threads: 20
Joined: Jul 2020
Reputation:
0
hello,
yes 127.0.0.1:3015/Z2k2bsTlLNksj3zbKq~oDiEjoEa/video.mp4 work well thank's
but how i i creat this link by source code ?
best regards
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
Does 127.0.0.1:3015/video.mp4
Without the session work for you?
Posts: 18
Threads: 4
Joined: Mar 2018
Reputation:
1
Location: Colorado, USA
I usually use Application.SendFile(). This is because it let's me build, find or otherwise prepare the file for download at that moment rather than having it already in place. Using SendFile() you can use any control that you can attach an event to. For example, a TIWButton or a TIWLink. Create an event handler for the click and inside the event handler, use the Application.SendFile() function. Note that SendFile() can send a file from anywhere, not just from the wwwroot folder.
Alternatively, you can use TIWURL and set its URL property to the folder with the file in it.
IW also has the ability to manage temp files, but I don't recommend that for videos because it will copy the file to a temp folder which is a costly operation.
Posts: 42
Threads: 20
Joined: Jul 2020
Reputation:
0
hello,
thank's for your help
is ready now,
and yes i use session
thank's a lot
best regards
|