sparkerman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017
03:03 PM
searching usb drive help
My private channel plays videos from an attached USB thumb drive. Before I play the videos I want to make sure the video is loaded on the thumb drive. I'm trying to use the following code
fg = createObject("roFileSystem")
if (fg.Exists("file://ext1:/test.mov"))
print "it found it"
end if
the above code worked on my older channels but coding with the new RSG format it doesn't seem to work. Is there another way to check for files on a loaded USB drive?
Thanks
fg = createObject("roFileSystem")
if (fg.Exists("file://ext1:/test.mov"))
print "it found it"
end if
the above code worked on my older channels but coding with the new RSG format it doesn't seem to work. Is there another way to check for files on a loaded USB drive?
Thanks
3 REPLIES 3
sparkerman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017
03:07 PM
Re: searching usb drive help
I should add that the code is located in my main.brs file
sparkerman
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2017
03:49 PM
Re: searching usb drive help
I solved it... the path was incorrect. It should be
fg = createObject("roFileSystem")
if (fg.Exists("ext1:/test.mov"))
print "it found it"
end if
fg = createObject("roFileSystem")
if (fg.Exists("ext1:/test.mov"))
print "it found it"
end if

michaelx
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2017
11:09 AM
Re: searching usb drive help
I'm hitting a wall in trying to get a sample app working (I'm a complete beginner too which doesn't help) that lets me play video from a USB stick.
Do you have a demo that you could post on how you got to show/play videos?
Do you have a demo that you could post on how you got to show/play videos?