Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.h

Issue 2046253002: When HLS redirects are encountered recreate WebMediaPlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile failures. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/test/data/bear0.ts ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 WebMediaPlayer::TrackId addVideoTrack(const WebString&, WebMediaPlayerClient ::VideoTrackKind, const WebString&, const WebString&, bool) final; 342 WebMediaPlayer::TrackId addVideoTrack(const WebString&, WebMediaPlayerClient ::VideoTrackKind, const WebString&, const WebString&, bool) final;
343 void removeVideoTrack(WebMediaPlayer::TrackId) final; 343 void removeVideoTrack(WebMediaPlayer::TrackId) final;
344 void addTextTrack(WebInbandTextTrack*) final; 344 void addTextTrack(WebInbandTextTrack*) final;
345 void removeTextTrack(WebInbandTextTrack*) final; 345 void removeTextTrack(WebInbandTextTrack*) final;
346 void mediaSourceOpened(WebMediaSource*) final; 346 void mediaSourceOpened(WebMediaSource*) final;
347 void requestSeek(double) final; 347 void requestSeek(double) final;
348 void remoteRouteAvailabilityChanged(bool) final; 348 void remoteRouteAvailabilityChanged(bool) final;
349 void connectedToRemoteDevice() final; 349 void connectedToRemoteDevice() final;
350 void disconnectedFromRemoteDevice() final; 350 void disconnectedFromRemoteDevice() final;
351 void cancelledRemotePlaybackRequest() final; 351 void cancelledRemotePlaybackRequest() final;
352 void requestReload(const WebURL&) final;
352 353
353 void loadTimerFired(Timer<HTMLMediaElement>*); 354 void loadTimerFired(Timer<HTMLMediaElement>*);
354 void progressEventTimerFired(Timer<HTMLMediaElement>*); 355 void progressEventTimerFired(Timer<HTMLMediaElement>*);
355 void playbackProgressTimerFired(Timer<HTMLMediaElement>*); 356 void playbackProgressTimerFired(Timer<HTMLMediaElement>*);
356 void startPlaybackProgressTimer(); 357 void startPlaybackProgressTimer();
357 void startProgressEventTimer(); 358 void startProgressEventTimer();
358 void stopPeriodicTimers(); 359 void stopPeriodicTimers();
359 360
360 void seek(double time); 361 void seek(double time);
361 void finishSeek(); 362 void finishSeek();
362 void checkIfSeekNeeded(); 363 void checkIfSeekNeeded();
363 void addPlayedRange(double start, double end); 364 void addPlayedRange(double start, double end);
364 365
365 void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to sched uleNamedEvent for clarity. 366 void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to sched uleNamedEvent for clarity.
366 367
367 // loading 368 // loading
368 void invokeLoadAlgorithm(); 369 void invokeLoadAlgorithm();
369 void invokeResourceSelectionAlgorithm(); 370 void invokeResourceSelectionAlgorithm();
370 void loadInternal(); 371 void loadInternal();
371 void selectMediaResource(); 372 void selectMediaResource();
372 void loadResource(const WebMediaPlayerSource&, ContentType&); 373 void loadResource(const WebMediaPlayerSource&, const ContentType&);
373 void startPlayerLoad(); 374 void startPlayerLoad(const KURL& playerProvidedUrl = KURL());
374 void setPlayerPreload(); 375 void setPlayerPreload();
375 WebMediaPlayer::LoadType loadType() const; 376 WebMediaPlayer::LoadType loadType() const;
376 void scheduleNextSourceChild(); 377 void scheduleNextSourceChild();
377 void loadSourceFromObject(); 378 void loadSourceFromObject();
378 void loadSourceFromAttribute(); 379 void loadSourceFromAttribute();
379 void loadNextSourceChild(); 380 void loadNextSourceChild();
380 void clearMediaPlayer(); 381 void clearMediaPlayer();
381 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); 382 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking();
382 bool havePotentialSourceChild(); 383 bool havePotentialSourceChild();
383 void noneSupported(); 384 void noneSupported();
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 inline bool isHTMLMediaElement(const HTMLElement& element) 682 inline bool isHTMLMediaElement(const HTMLElement& element)
682 { 683 {
683 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 684 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
684 } 685 }
685 686
686 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 687 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
687 688
688 } // namespace blink 689 } // namespace blink
689 690
690 #endif // HTMLMediaElement_h 691 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « media/test/data/bear0.ts ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698