HonYa_fd Posted February 25, 2020 Posted February 25, 2020 (edited) Hi. i am trying to run a server app over wifi to start video on couple of Focuses at the same time. i have adb connection with no problem. when sending this, i get empty response with "dat=file"" [192.168.99.145:5555] sending command: shell am start -a android.intent.action.VIEW -t video/mp4 -d file:///storage/emulated/0/Movies/WORLD.mp4 [192.168.99.145:5555] Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 } tryed content, " , ' ,....did not help tryed it over USB cable as well. Focus reacts to any adb command properly and the connection is working. In fact, it starts the vive video player, as it should...but the enviroment is just empty....only the background is shown....looks like the path is totaly wrong...tryed different variants, no success.... thanks for any help Edited February 25, 2020 by HonYa_fd
VIVE_chengnay Posted February 26, 2020 Posted February 26, 2020 @HonYa_fd Could you try to ping the ip address of your focus? What did you get from the dat=file? also empty? And, could you also check "adb devices", whether you get authorization from the focus? If it is not authorized, it will say "(unauthorized)" beside the device list
HonYa_fd Posted February 26, 2020 Author Posted February 26, 2020 i have the device fully connected, i can ping it, it is listed in "adb devices" without unathorised.....over cable or over wi-fi, the same connection to device
VIVE_chengnay Posted February 26, 2020 Posted February 26, 2020 Could you provide sample project for me to try out on my side? You mentioned "looks like the path is totally wrong", could you confirm that is that file path existed?
HonYa_fd Posted February 26, 2020 Author Posted February 26, 2020 (edited) the file path was taken from Focus "viveport video player" where it is shown as /storage/emulated/0/Movies/ through adb command "ls" it as well listed in /sdcard/Movies/ (tryed this path as well) the files are called ALBA.mp4 and WORLD.mp4 those are 360 videos files are stored directly in the Focus (no ext sdcard), if you try to play them through the Focus via FileBrowser or the VIVEPort video - it works the pc app generates exactly the same command as i try through the command line "adb shell am start -a android.intent.action.VIEW -t video/mp4 -d file:///storage/emulated/0/Movies/WORLD.mp4" when i send this command through the command line, next line i get is: Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 } and in Focus, the video player starts, with no menu - looks like it is waiting for the file Edited February 26, 2020 by HonYa_fd
VIVE_chengnay Posted February 26, 2020 Posted February 26, 2020 >adb shell am start -a android.intent.action.VIEW -t video/mp4 -d file:///storage/emulated/0/Focus_Movies/The_Dream_Collector.mp4 Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 } Warning: Activity not started, its current task has been brought to the front I got the above Warning while connecting Focus to my PC method. But, video will not play, is that normal? I just finished trying, my result for both scenarios are the same. Your adb command works the same for "adb over Wifi"
HonYa_fd Posted February 26, 2020 Author Posted February 26, 2020 33 minutes ago, chengnay said: Starting: Intent { act=android.intent.action.VIEW dat=file: typ=video/mp4 } Warning: Activity not started, its current task has been brought to the front The warning is because the player is already started - that is ok my question is.... why is dat=file: empty....if i try that command on an android emulator it adds the file path in that.... dat=file:///storage/emulated/0/Movie/WORLD.mp4 and than it says in the emulator after it launches the video player, that such file is not existing
VIVE_chengnay Posted February 26, 2020 Posted February 26, 2020 Could you provide more detailed information on the Android emulator? Where did you get that? Where should I download it? I remember Android emulator, it is kind of a local virtual machine, I guess the file path will not be the same as the one you use for Focus device.
HonYa_fd Posted February 26, 2020 Author Posted February 26, 2020 the file path itself does not matter - if will fail with the program loading the movie.... i have like 5 android emulators, it works in all of them (mainly using the Android Studio) apparently the Focus does not translate the path in the sent adb command to Starting intent...the file there is missing.....what is the correct way than, how to set the file path, so Focus takes it over and works with it?... how can the adb command look like, if it needs to look different?
VIVE_chengnay Posted February 26, 2020 Posted February 26, 2020 Please clarify your questions again. Are you trying to play mp4 files on Android emulator or Focus? Are you running Focus rom on your Android emulator? Like I said, I tried using USB cable or "adb over Wifi", both works with Focus device.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now