Example #1
0
        private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            var stateRepresentation = GetStateRepresentation(e);

            MovieSource = App.MainVm.GetMovieSource(stateRepresentation);


            //VisualStateManager.GoToState(this, "SelectionLoading", false);

            await MovieSource.WaitForSelection();

            this.DefaultViewModel["Items"] = MovieSource.Items;
            Dispatcher.RunIdleAsync((a) => { itemsViewSource.View.MoveCurrentTo(MovieSource.Selected); });

            //flipView.DataContext = MovieSource.Items;
        }
Example #2
0
    protected override void Load(MovieSource source, LoadOptions loadOptions = null)
    {
        if (loadOptions == null)
        {
            loadOptions = this.loadOptions;
        }
        else
        {
            this.loadOptions = loadOptions;
        }

        // if we have audioSource set here to override audio in the source stream
        // don't load the audio in the demux.
        bool overrideAudio = audioSource != null && !loadOptions.skipAudio;

        if (overrideAudio)
        {
            loadOptions.skipAudio = true;
        }

        if (overrideAudio)
        {
            audiobuffer = audioSource;
        }

        base.Load(source, loadOptions);

        if (!loadOptions.preloadVideo)
        {
            if (movie.videoDecoder != null)
            {
                movie.videoDecoder.Decode(videoFrame);
            }
        }
        UpdateRendererUVRect();
    }
Example #3
0
 public void setSource(MovieSource source)
 {
     
 }
Example #4
0
 public void setSource(MovieSource source)
 {
     getMovies = source;
     videos    = getMovies();
     displayVideos();
 }
Example #5
0
 void navigationHelper_SaveState(object sender, SaveStateEventArgs e)
 {
     MovieSource.Selected  = itemsViewSource.View.CurrentItem;
     e.PageState[StateKey] = MovieSource.GetStateRepresentation();
 }
Example #6
0
 void INavigable.setSource(MovieSource source)
 {
 }
Example #7
0
 public void setSource(MovieSource source)
 {
     //Doesn't have a source.
 }