WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
146908
Implement VideoTrackPrivateAVFObjC for MediaStreamPrivate
https://bugs.webkit.org/show_bug.cgi?id=146908
Summary
Implement VideoTrackPrivateAVFObjC for MediaStreamPrivate
Matthew Daiter
Reported
2015-07-13 11:29:34 PDT
Make sure we can implement platform-specific portions of the video streaming API for the browser media streams.
Attachments
Patch
(8.04 KB, patch)
2015-07-13 13:15 PDT
,
Matthew Daiter
bfulgham
: review-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-07-13 11:30:53 PDT
<
rdar://problem/21796914
>
Matthew Daiter
Comment 2
2015-07-13 13:15:45 PDT
Created
attachment 256717
[details]
Patch
Brent Fulgham
Comment 3
2015-07-16 17:48:55 PDT
Comment on
attachment 256717
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=256717&action=review
Looks good, but I don't like the potential null access. Let's make it a reference if we know it's always present; otherwise null check.
> Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaStreamAVFObjC.mm:80 > + m_parent->activeStatusChanged();
Can m_parent be null? If it shouldn't be, we should take it as a reference in the constructor. Otherwise, we need to null-check here.
Eric Carlson
Comment 4
2015-07-17 07:47:09 PDT
Comment on
attachment 256717
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=256717&action=review
> Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaStreamAVFObjC.mm:66 > +void VideoTrackPrivateMediaStreamAVFObjC::setAssetTrack(AVAssetTrack *track) > +{ > + m_impl = std::make_unique<AVTrackPrivateAVFObjCImpl>(track); > + resetPropertiesFromTrack(); > +} > + > +AVAssetTrack* VideoTrackPrivateMediaStreamAVFObjC::assetTrack() const > +{ > + return m_impl->assetTrack(); > +}
Is it possible to have an AVAssetTrack now, or is this for the future? If the later, remove it for now and we can add it when it is needed.
> Source/WebCore/platform/graphics/avfoundation/objc/VideoTrackPrivateMediaStreamAVFObjC.mm:86 > +FloatSize VideoTrackPrivateMediaStreamAVFObjC::naturalSize() const > +{ > + return FloatSize([assetTrack() naturalSize]); > +}
What about the nature size of a media stream track that does not have an AVAssetTrack?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug