Log in or register to post comments

AutoPlay issue with Vuforia5-0-10 sample

February 9, 2016 - 2:30am #17

Hi,

Just created a Unity5.3.0f4 project with Vuforia video sample 5-0-10 package.

Also enbled Autoplay option on Video prefab.

build for iOS and tracked on stones and chips image, Video   struck  and audio is playing. if i lost the focus and track again, it is working fine.

Anyone has solution for this ? for first time onwards i have to play the video in autoplay mode. 

AutoPlay issue with Vuforia5-0-10 sample

February 9, 2016 - 2:32am #16

Also it is re-producable.

AutoPlay issue with Vuforia5-0-10 sample

February 9, 2016 - 8:23am #15

It sounds like the issue described here (see there for solution):

https://developer.vuforia.com/forum/unity-extension-technical-discussion/video-texture-playback-ios-92

 

AutoPlay issue with Vuforia5-0-10 sample

February 9, 2016 - 11:33pm #14

Hi AlessandroB,

i followed the same steps which you mentioned in the link, 

  • Opened Unity project

  • renamed  VideoPlayerHelper.m.txt to VideoPlayerHelper.m

  • renamed VideoPlayerWrapper.mm.txt to VideoPlayerWraper.mm

  • Added yellow lines (conditions) on VideoPlayerHelper.m file

  • Created Xcode build and copied libVuforiaMedia.a from Xcode and replaced in Unity-iOS folder.

  • Again Renamed back to VideoPlayerHelper.m.txt and VideoPlayerWrapper.mm.txt.

  • Again created a Unity Xcode build and tested in iOS mobile.

Still the problem exist as before. nothing changed.

Did i done anything wrong ? Please Suggest.

 

Thanks

AutoPlay issue with Vuforia5-0-10 sample

February 22, 2016 - 2:08am #13

Any good News/Solution For my Problem ? 

AutoPlay issue with Vuforia5-0-10 sample

March 2, 2016 - 10:03pm #12

I am also same issue. Please help to slove this issues

 

Just created a Unity5.2 project with Vuforia video sample 5-0-6 package.

Also enbled Autoplay option on Video prefab and build for iOS.

On first tracking of Stones & Chips image, Video   struck  and audio is playing.

if i lost the focus and track again (second track), it is working fine.

Anyone have solution for this ? From first time onwards i want to play the video perfectly.

AutoPlay issue with Vuforia5-0-10 sample

March 7, 2016 - 5:10am #11

Hi,

We have a project and we are facing this issue. 

What is the next version release date to solve this issue ?

Thanks,

Vamshi

 

AutoPlay issue with Vuforia5-0-10 sample

March 7, 2016 - 11:41am #10

Next version is expected very soon, but the solution is exactly as explained here:

https://developer.vuforia.com/forum/unity-extension-technical-discussion/video-texture-playback-ios-92

 

AutoPlay issue with Vuforia5-0-10 sample

March 7, 2016 - 11:13pm #9

Dear AlessandroB,

 

                Hi , Thank you for your replay.  I already check your mentioned url but issues is not solved. Please give any other way to solve this issue.

AutoPlay issue with Vuforia5-0-10 sample

March 7, 2016 - 11:21pm #8

yes, am also facing same issue even after following those instructions. 

You can see #4 in this page.

AutoPlay issue with Vuforia5-0-10 sample

March 8, 2016 - 3:45am #7

That sounds stragnge, we have validated the instructions described in this thread quite a few times:

https://developer.vuforia.com/forum/unity-extension-technical-discussion/video-texture-playback-ios-92

 

please make sure that:

- you haven't missed any of the steps

- you have copied the newly generated libVuforiaMedia.a to the Plugins/iOS folder

- you have renamed all the .mm files back to .txt

- you have refershed the Assets in your Unity sample project, after doingn the steps above

- you have deleted the Xcode project that Unity generates (make sure that Unity generates a new one) before (re)building your project for iOS

 

AutoPlay issue with Vuforia5-0-10 sample

March 8, 2016 - 4:48am #6

Thank you for your replay...

 

I checked all steps that you are mentioned. But still issue is not solved.

I set the video first time full screen it works fine. But on the target the video have same issue as first time audio only play and the video is struck.

 

Please said your mail id i will send my sample project.

AutoPlay issue with Vuforia5-0-10 sample

March 8, 2016 - 11:30pm #5

Yes, followed all your steps. But no luck. still audio is playing without video for the first time.

here am attaching a screenshot which shows changed code.

AttachmentSize
Image icon changes.png182.56 KB

AutoPlay issue with Vuforia5-0-10 sample

March 9, 2016 - 12:14am #4

Yes , Issue is not solved. still audio is playing without video for the first time.

AutoPlay issue with Vuforia5-0-10 sample

March 10, 2016 - 2:59am #3

Hi,

Is anyone checked, new release 5.5 solves the auto-play issue ?

Thanks!

AutoPlay issue with Vuforia5-0-10 sample

March 11, 2016 - 4:52am #2

Hi,

  I checked the new release 5.5 sdk, its works great. Now issues is solved.Thank you very much...

 

AutoPlay issue with Vuforia5-0-10 sample

August 2, 2016 - 6:19am #1

you could use something like: 

 

if (video.VideoPlayer.IsPlayableOnTexture())
            {
                VideoPlayerHelper.MediaState state = video.VideoPlayer.GetStatus();
                if (state == VideoPlayerHelper.MediaState.PAUSED ||
                    state == VideoPlayerHelper.MediaState.READY ||
                    state == VideoPlayerHelper.MediaState.STOPPED)
                {
                    // Pause other videos before playing this one
                    PauseOtherVideos(video);

                    // Play this video on texture where it left off
                    //video.VideoPlayer.Play(false, video.VideoPlayer.GetCurrentPosition());

                    // Play this video from the beginning
                    video.VideoPlayer.Play(false, 0);
                    if (!firststart)
                    {
                        StartCoroutine(playAgain(video));
                        firststart = true;
                    }

                }
                else if (state == VideoPlayerHelper.MediaState.REACHED_END)
                {
                    // Pause other videos before playing this one
                    PauseOtherVideos(video);

                    // Play this video from the beginning
                    video.VideoPlayer.Play(false, 0);
                }
            }
        }

 

IEnumerator playAgain(VideoPlaybackBehaviour video )
    {
        yield return new WaitForSeconds(3f);
        VideoPlayerHelper.MediaState state = video.VideoPlayer.GetStatus();

        if (state != VideoPlayerHelper.MediaState.PLAYING) {
            video.VideoPlayer.Play(false, 0);
        }
    }

 

Log in or register to post comments