コード例 #1
0
        public LocalContentsOperator(MoviePlaybackScreen movieScreen)
        {
            TitleText = SystemUtil.GetStringResource("Viewer_StoragePhone");

            ContentsCollection = new AlbumGroupCollection(false)
            {
                ContentSortOrder = Album.SortOrder.NewOneFirst,
            };
            MovieScreen                   = movieScreen;
            MovieScreen.MovieType         = MovieFileType.LocalMovie;
            MovieScreen.LocalMediaFailed += MovieScreen_LocalMediaFailed;
        }
コード例 #2
0
        public CameraApiContentsOperator(TargetDevice device, MoviePlaybackScreen movieScreen)
        {
            TargetDevice = device;
            TitleText    = TargetDevice.FriendlyName;
            MovieScreen  = movieScreen;
            MovieScreen.OnStreamingOperationRequested += MovieScreen_OnStreamingOperationRequested;
            movieScreen.MovieType = MovieFileType.SimpleStreamingMovie;
            ContentsCollection    = new AlbumGroupCollection();

            MovieStreamHelper.INSTANCE.MoviePlaybackData.SeekAvailable = TargetDevice.Api.Capability.IsSupported("seekStreamingPosition");

            MovieStreamHelper.INSTANCE.StreamClosed  += StreamHelper_StreamClosed;
            MovieStreamHelper.INSTANCE.StatusChanged += StreamHelper_StatusChanged;
        }
コード例 #3
0
 public DummyContentsOperator()
 {
     TitleText          = "Dummy storage";
     ContentsCollection = new AlbumGroupCollection();
 }
コード例 #4
0
 public DlnaContentsOperator(UpnpDevice upnp)
 {
     UpnpDevice         = upnp;
     TitleText          = UpnpDevice.FriendlyName;
     ContentsCollection = new AlbumGroupCollection();
 }