|
Post by louisatome on Apr 20, 2017 13:19:40 GMT
Hi,
Is there a way to implement a media streaming system for video/audio files with Rhodes? I want my user to choose a file from his file system and then display the chosen file in a audio/video HTML element.
Thanks,
Louis
|
|
|
Post by Alex Epifanov on Apr 20, 2017 17:14:28 GMT
What platform do you want to work it on? Probably you can load media with standard webview?
|
|
|
Post by louisatome on Apr 21, 2017 7:26:44 GMT
I need support for iOS and android. What do you mean by "load media with standard webview"?
|
|
|
Post by Alex Epifanov on Apr 22, 2017 0:04:09 GMT
|
|
|
Post by louisatome on Apr 24, 2017 8:23:31 GMT
I can't use Rho::WebView.navigate() because I need my video to be embeded in the webpage. And I think I'm not able to directly link my video file as it's located in the Rho::Application.userFolder folder.
|
|
|
Post by Alex Epifanov on Apr 25, 2017 9:06:58 GMT
What about rendering correct URL in your view template? Something like this:
index.erb:
<video> <source src="<%= Rho::Application.userFolder + '/movie.mp4' %> type="video/mp4"/> </video>
|
|
|
Post by louisatome on Apr 25, 2017 12:23:00 GMT
Thank you Alex, I didn't known I could use absolute file path in my webpage. It works on android and iOS.
|
|